package controllers import ( "eta_gn/eta_api/models" ) type ResearchGroupController struct { BaseAuthController } // GetResearchGroupList // @Title 获取研究方向分组列表 // @Description 获取研究方向分组列表 // @Success 200 {object} services.ResearchGroupItem 获取成功 // @router /research_group/list [get] func (this *ResearchGroupController) GetResearchGroupList() { br := new(models.BaseResponse).Init() defer func() { this.Data["json"] = br this.ServeJSON() }() br.Ret = 200 br.Success = true br.Msg = "操作成功" return } // GetAdminResearchGroup // @Title 获取研究员研究方向 // @Description 获取研究员研究方向 // @Param AdminId query int true "研究员ID" // @Success 200 {object} models.ResearchGroupRelation 获取成功 // @router /research_group/admin_group [get] func (this *ResearchGroupController) GetAdminResearchGroup() { br := new(models.BaseResponse).Init() defer func() { this.Data["json"] = br this.ServeJSON() }() adminId, _ := this.GetInt("AdminId") if adminId == 0 { br.Msg = "参数有误" return } br.Ret = 200 br.Success = true br.Msg = "获取成功" return }