package com.bohuikeji.delivery.backstage.entity;

import com.bohuikeji.frame.module.admin.annotation.TableNewField;
import com.bohuikeji.frame.module.admin.annotation.TableQueryField;
import com.bohuikeji.frame.module.admin.annotation.TableShowField;
import com.bohuikeji.frame.module.admin.base.EntityBase;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 开放平台账户
 * </p>
 *
 * @author 10552
 * @since 2021-05-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="TOpen对象", description="开放平台账户")
public class TOpen extends EntityBase<TOpen> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId(value = "id", type = IdType.AUTO)
    @TableShowField(value = "ID",id = true)
    @TableNewField(show = false)
    private Integer id;

    @ApiModelProperty(value = "商户名称")
    @TableField("name")
    @TableShowField("商户名称")
    @TableNewField(edit = false)
    private String name;

    @ApiModelProperty(value = "AppKey")
    @TableField("app_key")
    @TableShowField("AppKey")
    @TableNewField(edit = false)
    private String appKey;

    @ApiModelProperty(value = "AppSercet")
    @TableField("app_secret")
    @TableShowField("AppSercet")
    @TableNewField(edit = false)
    private String appSecret;

    @ApiModelProperty(value = "绑定的客户ID")
    @TableField("custemer_id")
    @TableShowField(value = "绑定的客户ID",show = false)
    @TableNewField(edit = false)
    private Integer custemerId;

    @ApiModelProperty(value = "加盟商ID")
    @TableField("fran_id")
    @TableShowField(value = "加盟商ID",show = false)
    @TableNewField(edit = false)
    private Integer franId;

    @ApiModelProperty(value = "订单第算方式(月结,即时结)")
    @TableField("sett_way")
    @TableNewField(edit = false)
    @TableShowField(value = "订单第结算方式",show = false)
    @TableQueryField(like = false,show = false)
    private String settWay;

    @ApiModelProperty(value = "客户计费模板ID")
    @TableField("customer_template_id")
    @TableShowField(value = "客户计费模板ID",show = false)
    @TableNewField(edit = false)
    private Integer customerTemplateId;

    @ApiModelProperty(value = "客户计费模板CODE")
    @TableField("customer_template_code")
    @TableShowField(value = "客户计费模板CODE",show = false)
    @TableNewField(edit = false)
    private String customerTemplateCode;

    @ApiModelProperty(value = "计费规则(1、地区模板，2、客户模板)")
    @TableField("pricing_rules")
    @TableShowField(value = "计费规则(1、地区模板，2、客户模板)",show = false)
    @TableNewField(edit = false)
    private Integer pricingRules;

    @ApiModelProperty(value = "创建时间")
    @TableField("gmt_create")
    @TableShowField("创建时间")
    @TableNewField(edit = false)
    private LocalDateTime gmtCreate;

    @ApiModelProperty(value = "更新时间")
    @TableField("gmt_update")
    @TableShowField(value = "更新时间",show = false)
    @TableNewField(edit = false)
    private LocalDateTime gmtUpdate;

    @ApiModelProperty(value = "状态(正常,停用）")
    @TableField("status")
    @TableShowField("状态(正常,停用）")
    @TableNewField(edit = false)
    private String status;

    @ApiModelProperty(value = "订单回调通知地址")
    @TableField("notice_url")
    @TableShowField("订单回调通知地址")
    @TableNewField(edit = false)
    private String noticeUrl;


}
