wails-app-dock/pkg/server/controller/config.go
2024-02-17 21:45:43 +08:00

23 lines
539 B
Go

package controller
import (
"github.com/gin-gonic/gin"
"skapp/pkg/global"
"skapp/pkg/utils/response"
)
// PostConfig
// List 获取配置
//
// @Summary 获取应用列表
// @Description 获取应用列表
// @Tags Config
// @Accept json
// @Produce json
// @Success 200 {object} response.Response{data=config.Config}
// @Failure default {object} errorx.CodeErrorResponse
// @Router /config/ [post]
func PostConfig(ctx *gin.Context) {
ctx.JSON(200, response.NewResponse(global.Config))
}