Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DbTestPing ¶
@Summary 接管服务 @Description 数据库测试连接 @Produce json @Param body body model.DatabaseInfos true "body参数" @Success 200 {string} string "code: 200 成功" @Failure 200 {string} string "code: 401 参数错误; 500 服务器内部错误; 505 JWT认证失败; 10001 新增失败; 10002 更新失败; 10003 删除失败; 10004 查询失败; " @Router /admin/dbTestPing [post]
func InitConfig ¶
@Summary 接管服务 @Description 初始化配置文件 @Produce json @Param body body model.DatabaseInfos true "body参数" @Success 200 {string} string "code: 200 成功" @Failure 200 {string} string "code: 401 参数错误; 500 服务器内部错误; 505 JWT认证失败; 10001 新增失败; 10002 更新失败; 10003 删除失败; 10004 查询失败; " @Router /admin/initConfig [post]
func Ping ¶
@Summary 接管服务 @Description 服务连接测试 @Produce json @Success 200 {string} string "code: 200 成功" @Failure 200 {string} string "code: 401 参数错误; 500 服务器内部错误; 505 JWT认证失败; 10001 新增失败; 10002 更新失败; 10003 删除失败; 10004 查询失败; " @Router /admin/ping [get]
func Restart ¶
@Summary 接管服务 @Description 重启服务 @Produce json @Param body body model.DatabaseInfos true "body参数" @Success 200 {string} string "code: 200 成功" @Failure 200 {string} string "code: 401 参数错误; 500 服务器内部错误; 505 JWT认证失败; 10001 新增失败; 10002 更新失败; 10003 删除失败; 10004 查询失败; " @Router /admin/restart [post]
Types ¶
This section is empty.