订正了swagger

修改了
- server/api/v1/sys_initdb.go
- server/api/v1/sys_system.go
迁移了模型
- server/model/sys_init.go -> sysver/model/request/sys_init.go
This commit is contained in:
songzhibin97
2021-03-02 12:32:47 +08:00
parent 00b5024f20
commit 835dd15c47
3 changed files with 6 additions and 8 deletions

View File

@@ -13,11 +13,10 @@ import (
// @Tags InitDB
// @Summary 初始化用户数据库
// @Security ApiKeyAuth
// @Produce application/json
// @Param data body request.Empty true ""
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /init/db [post]
// @Param data body request.InitDB true "初始化数据库参数"
// @Success 200 {string} string "{"code":0,"data":{},"msg":"自动创建数据库成功"}"
// @Router /initdb [post]
func InitDB(c *gin.Context) {
if global.GVA_DB != nil {
global.GVA_LOG.Error("非法访问")