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"` } ) @server( jwt: Auth group: add_friend middleware: Authority ) service Wechat { // 手机号加好友接口 @handler AddFriendByPhone post /add_friend/add_friend_by_phone (AddWechatFriendLogInfo) returns (BaseMsgResp) }