Commit ec95e33c authored by shiyu's avatar shiyu

创建签到任务

parent 1a58859e
......@@ -32,7 +32,7 @@ public class QdSignInTaskController {
public Result add(@RequestBody SignInTaskRequestDto dto) {
logger.info("【请求开始】创建签到任务,请求参数:{}", JSON.toJSONString(dto));
Validator validator = new Validator(FormHandler.ofEntity(dto));
validator.set("userId", "用户id").must().number()
validator.set("creatorId", "用户id").must().number()
.set("name", "名称").must().string()
.end();
if (!validator.isValid()) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment