21 lines
548 B
Go
21 lines
548 B
Go
|
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)
|
||
|
}
|
||
|
}
|