package cn.ey.biz.module.system.api.appuser.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

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

@ApiModel("管理后台 - 应用用户信息 Request VO")
@Data
public class AppUserCreateReqDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    public interface Save {
    }

    public interface Update {
    }

    public interface QueryById {
    }

    public interface Deleted {
    }

    @ApiModelProperty(value = "实体id")
    @NotNull(message = "实体id不能为空", groups = {QueryById.class, Deleted.class, Update.class})
    private Long id;
    @ApiModelProperty(value = "应用编号")
    @NotBlank(message = "应用编号不能为空", groups = {Save.class, Update.class})
    private String appId;
    @ApiModelProperty(value = "应用用户状态")
    @NotBlank(message = "应用用户状态不能为空", groups = {Save.class, Update.class})
    private Integer status;
    @Valid
    private OAuth2ClientReqDTO auth2ClientReqVO;

    private String remark;

}
