package cn.iocoder.yudao.module.system.controller.admin.auth.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;


@Schema(description = "管理后台 - 社交绑定登录 Request VO，使用 code 授权码 + 账号密码")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class AuthPortalLoginReqVO {

    @Schema(description = "", requiredMode = Schema.RequiredMode.REQUIRED, example = "10")
    private Integer type;

    @Schema(description = "", requiredMode = Schema.RequiredMode.REQUIRED, example = "10")
    @NotEmpty(message = "appid不能为空")
    private String appid;

    @Schema(description = "工号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    @NotEmpty(message = "工号不能为空")
    private String username;

    @Schema(description = "state", requiredMode = Schema.RequiredMode.REQUIRED, example = "9b2ffbc1-7425-4155-9894-9d5c08541d62")
    private String state;

}
