add_friend_by_phone.api 518 B

123456789101112131415161718192021222324
  1. import "../base.api"
  2. type (
  3. //add_friend_by_phone api接口请求值
  4. AddFriendByPhoneNewReq {
  5. Type int `json:"type"`
  6. WeChatIds []string `json:"WeChatId,optional,omitempty"`
  7. Phone string `json:"phone"`
  8. Message string `json:"message"`
  9. }
  10. @server(
  11. jwt: Auth
  12. group: Wx
  13. middleware: Authority
  14. )
  15. service Wechat {
  16. // 手机号加好友接口
  17. @handler AddFriendByPhone
  18. post /wx/add_friend_by_phone (AddFriendByPhoneNewReq) returns (BaseMsgResp)
  19. }