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

This commit is contained in:
zhangwenjian
2021-06-13 21:14:17 +08:00
parent cc0dab3cd0
commit 4a2aa02210
15 changed files with 25 additions and 25 deletions
+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()