|
@ -28,8 +28,8 @@ func (c *DictDetailController) URLMapping() { |
|
|
func (c *DictDetailController) GetAll() { |
|
|
func (c *DictDetailController) GetAll() { |
|
|
dictId, _ := c.GetInt64("dictId") |
|
|
dictId, _ := c.GetInt64("dictId") |
|
|
dictName := c.GetString("dictName") |
|
|
dictName := c.GetString("dictName") |
|
|
total,list := models.GetAllDictDetail(c.GetParams(),dictId,dictName) |
|
|
total, list := models.GetAllDictDetail(c.GetParams(), dictId, dictName) |
|
|
c.Data["json"] = controllers.SuccessData(vo.ResultList{Content: list,TotalElements: total}) |
|
|
c.Data["json"] = controllers.SuccessData(vo.ResultList{Content: list, TotalElements: total}) |
|
|
c.ServeJSON() |
|
|
c.ServeJSON() |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -83,7 +83,7 @@ func (c *DictDetailController) Put() { |
|
|
// @Success 200 {object} controllers.Result
|
|
|
// @Success 200 {object} controllers.Result
|
|
|
// @router /:id [delete]
|
|
|
// @router /:id [delete]
|
|
|
func (c *DictDetailController) Delete() { |
|
|
func (c *DictDetailController) Delete() { |
|
|
id, _ := c.GetInt64(":id",1) |
|
|
id, _ := c.GetInt64(":id", 1) |
|
|
e := models.DelByDictDetail(id) |
|
|
e := models.DelByDictDetail(id) |
|
|
if e != nil { |
|
|
if e != nil { |
|
|
c.Data["json"] = controllers.ErrMsg(e.Error()) |
|
|
c.Data["json"] = controllers.ErrMsg(e.Error()) |
|
|