123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- import "../base.api"
- type (
-
- //add_friend_by_phone api接口请求值
- AddWechatFriendLogInfo {
- Type int `json:"type,options=1|3,default=1"`
- WeChatIds []string `json:"wechat_ids,optional,omitempty"`
- Phones []string `json:"phones"`
- Message string `json:"message"`
- CallbackURL string `json:"callback_url,optional"`
- }
- AddFriendListReq {
- PageInfo
- OwnerWxId *string `json:"wxId,optional"`
- OwnerWxType *int `json:"wxType,optional"`
- FindContent *string `json:"phone,optional"`
- status *int `json:"status,optional"`
- }
- AddFriendListResp {
- BaseDataInfo
- Data FriendListInfo `json:"data"`
- }
- FriendListInfo {
- BaseListInfo
- Data []FriendList `json:"data"`
- }
- FriendList{
- Id int64 `json:"id,optional"`
- // 微信id 公众号微信ID
- OwnerWxId *string `json:"wxId,optional"`
- OwnerWxType *string `json:"wxType,optional"`
- FindContent *string `json:"phone,optional"`
- Status *string `json:"status,optional"`
- ErrMessage *string `json:"errMessage,optional"`
- TaskCount *int `json:"taskCount,optional"`
- isShow *int `json:"isShow,optional"`
- // 微信昵称 群备注名称
- Message *string `json:"message,optional"`
- CreateTime *string `json:"createTime,optional"`
- UpdateTime *string `json:"updateTime,optional"`
- }
- CancelByIdsReq {
- Ids []int64 `json:"ids" validate:"required,min=1"`
- }
- )
- @server(
- jwt: Auth
- group: add_friend
- middleware: Authority
- )
- service Wechat {
- // 手机号加好友接口
- @handler AddFriendByPhone
- post /add_friend/add_friend_by_phone (AddWechatFriendLogInfo) returns (BaseMsgResp)
- // 添加好友的列表接口
- @handler AddFriendList
- post /add_friend/add_friend_list (AddFriendListReq) returns (AddFriendListResp)
- // cancel task add friend
- @handler CancelByIds
- post /add_friend/cancel_by_ids (CancelByIdsReq) returns (BaseMsgResp)
- }
|