package youngeetalentapi import ( "youngmini_server/app/service/youngee_sectask_service" "youngmini_server/app/service/youngee_talent_service" "youngmini_server/app/service/youngee_task_service" "github.com/gogf/gf/net/ghttp" ) var TalentGetApi = talentGetApi{} type talentGetApi struct { } // GetInfoTables 获取所有信息表 func (*talentGetApi) GetInfoTables(r *ghttp.Request) { res := youngee_talent_service.GetInfoTables() err := r.Response.WriteJson(res) if err != nil { panic("write response error") } } // 获取任务大厅展示列表 func (*talentGetApi) GetProjectList(r *ghttp.Request) { res := youngee_task_service.GetProjectInfoList(r) err := r.Response.WriteJson(res) if err != nil { panic("write response error") } } // 获取选品任务广场展示列表 func (*talentGetApi) GetSelectionList(r *ghttp.Request) { res := youngee_sectask_service.GetSelectionList(r) err := r.Response.WriteJson(res) if err != nil { panic("write response error") } }