refactor🎨: 批量修改通过id获取详情返回消息

This commit is contained in:
zhangwenjian committed 2021-06-13 21:14:17 +08:00
1 parent cc0dab3cd0
commit 4a2aa02210
15 files changed
+25 -25

No files matched your search

+1 -1
View File
@@ -83,7 +83,7 @@ func (e SysApi) Get(c *gin.Context) {
e.Error(500, err, "查询失败")
return
}
e.OK(object, "查看成功")
e.OK(object, "查询成功")
}
// Update 修改接口管理
+1 -1
View File
@@ -80,7 +80,7 @@ func (e SysConfig) Get(c *gin.Context) {
return
}
e.OK(object, "查看成功")
e.OK(object, "查询成功")
}
// Insert 创建配置管理
+1 -1
View File
@@ -79,7 +79,7 @@ func (e SysDept) Get(c *gin.Context) {
return
}
e.OK(object, "查看成功")
e.OK(object, "查询成功")
}
// Insert 添加部门
+1 -1
View File
@@ -86,7 +86,7 @@ func (e SysDictData) Get(c *gin.Context) {
return
}
e.OK(object, "查看成功")
e.OK(object, "查询成功")
}
// InsertSysDictData
+1 -1
View File
@@ -80,7 +80,7 @@ func (e SysDictType) Get(c *gin.Context) {
e.Error(500, err, "查询失败")
return
}
e.OK(object, "查看成功")
e.OK(object, "查询成功")
}
//Insert 字典类型创建
+1 -1
View File
@@ -78,7 +78,7 @@ func (e SysLoginLog) Get(c *gin.Context) {
e.Error(500, err, "查询失败")
return
}
e.OK(object, "查看成功")
e.OK(object, "查询成功")
}
// DeleteSysLoginLog 登录日志删除
+1 -1
View File
@@ -76,7 +76,7 @@ func (e SysMenu) Get(c *gin.Context) {
e.Error(500, err, "查询失败")
return
}
e.OK(object, "查看成功")
e.OK(object, "查询成功")
}
// Insert 创建菜单
+1 -1
View File
@@ -83,7 +83,7 @@ func (e SysOperaLog) Get(c *gin.Context) {
e.Error(500, err, "查询失败")
return
}
e.OK(object, "查看成功")
e.OK(object, "查询成功")
}
// Delete 操作日志删除
+1 -1
View File
@@ -84,7 +84,7 @@ func (e SysPost) Get(c *gin.Context) {
return
}
e.OK(object, "查看成功")
e.OK(object, "查询成功")
}
// Insert
+1 -1
View File
@@ -89,7 +89,7 @@ func (e SysRole) Get(c *gin.Context) {
return
}
e.OK(object, "查看成功")
e.OK(object, "查询成功")
}
// Insert
+1 -1
View File
@@ -86,7 +86,7 @@ func (e SysUser) Get(c *gin.Context) {
e.Error(http.StatusUnprocessableEntity, err, "查询失败")
return
}
e.OK(object, "查看成功")
e.OK(object, "查询成功")
}
// Insert
+6 -6
View File
@@ -18,7 +18,7 @@ type SysFileDir struct {
api.Api
}
func (e SysFileDir) GetSysFileDirList(c *gin.Context) {
func (e SysFileDir) GetPage(c *gin.Context) {
e.Context = c
log := e.GetLogger()
search := new(dto.SysFileDirSearch)
@@ -47,7 +47,7 @@ func (e SysFileDir) GetSysFileDirList(c *gin.Context) {
e.OK(list, "查询成功")
}
func (e SysFileDir) GetSysFileDir(c *gin.Context) {
func (e SysFileDir) Get(c *gin.Context) {
control := new(dto.SysFileDirById)
e.Context = c
log := e.GetLogger()
@@ -76,10 +76,10 @@ func (e SysFileDir) GetSysFileDir(c *gin.Context) {
return
}
e.OK(object, "查看成功")
e.OK(object, "查询成功")
}
func (e SysFileDir) InsertSysFileDir(c *gin.Context) {
func (e SysFileDir) Insert(c *gin.Context) {
control := new(dto.SysFileDirControl)
e.Context = c
log := e.GetLogger()
@@ -118,7 +118,7 @@ func (e SysFileDir) InsertSysFileDir(c *gin.Context) {
e.OK(control.Id, "创建成功")
}
func (e SysFileDir) UpdateSysFileDir(c *gin.Context) {
func (e SysFileDir) Update(c *gin.Context) {
control := new(dto.SysFileDirControl)
e.Context = c
log := e.GetLogger()
@@ -156,7 +156,7 @@ func (e SysFileDir) UpdateSysFileDir(c *gin.Context) {
e.OK(control.Id, "更新成功")
}
func (e SysFileDir) DeleteSysFileDir(c *gin.Context) {
func (e SysFileDir) Delete(c *gin.Context) {
control := new(dto.SysFileDirById)
e.Context = c
log := e.GetLogger()
+6 -6
View File
@@ -17,7 +17,7 @@ type SysFileInfo struct {
api.Api
}
func (e SysFileInfo) GetSysFileInfoList(c *gin.Context) {
func (e SysFileInfo) GetPage(c *gin.Context) {
e.Context = c
log := e.GetLogger()
search := new(dto2.SysFileInfoSearch)
@@ -51,7 +51,7 @@ func (e SysFileInfo) GetSysFileInfoList(c *gin.Context) {
e.PageOK(list, int(count), search.PageIndex, search.PageSize, "查询成功")
}
func (e SysFileInfo) GetSysFileInfo(c *gin.Context) {
func (e SysFileInfo) Get(c *gin.Context) {
control := new(dto2.SysFileInfoById)
e.Context = c
log := e.GetLogger()
@@ -84,10 +84,10 @@ func (e SysFileInfo) GetSysFileInfo(c *gin.Context) {
return
}
e.OK(object, "查看成功")
e.OK(object, "查询成功")
}
func (e SysFileInfo) InsertSysFileInfo(c *gin.Context) {
func (e SysFileInfo) Insert(c *gin.Context) {
control := new(dto2.SysFileInfoControl)
e.Context = c
log := e.GetLogger()
@@ -126,7 +126,7 @@ func (e SysFileInfo) InsertSysFileInfo(c *gin.Context) {
e.OK(control.Id, "创建成功")
}
func (e SysFileInfo) UpdateSysFileInfo(c *gin.Context) {
func (e SysFileInfo) Update(c *gin.Context) {
control := new(dto2.SysFileInfoControl)
e.Context = c
log := e.GetLogger()
@@ -166,7 +166,7 @@ func (e SysFileInfo) UpdateSysFileInfo(c *gin.Context) {
e.OK(control.Id, "更新成功")
}
func (e SysFileInfo) DeleteSysFileInfo(c *gin.Context) {
func (e SysFileInfo) Delete(c *gin.Context) {
control := new(dto2.SysFileInfoById)
e.Context = c
log := e.GetLogger()
+1 -1
View File
@@ -61,7 +61,7 @@ func ViewAction(control dto.Control, f func() interface{}) gin.HandlerFunc {
response.Error(c, http.StatusInternalServerError, err, "查看失败")
return
}
response.OK(c, rsp, "查看成功")
response.OK(c, rsp, "查询成功")
c.Next()
}
}
+1 -1
View File
@@ -111,7 +111,7 @@ func (e {{.ClassName}}) Get{{.ClassName}}(c *gin.Context) {
return
}
e.OK( object, "查看成功")
e.OK( object, "查询成功")
}
// Insert{{.ClassName}} 创建{{.TableComment}}