| /** | 
|  * Copyright (c) 2018 人人开源 All rights reserved. | 
|  * | 
|  * https://www.renren.io | 
|  * | 
|  * 版权所有,侵权必究! | 
|  */ | 
|   | 
| package com.zt.security.dto; | 
|   | 
| import io.swagger.annotations.ApiModel; | 
| import io.swagger.annotations.ApiModelProperty; | 
| import lombok.Data; | 
|   | 
| import javax.validation.constraints.NotBlank; | 
| import java.io.Serializable; | 
|   | 
| /** | 
|  * 登录表单 | 
|  * | 
|  * @author Mark sunlightcs@gmail.com | 
|  */ | 
| @Data | 
| @ApiModel(value = "登录表单") | 
| public class LoginDto implements Serializable { | 
|     private static final long serialVersionUID = 1L; | 
|   | 
|     @ApiModelProperty(value = "用户名", required = true) | 
|     @NotBlank(message = "用户名不能为空") | 
|     private String username; | 
|   | 
|     @ApiModelProperty(value = "密码") | 
|     @NotBlank(message = "密码不能为空") | 
|     private String password; | 
|   | 
|     @ApiModelProperty(value = "验证码") | 
|     // @NotBlank(message="验证码不能为空") | 
|     private String captcha; | 
|   | 
|     @ApiModelProperty(value = "token") | 
|     @NotBlank(message = "token") | 
|     private String token; | 
|   | 
|     @ApiModelProperty(value = "唯一标识") | 
|     @NotBlank(message = "唯一标识不能为空") | 
|     private String uuid; | 
|   | 
|     @ApiModelProperty(value = "系统标识") | 
|     //@NotBlank(message = "系统标识不嫩为空") | 
|     private String systemMarker; | 
|   | 
|     @ApiModelProperty(value = "登录方法:single/username") | 
|     private String loginMethod; | 
| } |