3 changed files with 39 additions and 1 deletions
@ -0,0 +1,28 @@ |
|||||||
|
package com.biutag.supervision.pojo.request.modelClue; |
||||||
|
|
||||||
|
import com.biutag.supervision.aop.ParamChecked; |
||||||
|
import io.swagger.v3.oas.annotations.media.Schema; |
||||||
|
import lombok.Getter; |
||||||
|
import lombok.Setter; |
||||||
|
|
||||||
|
@Schema(description = "查否请求") |
||||||
|
@Getter |
||||||
|
@Setter |
||||||
|
public class ModelCheckUntrueRequest implements ParamChecked { |
||||||
|
|
||||||
|
@Schema(description = "线索id") |
||||||
|
private String id; |
||||||
|
|
||||||
|
@Schema(description = "变更的状态") |
||||||
|
private String distributionState; |
||||||
|
|
||||||
|
@Override |
||||||
|
public void check() { |
||||||
|
if (distributionState == null) { |
||||||
|
throw new IllegalArgumentException("请检查要变更的状态"); |
||||||
|
} |
||||||
|
if (id == null) { |
||||||
|
throw new IllegalArgumentException("线索id为空"); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
Loading…
Reference in new issue