fix: 解决 mysql 8.0 性能调整失败的问题

This commit is contained in:
ssongliu
2022-12-09 14:07:18 +08:00
committed by ssongliu
parent 77ff593403
commit 7eea08c842
10 changed files with 94 additions and 25 deletions

View File

@@ -201,6 +201,16 @@ func (b *BaseApi) LoadBaseinfo(c *gin.Context) {
helper.SuccessWithData(c, data)
}
func (b *BaseApi) LoadRemoteAccess(c *gin.Context) {
isRemote, err := mysqlService.LoadRemoteAccess()
if err != nil {
helper.ErrorWithDetail(c, constant.CodeErrInternalServer, constant.ErrTypeInternalServer, err)
return
}
helper.SuccessWithData(c, isRemote)
}
func (b *BaseApi) LoadStatus(c *gin.Context) {
data, err := mysqlService.LoadStatus()
if err != nil {