12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- package controllers
- import (
- "eta_gn/eta_api/models"
- )
- type ResearchGroupController struct {
- BaseAuthController
- }
- 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
- }
- 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
- }
|