File tree Expand file tree Collapse file tree 3 files changed +6
-8
lines changed Expand file tree Collapse file tree 3 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -13,11 +13,10 @@ import (
13
13
14
14
// @Tags InitDB
15
15
// @Summary 初始化用户数据库
16
- // @Security ApiKeyAuth
17
16
// @Produce application/json
18
- // @Param data body request.Empty true "空 "
19
- // @Success 200 {string} string "{"success":true ,"data":{},"msg":"获取成功 "}"
20
- // @Router /init/db [post]
17
+ // @Param data body request.InitDB true "初始化数据库参数 "
18
+ // @Success 200 {string} string "{"code":0 ,"data":{},"msg":"自动创建数据库成功 "}"
19
+ // @Router /initdb [post]
21
20
func InitDB (c * gin.Context ) {
22
21
if global .GVA_DB != nil {
23
22
global .GVA_LOG .Error ("非法访问" )
Original file line number Diff line number Diff line change @@ -51,9 +51,8 @@ func SetSystemConfig(c *gin.Context) {
51
51
// @Summary 重启系统
52
52
// @Security ApiKeyAuth
53
53
// @Produce application/json
54
- // @Param data body model.System true "重启系统"
55
- // @Success 200 {string} string "{"success":true,"data":{},"msg":"重启系统成功"}"
56
- // @Router /system/ReloadSystem [post]
54
+ // @Success 200 {string} string "{"code":0,"data":{},"msg":"重启系统成功"}"
55
+ // @Router /system/reloadSystem [post]
57
56
func ReloadSystem (c * gin.Context ) {
58
57
if runtime .GOOS == "windows" {
59
58
response .FailWithMessage ("系统不支持" , c )
Original file line number Diff line number Diff line change 1
- package model
1
+ package request
2
2
3
3
type InitDB struct {
4
4
Host string `json:"host"`
You can’t perform that action at this time.
0 commit comments