JM-WechatMini/router/system/sys_chatgpt.go

21 lines
548 B
Go
Raw Normal View History

2023-11-02 04:34:46 +08:00
package system
import (
"github.com/gin-gonic/gin"
v1 "miniapp/api/v1"
"miniapp/middleware"
)
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)
}
}