64 lines
2.0 KiB
Go
64 lines
2.0 KiB
Go
package system
|
|
|
|
import (
|
|
"kra/pkg/response"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
// InstallPlugin 安装插件
|
|
// @Tags AutoCodePlugin
|
|
// @Summary 安装插件
|
|
// @Security ApiKeyAuth
|
|
// @accept multipart/form-data
|
|
// @Produce application/json
|
|
// @Param plug formData file true "插件文件"
|
|
// @Success 200 {object} response.Response{data=[]interface{}} "安装成功"
|
|
// @Router /autoCode/installPlugin [post]
|
|
func InstallPlugin(c *gin.Context) {
|
|
// TODO: 实现插件安装功能
|
|
response.FailWithMessage("功能开发中", c)
|
|
}
|
|
|
|
// PackagedPlugin 打包插件
|
|
// @Tags AutoCodePlugin
|
|
// @Summary 打包插件
|
|
// @Security ApiKeyAuth
|
|
// @accept application/json
|
|
// @Produce application/json
|
|
// @Param plugName query string true "插件名称"
|
|
// @Success 200 {object} response.Response{msg=string} "打包成功"
|
|
// @Router /autoCode/pubPlug [post]
|
|
func PackagedPlugin(c *gin.Context) {
|
|
// TODO: 实现插件打包功能
|
|
response.FailWithMessage("功能开发中", c)
|
|
}
|
|
|
|
// InitPluginMenu 初始化插件菜单
|
|
// @Tags AutoCodePlugin
|
|
// @Summary 初始化插件菜单
|
|
// @Security ApiKeyAuth
|
|
// @accept application/json
|
|
// @Produce application/json
|
|
// @Param data body map[string]interface{} true "菜单信息"
|
|
// @Success 200 {object} response.Response{msg=string} "初始化成功"
|
|
// @Router /autoCode/initMenu [post]
|
|
func InitPluginMenu(c *gin.Context) {
|
|
// TODO: 实现插件菜单初始化功能
|
|
response.FailWithMessage("功能开发中", c)
|
|
}
|
|
|
|
// InitPluginAPI 初始化插件API
|
|
// @Tags AutoCodePlugin
|
|
// @Summary 初始化插件API
|
|
// @Security ApiKeyAuth
|
|
// @accept application/json
|
|
// @Produce application/json
|
|
// @Param data body map[string]interface{} true "API信息"
|
|
// @Success 200 {object} response.Response{msg=string} "初始化成功"
|
|
// @Router /autoCode/initAPI [post]
|
|
func InitPluginAPI(c *gin.Context) {
|
|
// TODO: 实现插件API初始化功能
|
|
response.FailWithMessage("功能开发中", c)
|
|
}
|