123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 |
- import "../base.api"
- type (
-
- MessageRecordsInfo {
- BaseIDInfo
-
- Status *uint8 `json:"status,optional"`
-
- BotWxid *string `json:"botWxid,optional"`
-
- ContactId *uint64 `json:"contactId,optional"`
-
- ContactType *int `json:"contactType,optional"`
-
- ContactWxid *string `json:"contactWxid,optional"`
-
- ContentType *int `json:"contentType,optional"`
-
- Content *string `json:"content,optional"`
-
- Meta *Meta `json:"meta,optional"`
-
- ErrorDetail *string `json:"errorDetail,optional"`
-
- SendTime *int64 `json:"sendTime,optional"`
-
- SourceType *int `json:"sourceType,optional"`
-
- SourceId *uint64 `json:"sourceId,optional"`
-
- SubSourceId *uint64 `json:"subSourceId,optional"`
-
- OrganizationId *uint64 `json:"organizationId,optional"`
- }
-
- MessageRecordsListResp {
- BaseDataInfo
-
- Data MessageRecordsListInfo `json:"data"`
- }
-
- MessageRecordsListInfo {
- BaseListInfo
-
- Data []MessageRecordsInfo `json:"data"`
- }
-
- MessageRecordsListReq {
- PageInfo
-
- BatchMsgId *uint64 `json:"batchMsgId,optional"`
-
- BotWxid *string `json:"botWxid,optional"`
-
- SourceType *int `json:"sourceType,optional"`
-
- SourceId *uint64 `json:"sourceId,optional"`
-
- ContactWxid *string `json:"contactWxid,optional"`
-
- Status *uint8 `json:"status,optional"`
- }
-
- MessageRecordsInfoResp {
- BaseDataInfo
-
- Data MessageRecordsInfo `json:"data"`
- }
- )
- @server(
- jwt: Auth
- group: message_records
- middleware: Authority
- )
- service Wechat {
-
- @handler createMessageRecords
- post /message_records/create (MessageRecordsInfo) returns (BaseMsgResp)
-
- @handler updateMessageRecords
- post /message_records/update (MessageRecordsInfo) returns (BaseMsgResp)
-
- @handler deleteMessageRecords
- post /message_records/delete (IDsReq) returns (BaseMsgResp)
-
- @handler getMessageRecordsList
- post /message_records/list (MessageRecordsListReq) returns (MessageRecordsListResp)
-
- @handler getMessageRecordsById
- post /message_records (IDReq) returns (MessageRecordsInfoResp)
- }
|