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:
@@ -16,7 +16,7 @@ type SystemApiApi struct {
|
||||
|
||||
func (s *SystemApiApi) CreateApi(rc *restfulx.ReqCtx) {
|
||||
var api entity.SysApi
|
||||
restfulx.BindQuery(rc, &api)
|
||||
restfulx.BindJsonAndValid(rc, &api)
|
||||
s.ApiApp.Insert(api)
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ func (s *SystemApiApi) GetApiById(rc *restfulx.ReqCtx) {
|
||||
|
||||
func (s *SystemApiApi) UpdateApi(rc *restfulx.ReqCtx) {
|
||||
var api entity.SysApi
|
||||
restfulx.BindQuery(rc, &api)
|
||||
restfulx.BindJsonAndValid(rc, &api)
|
||||
s.ApiApp.Update(api)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user