UmsAdminLoginParam.java 805 B

12345678910111213141516171819202122232425262728293031323334
  1. package com.sifu.sfcc.dto;
  2. import io.swagger.annotations.ApiModelProperty;
  3. import javax.validation.constraints.NotEmpty;
  4. /**
  5. * 用户登录参数
  6. * Created by commerce on 2018/4/26.
  7. */
  8. public class UmsAdminLoginParam {
  9. @ApiModelProperty(value = "用户名", required = true)
  10. @NotEmpty(message = "用户名不能为空")
  11. private String username;
  12. @ApiModelProperty(value = "密码", required = true)
  13. @NotEmpty(message = "密码不能为空")
  14. private String password;
  15. public String getUsername() {
  16. return username;
  17. }
  18. public void setUsername(String username) {
  19. this.username = username;
  20. }
  21. public String getPassword() {
  22. return password;
  23. }
  24. public void setPassword(String password) {
  25. this.password = password;
  26. }
  27. }