123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
- import "../base.api"
- import "./label_relationship.api"
- type (
-
- LabelSelectListResp {
- BaseDataInfo
-
- Data []LabelSelectListInfo `json:"data"`
- }
-
- LabelBatchSelectListResp {
- BaseDataInfo
-
- Data LabelBatchSelectListData `json:"data"`
- }
-
- LabelBatchSelectListData {
- Contact []LabelSelectListInfo `json:"contact"`
- Group []LabelSelectListInfo `json:"group"`
- }
-
- LabelListResp {
- BaseDataInfo
-
- Data LabelListInfo `json:"data"`
- }
-
- LabelListInfo {
- BaseListInfo
-
- Data []LabelInfo `json:"data"`
- }
-
- LabelListReq {
- PageInfo
-
- LabelIDs []uint64 `json:"labelIDs,optional"`
-
- Type *int `json:"type,optional"`
-
- Name *string `json:"name,optional"`
-
- From *int `json:"from,optional"`
-
- Mode *int `json:"mode,optional"`
-
- Ctype *uint64 `json:"ctype,optional"`
- }
-
- LabelInfoResp {
- BaseDataInfo
-
- Data LabelInfo `json:"data"`
- }
- LabelSelectListInfo {
-
- Label *string `json:"label,optional"`
-
- Value *uint64 `json:"value,optional"`
- }
- )
- @server(
- jwt: Auth
- group: label
- middleware: Authority
- )
- service Wechat {
-
- @handler createLabel
- post /label/create (LabelInfo) returns (BaseMsgResp)
-
- @handler updateLabel
- post /label/update (LabelInfo) returns (BaseMsgResp)
-
- @handler deleteLabel
- post /label/delete (IDsReq) returns (BaseMsgResp)
-
- @handler getLabelList
- post /label/list (LabelListReq) returns (LabelListResp)
-
- @handler getLabelSelectList
- post /label/select_list (LabelListReq) returns (LabelSelectListResp)
-
- @handler getLabelBatchSelectList
- post /label/batch_select_list (LabelListReq) returns (LabelBatchSelectListResp)
-
- @handler getLabelContacts
- post /label/contacts (LabelListReq) returns (LabelListResp)
-
- @handler getLabelById
- post /label (IDReq) returns (LabelInfoResp)
- }
|