123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- import "../base.api"
- import "./label_relationship.api"
- type (
-
- ContactListResp {
- BaseDataInfo
-
- Data ContactListInfo `json:"data"`
- }
-
- ContactListInfo {
- BaseListInfo
-
- Data []ContactInfo `json:"data"`
- }
-
- ContactListReq {
- PageInfo
-
- LabelIDs []uint64 `json:"labelIDs,optional"`
-
- WxWxid *string `json:"wxWxid,optional"`
-
- Wxid *string `json:"wxid,optional"`
-
- Account *string `json:"account,optional"`
-
- Type *int `json:"type,optional"`
- }
-
- ContactInfoResp {
- BaseDataInfo
-
- Data ContactInfo `json:"data"`
- }
- AddNewFriendReq {
- OwnerWxid string `json:"ownerWxid"`
- Wxid string `json:"wxid"`
- Gid string `json:"gid"`
- Desc string `json:"desc"`
- AddType string `json:"addType"`
- }
- )
- @server(
- jwt: Auth
- group: contact
- middleware: Authority
- )
- service Wechat {
-
- @handler createContact
- post /contact/create (ContactInfo) returns (BaseMsgResp)
-
- @handler updateContact
- post /contact/update (ContactInfo) returns (BaseMsgResp)
-
- @handler deleteContact
- post /contact/delete (IDsReq) returns (BaseMsgResp)
-
- @handler getContactList
- post /contact/list (ContactListReq) returns (ContactListResp)
-
- @handler getContactById
- post /contact (IDReq) returns (ContactInfoResp)
- @handler addNewFriend
- post /contact/addNewFriend (AddNewFriendReq) returns (BaseMsgResp)
- }
|