TestController.java
763 字节
package com.skua.modules.system.controller;
import com.skua.core.api.vo.Result;
import com.skua.modules.system.service.ITestService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
@Api(tags = "初始化用户")
@Slf4j
@RestController
@RequestMapping("/sys/init")
public class TestController {
@Resource
private ITestService testService;
@GetMapping("/user")
@ApiOperation(value = "初始化用户")
public Result<?> batchInitUser(){
Result<?> result = new Result<>();
boolean ok = testService.batchInitUser();
result.setSuccess(ok);
return result;
}
}