All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.gccloud.starter.common.module.dict.dto.SysDictDTO Maven / Gradle / Ivy

package com.gccloud.starter.common.module.dict.dto;

import com.gccloud.starter.common.validator.group.Insert;
import com.gccloud.starter.common.validator.group.Update;
import com.gccloud.starter.common.validator.module.dict.Code;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 业务字典
 *
 * @Author liuchengbiao
 * @Date 2020-07-07
 * @Version 1.0.0
 */
@Data
@ToString(callSuper = true)
public class SysDictDTO implements Serializable {
    @ApiModelProperty(notes = "主键")
    @NotBlank(message = "ID不能为空", groups = {Update.class})
    private String id;
    @ApiModelProperty(notes = "业务字典名称")
    @NotBlank(message = "业务字典名称不能为空", groups = {Insert.class, Update.class})
    private String name;
    @ApiModelProperty(notes = "业务字典编码")
    @Code(message = "{gc.starter.validator.dict.code.message}", groups = {Insert.class, Update.class})
    @NotBlank(message = "业务字典编码不能为空", groups = {Insert.class, Update.class})
    private String code;
    @ApiModelProperty(notes = "备注")
    private String remark;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy