123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235 |
- import "../base.api"
- type (
-
- ContactLabelList {
-
- Label *string `json:"label,optional"`
-
- Value *uint64 `json:"value,optional"`
- }
-
- ContactInfo {
- BaseIDInfo
-
- Status *uint8 `json:"status,optional"`
-
- WxWxid *string `json:"wxWxid,optional"`
-
- WxWxidNickname *string `json:"wxWxidNickname,optional"`
-
- Type *int `json:"type,optional"`
-
- Wxid *string `json:"wxid,optional"`
-
- Account *string `json:"account,optional"`
-
- Nickname *string `json:"nickname,optional"`
-
- Markname *string `json:"markname,optional"`
-
- Headimg *string `json:"headimg,optional"`
-
- Sex *int `json:"sex,optional"`
-
- Starrole *string `json:"starrole,optional"`
-
- Dontseeit *int `json:"dontseeit,optional"`
-
- Dontseeme *int `json:"dontseeme,optional"`
-
- Lag *string `json:"lag,optional"`
-
- Gid *string `json:"gid,optional"`
-
- Gname *string `json:"gname,optional"`
-
- V3 *string `json:"v3,optional"`
-
- LabelRelationships []ContactLabelList `json:"labelRelationships,optional"`
-
- OrganizationId *uint64 `json:"organizationId,optional"`
-
- IsInBlockList *bool `json:"isInBlockList,optional"`
- Ctype *uint64 `json:"ctype,optional"`
- Cname *string `json:"cname,optional"`
- Cage *int `json:"cage,optional"`
- Carea *string `json:"carea,optional"`
- Cbirthday *string `json:"cbirthday,optional"`
- Cbirtharea *string `json:"cbirtharea,optional"`
- CidcardNo *string `json:"cidcardNo,optional"`
- Ctitle *string `json:"ctitle,optional"`
- Cc *string `json:"cc,optional"`
- Phone *string `json:"phone,optional"`
- }
-
- LabelInfo {
- BaseIDInfo
-
- Status *uint8 `json:"status,optional"`
-
- Type *int `json:"type,optional"`
-
- Name *string `json:"name,optional"`
-
- From *int `json:"from,optional"`
-
- Mode *int `json:"mode,optional"`
-
- Conditions *string `json:"conditions,optional"`
-
- OrganizationId *uint64 `json:"organizationId,optional"`
-
- LabelRelationships []LabelRelationshipInfo `json:"labelRelationships,optional"`
- }
-
- LabelRelationshipInfo {
- BaseIDInfo
-
- Status *uint8 `json:"status,optional"`
-
- LabelId *uint64 `json:"labelId,optional"`
-
- ContactId *uint64 `json:"contactId,optional"`
-
- Contact ContactInfo `json:"contact,optional"`
-
- Label LabelInfo `json:"label,optional"`
-
- OrganizationId *uint64 `json:"organizationId,optional"`
- }
-
- LabelRelationshipsInfo {
- BaseIDInfo
-
- UpdateType *string `json:"updateType,optional"`
-
- LabelIds []uint64 `json:"labelIds,optional"`
-
- ContactId *uint64 `json:"contactId,optional"`
- }
- BatchLabelRelationshipsInfo {
-
- UpdateType int `json:"updateType,optional"`
-
- LabelIds []uint64 `json:"labelIds,optional"`
-
- ContactIds []uint64 `json:"contactIds,optional"`
- }
-
- LabelRelationshipListResp {
- BaseDataInfo
-
- Data LabelRelationshipListInfo `json:"data"`
- }
-
- LabelRelationshipListInfo {
- BaseListInfo
-
- Data []LabelRelationshipInfo `json:"data"`
- }
-
- LabelRelationshipListReq {
- PageInfo
- }
-
- LabelRelationshipInfoResp {
- BaseDataInfo
-
- Data LabelRelationshipInfo `json:"data"`
- }
- )
- @server(
- jwt: Auth
- group: label_relationship
- middleware: Authority
- )
- service Wechat {
-
- @handler createLabelRelationship
- post /label_relationship/create (LabelRelationshipInfo) returns (BaseMsgResp)
-
- @handler updateLabelRelationship
- post /label_relationship/update (LabelRelationshipInfo) returns (BaseMsgResp)
-
- @handler updateLabelRelationships
- post /label_relationship/update_contact_labels (LabelRelationshipsInfo) returns (BaseMsgResp)
-
- @handler batchUpdateLabelRelationships
- post /label_relationship/batch_update_contact_labels (BatchLabelRelationshipsInfo) returns (BaseMsgResp)
-
- @handler deleteLabelRelationship
- post /label_relationship/delete (IDsReq) returns (BaseMsgResp)
-
- @handler getLabelRelationshipList
- post /label_relationship/list (LabelRelationshipListReq) returns (LabelRelationshipListResp)
-
- @handler getLabelRelationshipById
- post /label_relationship (IDReq) returns (LabelRelationshipInfoResp)
-
- @handler setWhatsappContactLabel
- post /label_relationship/setWhatsappContactLabel (LabelRelationshipsInfo) returns (BaseMsgResp)
-
- @handler setWhatsappContactBatchLabel
- post /label_relationship/setWhatsappContactBatchLabel (BatchLabelRelationshipsInfo) returns (BaseMsgResp)
- }
|