talent_post_api.go 671 B

12345678910111213141516171819202122232425262728293031
  1. package youngeetalentapi
  2. import (
  3. "youngmini_server/app/service/youngee_talent_service"
  4. "github.com/gogf/gf/net/ghttp"
  5. )
  6. var TalentPostApi = talentPostApi{}
  7. type talentPostApi struct {
  8. }
  9. // Login 达人端登录
  10. func (*talentPostApi) Login(r *ghttp.Request) {
  11. // 向微信服务端校验登录凭证
  12. res := youngee_talent_service.WxLogin(r)
  13. err := r.Response.WriteJson(res)
  14. if err != nil {
  15. panic("write response error")
  16. }
  17. }
  18. // GetQrcode 获取微信分享二维码
  19. func (*talentPostApi) GetQrcode(r *ghttp.Request) {
  20. res := youngee_talent_service.RequestShareInfo(r)
  21. err := r.Response.WriteJson(res)
  22. if err != nil {
  23. panic("write response error")
  24. }
  25. }