You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

18 lines
387 B

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))
}