package com.casic.missiles.modular.system.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 组织机构业务支持配置
 * </p>
 *
 * @author lwh123
 * @since 2019-05-28
 */
@TableName("config_nb_cucc")
@Data
public class ConfigNbCucc extends Model<ConfigNbCucc> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "ID", type = IdType.AUTO)
    private Long id;
    /**
     * 部门主键
     */
    @TableField("DEPTID")
    private Long deptid;
    /**
     *
     */
    @TableField("BASE_URL")
    private String baseUrl;
    /**
     *
     */
    @TableField("APPID")
    private String appid;
    /**
     *
     */
    @TableField("APPKEY")
    private String appkey;
    /**
     *
     */
    @TableField("SUBSCRIBE_URL")
    private String subscribeUrl;
    /**
     *
     */
    @TableField("APPNAME")
    private String appname;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ConfigNbCucc{" +
                "id=" + id +
                ", deptid=" + deptid +
                ", baseUrl=" + baseUrl +
                ", appid=" + appid +
                ", appkey=" + appkey +
                "}";
    }
}
