12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- package v1
- import "github.com/gogf/gf/v2/frame/g"
- type CreateNewSessionReq struct {
- g.Meta `path:"/session/newCreate" tags:"AiSearch" method:"post" summary:"创建新会话"`
- positionId int64 `json:"positionId" dc:"职位id"`
- }
- type CreateNewSessionRes struct {
- ErrorCode int `dc:"状态码"`
- ErrorMsg string `dc:"错误信息"`
- Data interface{} `dc:"返回数据"`
- }
- type LikeSessionReq struct {
- g.Meta `path:"/session/answer/like" tags:"AiSearch" method:"post" summary:"回复点赞"`
- SId string `json:"sId" dc:"当前会话id"`
- QId string `json:"qId" dc:"问题id"`
- }
- type LikeSessionRes struct {
- ErrorCode int `dc:"状态码"`
- ErrorMsg string `dc:"错误信息"`
- Data interface{} `dc:"返回数据"`
- }
- type HistorySsListReq struct {
- g.Meta `path:"/session/list" tags:"AiSearch" method:"get" summary:"历史会话列表"`
- }
- type HistorySsListRes struct {
- ErrorCode int `dc:"状态码"`
- ErrorMsg string `dc:"错误信息"`
- Data interface{} `dc:"返回数据"`
- }
- type SessionDetailReq struct {
- g.Meta `path:"/session/detail" tags:"AiSearch" method:"post" summary:"会话详情"`
- SId string `json:"sId" dc:"当前会话id"`
- }
- type SessionDetailRes struct {
- ErrorCode int `dc:"状态码"`
- ErrorMsg string `dc:"错误信息"`
- Data interface{} `dc:"返回数据"`
- }
- type ProblemConfigurationReq struct {
- g.Meta `path:"/problem/configuration" tags:"AiSearch" method:"post" summary:"问题配置"`
- }
- type ProblemConfigurationRes struct {
- ErrorCode int `dc:"状态码"`
- ErrorMsg string `dc:"错误信息"`
- Data interface{} `dc:"返回数据"`
- }
- type ChatReq struct {
- g.Meta `path:"/chat" tags:"AiSearch" method:"post" summary:"聊天"`
- SId int `json:"sId" v:"required" dc:"当前会话id"`
- Content string `json:"content" v:"required" dc:"用户发送内容"`
- }
- type ChatRes struct {
- ErrorCode int `dc:"状态码"`
- ErrorMsg string `dc:"错误信息"`
- Data interface{} `dc:"返回数据"`
- }
- type BiddingListReq struct {
- g.Meta `path:"/bidding/List" tags:"AiSearch" method:"post" summary:"报讯列表"`
- ChatId int64 `json:"chatId" dc:"聊天Id"`
- }
- type BiddingListRes struct {
- ErrorCode int `dc:"状态码"`
- ErrorMsg string `dc:"错误信息"`
- Data interface{} `dc:"返回数据"`
- }
|