share.go 212 B

1234567891011121314
  1. package http
  2. import (
  3. bm "go-common/library/net/http/blademaster"
  4. )
  5. func encourage(c *bm.Context) {
  6. var (
  7. mid int64
  8. )
  9. midStr, _ := c.Get("mid")
  10. mid = midStr.(int64)
  11. c.JSON(srvShare.Encourage(c, mid))
  12. }