jianghan 5 月之前
父节点
当前提交
f047b10ccb
共有 3 个文件被更改,包括 8 次插入3 次删除
  1. 4 2
      api/aiSearch/v1/aiSearchApi.go
  2. 3 1
      go.mod
  3. 1 0
      internal/controller/aiSearch/aiSearch_v1_create_new_session.go

+ 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)
 }