package com.storlead.sales.pojo.entity.systemrule;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.storlead.framework.annotate.Dict;
import com.storlead.framework.mybatis.entity.SysBaseField;
import com.baomidou.mybatisplus.annotation.TableId;
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 chenkq
 * @since 2024-06-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("system_rule_field_config")
@ApiModel(value="SystemRuleFieldConfigEntity对象", description="规则配置字段表")
public class SystemRuleFieldConfigEntity extends SysBaseField {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "规则模块id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

//    @ApiModelProperty(value = "模块编码")
//    @TableField("service_code")
//    private Integer serviceCode;

    @ApiModelProperty(value = "业务类型编码")
    @TableField("resource_type")
    @Dict(dictCode = "work_data_group",valueField = "resourceName")
    private String resourceType;

    @ApiModelProperty(value = "字段名称")
    @TableField("field_name")
    private String fieldName;

    @ApiModelProperty(value = "字段code")
    @TableField("field_code")
    private String fieldCode;


}
