bugly.go 549 B

1234567891011121314151617181920212223242526272829303132333435
  1. package http
  2. import (
  3. bm "go-common/library/net/http/blademaster"
  4. )
  5. func queryIssue(c *bm.Context) {
  6. v := new(struct {
  7. Version string `form:"version"`
  8. })
  9. if err := c.Bind(v); err != nil {
  10. return
  11. }
  12. c.JSON(srv.Issue(c, v.Version))
  13. }
  14. func updateToken(c *bm.Context) {
  15. c.JSON(srv.UpdateToken(c))
  16. }
  17. func saveIssue(c *bm.Context) {
  18. v := new(struct {
  19. Version string `form:"version"`
  20. })
  21. if err := c.Bind(v); err != nil {
  22. return
  23. }
  24. c.JSON(srv.SaveIssue(c, v.Version))
  25. }
  26. func saveIssues(c *bm.Context) {
  27. c.JSON(srv.SaveIssues(c))
  28. }