users.go 387 B

123456789101112131415161718
  1. package http
  2. import (
  3. bm "go-common/library/net/http/blademaster"
  4. )
  5. func userNotice(c *bm.Context) {
  6. midInter, _ := c.Get("mid")
  7. mid := midInter.(int64)
  8. c.JSON(artSrv.UserNoticeState(c, mid))
  9. }
  10. func updateUserNotice(c *bm.Context) {
  11. midInter, _ := c.Get("mid")
  12. mid := midInter.(int64)
  13. typ := c.Request.Form.Get("type")
  14. c.JSON(nil, artSrv.UpdateUserNoticeState(c, mid, typ))
  15. }