提交 4e324733 authored 作者: zjm's avatar zjm

合并分支 'bug' 到 'master'

Bug 查看合并请求 !81
package com.tykj.dev.union; //package com.tykj.dev.union;
//
/** ///**
* @author zjm // * @author zjm
* @version 1.0.0 // * @version 1.0.0
* @ClassName AreaController.java // * @ClassName AreaController.java
* @Description TODO // * @Description TODO
* @createTime 2020年09月04日 13:34:00 // * @createTime 2020年09月04日 13:34:00
*/ // */
//
import com.tykj.dev.config.swagger.AutoDocument; //import com.tykj.dev.config.swagger.AutoDocument;
import com.tykj.dev.device.user.subject.dao.AreaDao; //import com.tykj.dev.device.user.subject.dao.AreaDao;
import com.tykj.dev.device.user.subject.entity.Area; //import com.tykj.dev.device.user.subject.entity.Area;
import com.tykj.dev.device.user.subject.entity.SecurityUser; //import com.tykj.dev.device.user.subject.entity.SecurityUser;
import com.tykj.dev.device.user.subject.service.AreaService; //import com.tykj.dev.device.user.subject.service.AreaService;
import com.tykj.dev.misc.exception.ApiException; //import com.tykj.dev.misc.exception.ApiException;
import io.swagger.annotations.Api; //import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; //import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired; //import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; //import org.springframework.http.ResponseEntity;
import org.springframework.security.core.annotation.AuthenticationPrincipal; //import org.springframework.security.core.annotation.AuthenticationPrincipal;
import org.springframework.web.bind.annotation.*; //import org.springframework.web.bind.annotation.*;
import springfox.documentation.annotations.ApiIgnore; //import springfox.documentation.annotations.ApiIgnore;
//
import java.util.Optional; //import java.util.Optional;
//
/** ///**
* 区域视图层 // * 区域视图层
*/ // */
@RestController //@RestController
@RequestMapping("/run") //@RequestMapping("/run")
public class RunController { //public class RunController {
@Autowired // @Autowired
DataInit dataInit; // DataInit dataInit;
@GetMapping(value = "/init2") // @GetMapping(value = "/init2")
public ResponseEntity addPermissions(@ApiIgnore @AuthenticationPrincipal SecurityUser securityUser) { // public ResponseEntity addPermissions(@ApiIgnore @AuthenticationPrincipal SecurityUser securityUser) {
dataInit.init2(); // dataInit.init2();
return ResponseEntity.ok("ok"); // return ResponseEntity.ok("ok");
} // }
//
//
} //}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论