pro.go 477 B

12345678910111213141516171819202122232425262728293031
  1. package http
  2. import (
  3. "go-common/app/interface/openplatform/seo/model"
  4. bm "go-common/library/net/http/blademaster"
  5. )
  6. func proList(c *bm.Context) {
  7. c.String(0, "project list")
  8. }
  9. func proInfo(c *bm.Context) {
  10. logUA(c)
  11. arg := new(model.ArgProID)
  12. if err := c.Bind(arg); err != nil {
  13. return
  14. }
  15. bot := isBot(c)
  16. res, err := srv.GetPro(c, arg.ID, bot)
  17. if err != nil {
  18. c.String(0, "%v", err)
  19. return
  20. }
  21. if setCache(c, res) {
  22. return
  23. }
  24. c.String(0, string(res))
  25. }