mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-23 10:58:35 +08:00
iot init
This commit is contained in:
@@ -43,14 +43,14 @@ func (p *ConfigApi) GetConfig(rc *restfulx.ReqCtx) {
|
||||
|
||||
func (p *ConfigApi) InsertConfig(rc *restfulx.ReqCtx) {
|
||||
var config entity.SysConfig
|
||||
restfulx.BindQuery(rc, &config)
|
||||
restfulx.BindJsonAndValid(rc, &config)
|
||||
|
||||
p.ConfigApp.Insert(config)
|
||||
}
|
||||
|
||||
func (p *ConfigApi) UpdateConfig(rc *restfulx.ReqCtx) {
|
||||
var post entity.SysConfig
|
||||
restfulx.BindQuery(rc, &post)
|
||||
restfulx.BindJsonAndValid(rc, &post)
|
||||
p.ConfigApp.Update(post)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user