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

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

import java.util.List;

/**
 * 个税扣缴义务人保存参数
 * <p>Copyright: Copyright (c) 2022</p>
 * <p>Company: 泛微软件</p>
 *
 * @author qiantao
 * @version 1.0
 **/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class TaxAgentSaveParam {

    //主键id
    @DataCheck(require = true, message = "id为空", runtime = {RuntimeTypeEnum.UPDATE})
    private Long id;

    //名称
    @DataCheck(require = true, max = 40, message = "名称必填且不超过40个字符")
    private String name;

    //管理员主键id
    private List<Long> adminUserIds;

    //代缴机构
    private String paymentAgency;

    //备注
    @DataCheck( max = 50, message = "备注不超过50个字符")
    private String description;

    // 排序id
    private Integer sortedIndex;
}
