package com.lf.server.controller.all;
|
|
import com.lf.server.annotation.SysLog;
|
import com.lf.server.entity.all.ResponseMsg;
|
import com.lf.server.entity.data.DirEntity;
|
import com.lf.server.service.data.DirService;
|
import com.lf.server.service.sys.RoleService;
|
import com.lf.server.service.sys.TokenService;
|
import com.lf.server.service.sys.UserService;
|
import io.swagger.annotations.Api;
|
import io.swagger.annotations.ApiOperation;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RestController;
|
|
import java.util.List;
|
|
/**
|
* CRDS系统接口
|
* @author WWW
|
*/
|
@Api(tags = "系统对接\\CRDS")
|
@RestController
|
@RequestMapping("/crds")
|
public class CrdsController extends BaseController {
|
@Autowired
|
UserService userService;
|
|
@Autowired
|
RoleService roleService;
|
|
@Autowired
|
TokenService tokenService;
|
|
@Autowired
|
DirService dirService;
|
|
@SysLog()
|
@ApiOperation(value = "查询项目")
|
@GetMapping(value = "/selectProject")
|
public ResponseMsg<List<DirEntity>> selectProject() {
|
try {
|
List<DirEntity> list = dirService.selectProject();
|
|
return success(list);
|
} catch (Exception ex) {
|
return fail(ex.getMessage(), null);
|
}
|
}
|
|
@SysLog()
|
@ApiOperation(value = "查询项目目录树")
|
@GetMapping(value = "/selectDirsForPrj")
|
public ResponseMsg<List<DirEntity>> selectDirsForPrj() {
|
try {
|
List<DirEntity> list = dirService.selectDirsForPrj();
|
|
return success(list);
|
} catch (Exception ex) {
|
return fail(ex.getMessage(), null);
|
}
|
}
|
}
|