12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- 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"`
- }
- )
- @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)
- }
|