|
@@ -139,8 +139,8 @@ func (c *QualityApi) Post() {
|
|
|
// @Param id body string true "质量巡检ID"
|
|
|
// @Success 200 {object} viewmodels.Quality "{code:0成功,msg:}"
|
|
|
// @Failure 400 {string} string "{code:0成功,-1参数类错误,-2服务端内部错误,msg:错误信息}"
|
|
|
-// @Router /api/quality [delete]
|
|
|
-func (c *QualityApi) Delete() {
|
|
|
+// @Router /api/quality/del [delete]
|
|
|
+func (c *QualityApi) DeleteDel() {
|
|
|
queryId := c.Ctx.URLParam("id")
|
|
|
if queryId == "" {
|
|
|
c.Ctx.JSON(iris.Map{"code": -1, "msg": "id不存在"})
|