go-common/app/interface/openplatform/article/http/users.go

19 lines
387 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
package http
import (
bm "go-common/library/net/http/blademaster"
)
func userNotice(c *bm.Context) {
midInter, _ := c.Get("mid")
mid := midInter.(int64)
c.JSON(artSrv.UserNoticeState(c, mid))
}
func updateUserNotice(c *bm.Context) {
midInter, _ := c.Get("mid")
mid := midInter.(int64)
typ := c.Request.Form.Get("type")
c.JSON(nil, artSrv.UpdateUserNoticeState(c, mid, typ))
}