1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- 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:"err_message,optional"`
- TaskCount *int `json:"err_message,optional"`
- // 微信昵称 群备注名称
- Message *string `json:"message,optional"`
- CreateTime *string `json:"create_time,optional"`
- UpdateTime *string `json:"update_time,optional"`
- }
- CancelByIdsReq {
- Ids []int64 `json:"ids" validate:"nonzero"`
- }
- )
- @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)
- }
|