mirror of
https://github.com/flipped-aurora/gin-vue-admin.git
synced 2026-09-21 12:32:25 +00:00
Gpt (#1389)
* fix:优化自动化代码搜索区域 (#1382) * 增加gpt功能(万用表格) * feat: chatTable页面 --------- Co-authored-by: ipanghu <bypanghu@163.com> Co-authored-by: 陶正虎 <zhenghu.tao@jutze.com.cn> Co-authored-by: krank <emosick@qq.com>
This commit is contained in:
committed by
GitHub
co-authored by
ipanghu
陶正虎
krank
parent
a207c982b7
commit
64608f6b05
@@ -15,4 +15,5 @@ type RouterGroup struct {
|
||||
OperationRecordRouter
|
||||
DictionaryDetailRouter
|
||||
AuthorityBtnRouter
|
||||
ChatGptRouter
|
||||
}
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
package system
|
||||
|
||||
import (
|
||||
v1 "github.com/flipped-aurora/gin-vue-admin/server/api/v1"
|
||||
"github.com/flipped-aurora/gin-vue-admin/server/middleware"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
type ChatGptRouter struct{}
|
||||
|
||||
func (s *ChatGptRouter) InitChatGptRouter(Router *gin.RouterGroup) {
|
||||
chatGptRouter := Router.Group("chatGpt").Use(middleware.OperationRecord())
|
||||
chatGptApi := v1.ApiGroupApp.SystemApiGroup.ChatGptApi
|
||||
{
|
||||
chatGptRouter.POST("createSK", chatGptApi.CreateSK)
|
||||
chatGptRouter.GET("getSK", chatGptApi.GetSK)
|
||||
chatGptRouter.DELETE("deleteSK", chatGptApi.DeleteSK)
|
||||
chatGptRouter.POST("getTable", chatGptApi.GetTable)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user