123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- package v1
- import "github.com/gogf/gf/v2/frame/g"
- type CreateNewSessionReq struct {
- g.Meta `path:"/session/newCreate" tags:"AiSearch" method:"get" summary:"创建新会话"`
- }
- type CreateNewSessionRes struct {
- ErrorCode int `json:"errorCode" dc:"状态码"`
- ErrorMsg string `json:"errorMsg" dc:"错误信息"`
- Data interface{} `json:"data" dc:"返回数据"`
- }
- type LikeAnswerReq struct {
- g.Meta `path:"/answer/like" tags:"AiSearch" method:"post" summary:"回复点赞"`
- Cid string `json:"cid" dc:"聊天id"`
- Val int `json:"val" dc:"点赞:0:未点赞 1:已点赞"`
- }
- type LikeAnswerRes struct {
- ErrorCode int `dc:"状态码"`
- 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 `json:"errorCode" dc:"状态码"`
- ErrorMsg string `json:"errorMsg" dc:"错误信息"`
- Data interface{} `json:"data" 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 `json:"errorCode" dc:"状态码"`
- ErrorMsg string `json:"errorMsg" dc:"错误信息"`
- Data interface{} `json:"data" dc:"返回数据"`
- }
- type ProblemConfigurationReq struct {
- g.Meta `path:"/problem/configuration" tags:"AiSearch" method:"post" summary:"问题配置"`
- }
- type ProblemConfigurationRes struct {
- 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"`
- Question string `json:"question" v:"required" dc:"用户发送内容"`
- Item int `json:"item" v:"required" dc:"分类"`
- }
- type ChatRes struct {
- Id string `json:"id" dc:"id"`
- Status int `json:"status" dc:"状态;0:服务器繁忙 1:成功"`
- Count int `json:"count" dc:"列表长度"`
- List []*ResBidding `json:"list" dc:"答案列表"`
- LargeModelName string `json:"largeModelName" dc:"大模型名称"`
- LargeModelReply map[string]interface{} `json:"largeModelReply" dc:"大模型回复"`
- }
- type BiddingListReq struct {
- g.Meta `path:"/bidding/List" tags:"AiSearch" method:"post" summary:"报讯列表"`
- ChatId string `json:"chatId" dc:"聊天Id"`
- }
- type BiddingListRes struct {
- ErrorCode int `json:"errorCode" dc:"状态码"`
- ErrorMsg string `json:"errorMsg" dc:"错误信息"`
- Data interface{} `json:"data" dc:"返回数据"`
- }
- type ResBidding struct {
- InfoId string `json:"infoId" dc:"标讯id"`
- Title string `json:"title" dc:"标题"`
- Area string `json:"area" dc:"省份"`
- City string `json:"city" dc:"城市"`
- District string `json:"district" dc:"区县"`
- Subtype string `json:"subtype" dc:"信息类型"`
- Industry string `json:"industry" dc:"信息行业"`
- Annex int `json:"annex" dc:"是否有附件;0:否 1:是"`
- Buyerclass string `json:"buyerclass" dc:"采购单位行业"`
- Budget int64 `json:"budget" dc:"预算"`
- Bidamount int64 `json:"bidamount" dc:"中标金额"`
- Publishtime int64 `json:"publishtime" dc:"发布时间"`
- Collect int `json:"collect" dc:"是否收藏;0:否 1:是"`
- }
|