wx_card_user.api 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. import "../base.api"
  2. type (
  3. // The data of wx card user information | WxCardUser信息
  4. WxCardUserInfo {
  5. BaseIDInfo
  6. // 微信id
  7. Wxid *string `json:"wxid,optional"`
  8. // 微信号
  9. Account *string `json:"account,optional"`
  10. // 头像
  11. Avatar *string `json:"avatar,optional"`
  12. // 昵称
  13. Nickname *string `json:"nickname,optional"`
  14. // 备注名
  15. Remark *string `json:"remark,optional"`
  16. // 手机号
  17. Phone *string `json:"phone,optional"`
  18. // OpenID
  19. OpenId *string `json:"openId,optional"`
  20. // UnionID
  21. UnionId *string `json:"unionId,optional"`
  22. // SessionKey
  23. SessionKey *string `json:"sessionKey,optional"`
  24. // IsVip
  25. IsVip *string `json:"isVip,optional"`
  26. }
  27. // The response data of wx card user list | WxCardUser列表数据
  28. WxCardUserListResp {
  29. BaseDataInfo
  30. // WxCardUser list data | WxCardUser列表数据
  31. Data WxCardUserListInfo `json:"data"`
  32. }
  33. // WxCardUser list data | WxCardUser列表数据
  34. WxCardUserListInfo {
  35. BaseListInfo
  36. // The API list data | WxCardUser列表数据
  37. Data []WxCardUserInfo `json:"data"`
  38. }
  39. // Get wx card user list request params | WxCardUser列表请求参数
  40. WxCardUserListReq {
  41. PageInfo
  42. // 微信id
  43. Wxid *string `json:"wxid,optional"`
  44. // 微信号
  45. Account *string `json:"account,optional"`
  46. // 头像
  47. Avatar *string `json:"avatar,optional"`
  48. // 昵称
  49. Nickname *string `json:"nickname,optional"`
  50. }
  51. // WxCardUser information response | WxCardUser信息返回体
  52. WxCardUserInfoResp {
  53. BaseDataInfo
  54. // WxCardUser information | WxCardUser数据
  55. Data WxCardUserInfo `json:"data"`
  56. }
  57. )
  58. @server(
  59. jwt: Auth
  60. group: wxcarduser
  61. middleware: Miniprogram
  62. )
  63. service Wechat {
  64. // Update wx card user information | 更新WxCardUser
  65. @handler updateApiWxCardUser
  66. post /api/user/update (WxCardUserInfo) returns (BaseMsgResp)
  67. }
  68. @server(
  69. jwt: Auth
  70. group: wxcarduser
  71. middleware: Authority
  72. )
  73. service Wechat {
  74. // Create wx card user information | 创建WxCardUser
  75. @handler createWxCardUser
  76. post /wx_card_user/create (WxCardUserInfo) returns (BaseMsgResp)
  77. // Update wx card user information | 更新WxCardUser
  78. @handler updateWxCardUser
  79. post /wx_card_user/update (WxCardUserInfo) returns (BaseMsgResp)
  80. // Delete wx card user information | 删除WxCardUser信息
  81. @handler deleteWxCardUser
  82. post /wx_card_user/delete (IDsReq) returns (BaseMsgResp)
  83. // Get wx card user list | 获取WxCardUser列表
  84. @handler getWxCardUserList
  85. post /wx_card_user/list (WxCardUserListReq) returns (WxCardUserListResp)
  86. // Get wx card user by ID | 通过ID获取WxCardUser
  87. @handler getWxCardUserById
  88. post /wx_card_user (IDReq) returns (WxCardUserInfoResp)
  89. }