jianghan 5 mesiacov pred
rodič
commit
f047b10ccb

+ 4 - 2
api/aiSearch/v1/aiSearchApi.go

@@ -3,7 +3,8 @@ package v1
 import "github.com/gogf/gf/v2/frame/g"
 
 type CreateNewSessionReq struct {
-	g.Meta `path:"/session/newCreate" tags:"AiSearch" method:"get" summary:"创建新会话"`
+	g.Meta     `path:"/session/newCreate" tags:"AiSearch" method:"post" summary:"创建新会话"`
+	positionId int64 `json:"positionId" dc:"职位id"`
 }
 
 type CreateNewSessionRes struct {
@@ -13,8 +14,9 @@ type CreateNewSessionRes struct {
 }
 
 type LikeSessionReq struct {
-	g.Meta `path:"/session/like" tags:"AiSearch" method:"post" summary:"会话点赞"`
+	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 {

+ 3 - 1
go.mod

@@ -1,6 +1,8 @@
 module aiChat
 
-go 1.20
+go 1.21
+
+toolchain go1.23.6
 
 require (
 	app.yhyue.com/moapp/jybase v0.0.0-20250220061341-81c668b6c7ea

+ 1 - 0
internal/controller/aiSearch/aiSearch_v1_create_new_session.go

@@ -10,5 +10,6 @@ import (
 )
 
 func (c *ControllerV1) CreateNewSession(ctx context.Context, req *v1.CreateNewSessionReq) (res *v1.CreateNewSessionRes, err error) {
+
 	return nil, gerror.NewCode(gcode.CodeNotImplemented)
 }