配置打包

master
邱飞云 4 years ago
parent 991f319a89
commit 17d1f2003d
  1. 38
      .gitignore
  2. 4
      dq-financial-hrms/src/main/java/com/daqing/financial/hrms/controller/DeptController.java

38
.gitignore vendored

@ -1,38 +0,0 @@
target/
logs/
.mvn/
mvnw
mvnw.cmd
!**/src/main/**
!**/src/test/**
src/main/resources/docs/
### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr
### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
build/
### VS Code ###
.vscode/
### Java template
*.class

@ -6,6 +6,8 @@ import com.daqing.framework.domain.hrms.DepartmentVO;
import com.daqing.framework.domain.hrms.DeptEntity;
import com.daqing.framework.domain.hrms.request.DeptAddRequest;
import com.daqing.framework.model.response.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@ -21,6 +23,7 @@ import java.util.List;
*/
@RestController
@RequestMapping("hrms/dept")
@Api(tags = {"测试swagger"})
public class DeptController implements DeptControllerApi {
@Autowired
@ -34,6 +37,7 @@ public class DeptController implements DeptControllerApi {
*/
@Override
@PostMapping("/save")
@ApiOperation(value = "111")
//@RequiresPermissions("hrms:dept:save")
public ResponseResult save(@RequestBody DeptAddRequest deptAddRequest) {
boolean result = deptService.saveDept(deptAddRequest);

Loading…
Cancel
Save