package com.engine.salary.entity.push.param;

import com.engine.salary.util.valid.DataCheck;
import com.engine.salary.util.valid.ValidTypeEnum;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 数据推送配置
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class PushSettingSaveParam {

    private Long id;

    /**
     * 任务名称
     */
    @DataCheck(require = true, type = ValidTypeEnum.STRING, max = 50, labelId = 86185, message = "任务名称为空")
    private String name;

    /**
     * 是否启用，0否 1是
     */
    @DataCheck(require = true, type = ValidTypeEnum.NUMBER, message = "是否启用为空")
    private Integer able;


    /**
     * 薪资帐套集合
     */
    private List<Long> salarySobIds;

    /**
     * 建模id
     */
    private Integer modeId;

    /**
     * 模块名称
     */
    private String modeName;


    /**
     * 数据库表
     */
    @DataCheck(require = true, message = "数据库表为空")
    private String tableName;


}