123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 |
- import "../base.api"
- type (
-
- ChatRecordsInfo {
- BaseIDInfo
-
- Content *string `json:"content,optional"`
-
- ContentType *uint8 `json:"contentType,optional"`
-
- SessionId *uint64 `json:"sessionId,optional"`
-
- UserId *uint64 `json:"userId,optional"`
-
- BotId *uint64 `json:"botId,optional"`
-
- BotType *uint8 `json:"botType,optional,options=1|2|3"`
- Finish bool `json:"finish,optional"`
- }
-
- ChatRecordsListResp {
- BaseDataInfo
-
- Data ChatRecordsListInfo `json:"data"`
- }
-
- ChatRecordsListInfo {
- BaseListInfo
-
- Data []ChatRecordsInfo `json:"data"`
- }
-
- ChatRecordsListReq {
- PageInfo
- SessionId *uint64 `json:"sessionId,optional"`
- BotId *uint64 `json:"botId,optional"`
- BotType *uint8 `json:"botType,optional"`
- }
-
- ChatRecordsInfoResp {
- BaseDataInfo
-
- Data ChatRecordsInfo `json:"data"`
- }
- ChatRecommendReq {
- SessionId *uint64 `json:"sessionId"`
- }
- ChatRecommendResp {
- BaseDataInfo
-
- Data ChatRecommend `json:"data"`
- }
- ChatRecommend {
- Data []string `json:"data"`
- SessionId uint64 `json:"sessionId"`
- }
- )
- @server(
- jwt: Auth
- group: chatrecords
- middleware: Miniprogram
- )
- service Wechat {
-
- @handler submitApiChat
- post /api/chat/create (ChatRecordsInfo)
-
- @handler getApiChatList
- post /api/chat/list (ChatRecordsListReq) returns (ChatRecordsListResp)
-
- @handler getApiRecommendChat
- post /api/chat/recommmend (ChatRecommendReq) returns (ChatRecommendResp)
- }
- @server(
- jwt: Auth
- group: chatrecords
- middleware: Authority
- )
- service Wechat {
-
- @handler createChatRecords
- post /chat_records/create (ChatRecordsInfo) returns (BaseMsgResp)
-
- @handler updateChatRecords
- post /chat_records/update (ChatRecordsInfo) returns (BaseMsgResp)
-
- @handler deleteChatRecords
- post /chat_records/delete (IDsReq) returns (BaseMsgResp)
-
- @handler getChatRecordsList
- post /chat_records/list (ChatRecordsListReq) returns (ChatRecordsListResp)
-
- @handler getChatRecordsById
- post /chat_records (IDReq) returns (ChatRecordsInfoResp)
- }
|