|
@@ -7,9 +7,9 @@ type CreateNewSessionReq struct {
|
|
|
}
|
|
|
|
|
|
type CreateNewSessionRes struct {
|
|
|
- ErrorCode int `dc:"状态码"`
|
|
|
- ErrorMsg string `dc:"错误信息"`
|
|
|
- Data interface{} `dc:"返回数据"`
|
|
|
+ ErrorCode int `json:"errorCode" dc:"状态码"`
|
|
|
+ ErrorMsg string `json:"errorMsg" dc:"错误信息"`
|
|
|
+ Data interface{} `json:"data" dc:"返回数据"`
|
|
|
}
|
|
|
|
|
|
type LikeAnswerReq struct {
|
|
@@ -23,15 +23,20 @@ type LikeAnswerRes struct {
|
|
|
ErrorMsg string `dc:"错误信息"`
|
|
|
Data interface{} `dc:"返回数据"`
|
|
|
}
|
|
|
+type LikeSessionRes struct {
|
|
|
+ ErrorCode int `json:"errorCode" dc:"状态码"`
|
|
|
+ ErrorMsg string `json:"errorMsg" dc:"错误信息"`
|
|
|
+ Data interface{} `json:"data" dc:"返回数据"`
|
|
|
+}
|
|
|
|
|
|
type HistorySsListReq struct {
|
|
|
g.Meta `path:"/session/history/list" tags:"AiSearch" method:"get" summary:"历史会话列表"`
|
|
|
}
|
|
|
|
|
|
type HistorySsListRes struct {
|
|
|
- ErrorCode int `dc:"状态码"`
|
|
|
- ErrorMsg string `dc:"错误信息"`
|
|
|
- Data interface{} `dc:"返回数据"`
|
|
|
+ ErrorCode int `json:"errorCode" dc:"状态码"`
|
|
|
+ ErrorMsg string `json:"errorMsg" dc:"错误信息"`
|
|
|
+ Data interface{} `json:"data" dc:"返回数据"`
|
|
|
}
|
|
|
|
|
|
type SessionDetailReq struct {
|
|
@@ -40,9 +45,9 @@ type SessionDetailReq struct {
|
|
|
}
|
|
|
|
|
|
type SessionDetailRes struct {
|
|
|
- ErrorCode int `dc:"状态码"`
|
|
|
- ErrorMsg string `dc:"错误信息"`
|
|
|
- Data interface{} `dc:"返回数据"`
|
|
|
+ ErrorCode int `json:"errorCode" dc:"状态码"`
|
|
|
+ ErrorMsg string `json:"errorMsg" dc:"错误信息"`
|
|
|
+ Data interface{} `json:"data" dc:"返回数据"`
|
|
|
}
|
|
|
|
|
|
type ProblemConfigurationReq struct {
|
|
@@ -50,14 +55,15 @@ type ProblemConfigurationReq struct {
|
|
|
}
|
|
|
|
|
|
type ProblemConfigurationRes struct {
|
|
|
- ErrorCode int `dc:"状态码"`
|
|
|
- ErrorMsg string `dc:"错误信息"`
|
|
|
- Data interface{} `dc:"返回数据"`
|
|
|
+ ErrorCode int `json:"errorCode" dc:"状态码"`
|
|
|
+ ErrorMsg string `json:"errorMsg" dc:"错误信息"`
|
|
|
+ Data interface{} `json:"data" dc:"返回数据"`
|
|
|
}
|
|
|
|
|
|
type ChatReq struct {
|
|
|
g.Meta `path:"/chat" tags:"AiSearch" method:"post" summary:"聊天"`
|
|
|
SId string `json:"sId" v:"required" dc:"当前会话id"`
|
|
|
+ Content string `json:"content" v:"required" dc:"用户发送内容"`
|
|
|
Question string `json:"question" v:"required" dc:"用户发送内容"`
|
|
|
Item int `json:"item" v:"required" dc:"分类"`
|
|
|
}
|
|
@@ -73,9 +79,9 @@ type BiddingListReq struct {
|
|
|
ChatId string `json:"chatId" dc:"聊天Id"`
|
|
|
}
|
|
|
type BiddingListRes struct {
|
|
|
- ErrorCode int `dc:"状态码"`
|
|
|
- ErrorMsg string `dc:"错误信息"`
|
|
|
- Data interface{} `dc:"返回数据"`
|
|
|
+ ErrorCode int `json:"errorCode" dc:"状态码"`
|
|
|
+ ErrorMsg string `json:"errorMsg" dc:"错误信息"`
|
|
|
+ Data interface{} `json:"data" dc:"返回数据"`
|
|
|
}
|
|
|
type ResBidding struct {
|
|
|
InfoId string `json:"infoId" dc:"标讯id"`
|