1234567891011121314151617181920212223242526272829303132 |
- package controllers
- import "hongze/hongze_cygx/models"
- type ChartPermissionController struct {
- BaseCommonController
- }
- func (this *ChartPermissionController) Detail() {
- br := new(models.BaseResponse).Init()
- defer func() {
- this.Data["json"] = br
- this.ServeJSON()
- }()
- list, err := models.GetChartPermissionAll()
- if err != nil {
- br.Msg = "获取信息失败"
- br.ErrMsg = "获取品种信息失败,Err:" + err.Error()
- return
- }
- resp := new(models.ChartPermissionResp)
- resp.List = list
- br.Ret = 200
- br.Success = true
- br.Msg = "获取成功"
- br.Data = resp
- }
|