| | |
| | | } |
| | | param := util.Struct2Map(reqBody) |
| | | var api dbapi.CameraRuleApi |
| | | if api.Save(param) { |
| | | b,d := api.Save(param) |
| | | if b { |
| | | util.ResponseFormat(c,code.Success,"") |
| | | } else { |
| | | util.ResponseFormat(c,code.ComError,"") |
| | | util.ResponseFormat(c,code.ComError,d) |
| | | } |
| | | } |
| | | |
| | |
| | | go 1.12 |
| | | |
| | | require ( |
| | | basic.com/dbapi.git v0.0.0-20200715034924-efff0090a654 // indirect |
| | | basic.com/dbapi.git v0.0.0-20200715075404-9f0063dfc00a // indirect |
| | | basic.com/fileServer/WeedFSClient.git v0.0.0-20190919054037-0182b6c3f5cb |
| | | basic.com/gb28181api.git v0.0.0-20191028082253-472438a8407b |
| | | basic.com/pubsub/cache.git v0.0.0-20190718093725-6a413e1d7d48 |
| | |
| | | basic.com/dbapi.git v0.0.0-20200715034924-efff0090a654 h1:yrnv0xPsvIrliekTS7L6pLEoabmyaHkqP/mo6dJrVDc= |
| | | basic.com/dbapi.git v0.0.0-20200715034924-efff0090a654/go.mod h1:eDXPnxaz6jZPDvBSk7ya7oSASWPCuUEgRTJCjsfKt/Q= |
| | | basic.com/dbapi.git v0.0.0-20200715075404-9f0063dfc00a h1:4YUp6p62aHKlojjLyt1w8Pe+WoGjksIrqs19pHIR/YQ= |
| | | basic.com/dbapi.git v0.0.0-20200715075404-9f0063dfc00a/go.mod h1:eDXPnxaz6jZPDvBSk7ya7oSASWPCuUEgRTJCjsfKt/Q= |
| | | basic.com/fileServer/WeedFSClient.git v0.0.0-20190919054037-0182b6c3f5cb h1:fM6DojeInFSCFO+wkba1jtyPiSDqw0jYKi4Tk+e+ka4= |
| | | basic.com/fileServer/WeedFSClient.git v0.0.0-20190919054037-0182b6c3f5cb/go.mod h1:FTryK8BsVLfUplx8a3+l8hJWub6VbAWZCUH7sPRZaso= |
| | | basic.com/gb28181api.git v0.0.0-20191028082253-472438a8407b h1:Qh7x2PY3HA9B404Llq+olY5/YlGYrM58bpOHa2CGcro= |