talent_get_api.go 642 B

1234567891011121314151617181920212223242526272829303132
  1. package youngeetalentapi
  2. import (
  3. "youngmini_server/app/service/youngee_talent_service"
  4. "github.com/gogf/gf/net/ghttp"
  5. )
  6. var TalentGetApi = talentGetApi{}
  7. type talentGetApi struct {
  8. }
  9. // 获取任务列表
  10. func (*talentGetApi) GetProjectList(r *ghttp.Request) {
  11. res := youngee_talent_service.GetProjectInfoList(r)
  12. err := r.Response.WriteJson(res)
  13. if err != nil {
  14. panic("write response error")
  15. }
  16. }
  17. // GetInfoTables 获取所有信息表
  18. func (*talentGetApi) GetInfoTables(r *ghttp.Request) {
  19. res := youngee_talent_service.GetInfoTables()
  20. err := r.Response.WriteJson(res)
  21. if err != nil {
  22. panic("write response error")
  23. }
  24. }