| | |
| | | Start string `json:"start"`//开始 |
| | | End string `json:"end"`//结束 |
| | | } |
| | | // |
| | | |
| | | // @Security ApiKeyAuth |
| | | // @Summary 时间规则保存 |
| | | // @Description 时间规则保存 |
| | | // @Accept json |
| | |
| | | paramBody["id"] = vo.Id |
| | | paramBody["name"] = vo.Name |
| | | paramBody["time_rule"] = vo.TimeRule |
| | | fmt.Println("paramBody: ", paramBody) |
| | | |
| | | var api dbapi.CameraApi |
| | | flag, data := api.SaveCameraTimerule(paramBody) |
| | | if flag { |
| | |
| | | util.ResponseFormat(c,code.ComError,"保存失败") |
| | | } |
| | | |
| | | // @Security ApiKeyAuth |
| | | // @Summary 删除时间规则 |
| | | // @Description 删除时间规则 |
| | | // @Accept json |
| | | // @Produce json |
| | | // @Tags CameraTimerule |
| | | // @Param id query string true "id" |
| | |
| | | util.ResponseFormat(c, code.ComError, "删除失败") |
| | | } |
| | | |
| | | // @Security ApiKeyAuth |
| | | // @Summary 查找所有时间规则 |
| | | // @Description 查找所有时间规则 |
| | | // @Accept json |