19 lines
387 B
Go
19 lines
387 B
Go
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))
|
|
}
|