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