user.go 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. package gn
  2. import (
  3. gnModel "eta_gn/eta_bridge/models/gn"
  4. "time"
  5. )
  6. // AddAccountReq 创建账号请求
  7. type AddAccountReq struct {
  8. gnModel.UserEntity `description:"账号信息"`
  9. RequestId string `json:"requestID" description:"请求唯一标识"`
  10. TimeStamp time.Time `json:"timeStamp" description:"时间戳"`
  11. }
  12. // ModifyAccountReq 编辑账号请求
  13. type ModifyAccountReq struct {
  14. gnModel.UserEntity `description:"账号信息"`
  15. RequestId string `json:"requestID" description:"请求唯一标识"`
  16. TimeStamp time.Time `json:"timeStamp" description:"时间戳"`
  17. }
  18. // DeleteAccountReq 删除账号请求
  19. type DeleteAccountReq struct {
  20. UserId string `json:"userId" description:"用户名"`
  21. RequestId string `json:"requestID" description:"请求唯一标识"`
  22. TimeStamp time.Time `json:"timeStamp" description:"时间戳"`
  23. }
  24. // SuspendAccountReq 禁用账号请求
  25. type SuspendAccountReq struct {
  26. UserId string `json:"userId" description:"用户名"`
  27. RequestId string `json:"requestID" description:"请求唯一标识"`
  28. TimeStamp time.Time `json:"timeStamp" description:"时间戳"`
  29. }
  30. // RestoreAccountReq 启用账号请求
  31. type RestoreAccountReq struct {
  32. UserId string `json:"userId" description:"用户名"`
  33. RequestId string `json:"requestID" description:"请求唯一标识"`
  34. TimeStamp time.Time `json:"timeStamp" description:"时间戳"`
  35. }
  36. // ChangePasswordReq 修改密码请求
  37. type ChangePasswordReq struct {
  38. UserId string `json:"userId" description:"用户名"`
  39. NewPassword string `json:"newPassword" description:"新密码"`
  40. RequestId string `json:"requestID" description:"请求唯一标识"`
  41. TimeStamp time.Time `json:"timeStamp" description:"时间戳"`
  42. }