chore: 修正几个okwithdata 的误用 (#1077)

This commit is contained in:
pnck
2022-05-20 14:55:28 +08:00
committed by GitHub
parent fc0958e511
commit 43d1aa17a3
5 changed files with 6 additions and 6 deletions

View File

@@ -110,7 +110,7 @@ func (s *SystemApiApi) GetApiById(c *gin.Context) {
global.GVA_LOG.Error("获取失败!", zap.Error(err))
response.FailWithMessage("获取失败", c)
} else {
response.OkWithData(systemRes.SysAPIResponse{Api: api}, c)
response.OkWithDetailed(systemRes.SysAPIResponse{Api: api}, "获取成功", c)
}
}