1234567891011121314151617181920212223242526272829303132333435 |
- package controllers
- import (
- "eta/eta_mini_crm_ht/models"
- "eta/eta_mini_crm_ht/services"
- )
- type HTController struct {
- BaseAuthController
- }
- // GetIndexInfo
- // @Title 获取一期指标信息
- // @Description 获取一期指标信息
- // @Success 200 {object} models.LoginResp
- // @router /getIndexInfo [get]
- func (this *HTController) GetIndexInfo(IndexCode string) {
- br := new(models.BaseResponse).Init()
- defer func() {
- this.Data["json"] = br
- this.ServeJSON()
- }()
- IndexInfo, err := services.GetIndexInfo(IndexCode)
- if err != nil {
- br.Msg = "分类列表获取失败"
- br.ErrMsg = "分类列表获取失败,系统错误,Err:" + err.Error()
- return
- }
- br.Data = IndexInfo
- br.Ret = 200
- br.Msg = "指标信息获取成功"
- br.Success = true
- }
|