rtx.go 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. package oilrtx
  2. //"time"
  3. type RtxMsg struct {
  4. Msg string `json:"msg"`
  5. Receiver string `json:"receiver"`
  6. }
  7. type PtrUser struct {
  8. UserName string `json:"username"`
  9. PassWord string `json:"password"`
  10. }
  11. type Msg struct {
  12. UserName string `json:"UserName"`
  13. ToMobile string `json:"ToMobile"`
  14. Msg string `json:"MSG"`
  15. }
  16. type RtxLogin struct {
  17. Username string `json:"username"`
  18. Password string `json:"password"`
  19. UserDomain string `json:"userDomain"`
  20. }
  21. type RtxRespToken struct {
  22. Code int `json:"code"`
  23. Message string `json:"message"`
  24. Token string `json:"token"`
  25. }
  26. type RtxOrganize struct {
  27. Id string `json:"id"`
  28. OrgCode string `json:"message"`
  29. OrgName string `json:"orgName"`
  30. OrgShortName string `json:"orgShortName"`
  31. ParentId string `json:"parentId"`
  32. IsInValid string `json:"ISINVALID"`
  33. Remark string `json:"remark"`
  34. Children []RtxOrganize `json:"children"`
  35. }
  36. type RtxOrganizeItems struct {
  37. Items []RtxOrganize `json:"items"`
  38. }
  39. type Tmp_User struct {
  40. Department string `xorm:"VARCHAR(500)"`
  41. Fullname string `xorm:"VARCHAR(500)"`
  42. Username string `xorm:"VARCHAR(500)"`
  43. Code string `xorm:"VARCHAR(500)"`
  44. Email string `xorm:"VARCHAR(500)"`
  45. Telphone string `xorm:"VARCHAR(500)"`
  46. Deptid string `xorm:"VARCHAR(500)"`
  47. }
  48. type Base_Msg struct {
  49. Id int `xorm:"not null pk autoincr INT(11)"`
  50. Type string `xorm:"not null comment('类别(1注册(1-1注册成功1-2注册失败) 2密码重置(2-1验证码2-2重置密码))') VARCHAR(10)"`
  51. UserName string `xorm:"not null comment('企业用户名(即登录账号)') VARCHAR(50)"`
  52. UserRealName string `xorm:"not null comment('企业名称') VARCHAR(100)"`
  53. UserId string `xorm:"not null comment('用户名Id(BaseUser表Id)') VARCHAR(11)"`
  54. ToMobile string `xorm:"not null comment('目标手机号') VARCHAR(20)"`
  55. Msg string `xorm:"not null comment('短信内容') VARCHAR(500)"`
  56. ToTime string `xorm:"not null comment('发送时间') VARCHAR(20)"`
  57. Status string `xorm:"not null comment('发送状态') VARCHAR(20)"`
  58. }
  59. type Base_VCode struct {
  60. Id int `xorm:"not null pk autoincr INT(11)"`
  61. UserName string `xorm:"not null comment('企业用户名(即登录账号)') VARCHAR(50)"`
  62. UserId string `xorm:"not null comment('用户名Id(BaseUser表Id)') VARCHAR(11)"`
  63. Code string `xorm:"not null comment('验证码') VARCHAR(500)"`
  64. }