mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-27 04:09:37 +08:00
iot init
This commit is contained in:
@@ -40,7 +40,7 @@ func (p *NoticeApi) GetNoticeList(rc *restfulx.ReqCtx) {
|
||||
// InsertNotice 添加通知
|
||||
func (p *NoticeApi) InsertNotice(rc *restfulx.ReqCtx) {
|
||||
var notice entity.SysNotice
|
||||
restfulx.BindQuery(rc, ¬ice)
|
||||
restfulx.BindJsonAndValid(rc, ¬ice)
|
||||
notice.UserName = rc.LoginAccount.UserName
|
||||
p.NoticeApp.Insert(notice)
|
||||
}
|
||||
@@ -48,7 +48,7 @@ func (p *NoticeApi) InsertNotice(rc *restfulx.ReqCtx) {
|
||||
// UpdateNotice 修改通知
|
||||
func (p *NoticeApi) UpdateNotice(rc *restfulx.ReqCtx) {
|
||||
var notice entity.SysNotice
|
||||
restfulx.BindQuery(rc, ¬ice)
|
||||
restfulx.BindJsonAndValid(rc, ¬ice)
|
||||
|
||||
p.NoticeApp.Update(notice)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user