feat:订单app接口
This commit is contained in:
1 parent
dd3475ea5e
commit
b2f27cbd00
8 files changed
+175
-11
No files matched your search
+2
@@ -22,6 +22,7 @@ package com.bsd.pjcloud.admin.api.feign;
|
||||
import com.bsd.pjcloud.admin.api.entity.SysDept;
|
||||
import com.bsd.pjcloud.common.core.constant.ServiceNameConstants;
|
||||
import com.bsd.pjcloud.common.core.util.R;
|
||||
import com.bsd.pjcloud.common.feign.annotation.NoToken;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
@@ -61,6 +62,7 @@ public interface RemoteDeptService {
|
||||
* @param deptIds
|
||||
* @return
|
||||
*/
|
||||
@NoToken
|
||||
@GetMapping("/dept/getDeptListByDeptIds")
|
||||
R<Map<Long, SysDept>> getDeptByDeptIds(@RequestParam("deptIds") List<Long> deptIds);
|
||||
|
||||
|
||||
+3
-1
@@ -27,6 +27,7 @@ import com.bsd.pjcloud.common.excel.annotation.RequestExcel;
|
||||
import com.bsd.pjcloud.common.excel.annotation.ResponseExcel;
|
||||
import com.bsd.pjcloud.common.log.annotation.SysLog;
|
||||
import com.bsd.pjcloud.common.security.annotation.HasPermission;
|
||||
import com.bsd.pjcloud.common.security.annotation.Inner;
|
||||
import io.swagger.v3.oas.annotations.security.SecurityRequirement;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import jakarta.validation.Valid;
|
||||
@@ -186,12 +187,13 @@ public class SysDeptController {
|
||||
return R.ok(sysDeptService.getOrgTreeUser(username));
|
||||
}
|
||||
|
||||
|
||||
@Inner
|
||||
@GetMapping("/getDeptListByDeptIds")
|
||||
public R<Map<Long, SysDept>> getDeptListByDeptIds(@RequestParam("deptIds") List<Long> deptIds) {
|
||||
return R.ok(sysDeptService.getDeptListByDeptIds(deptIds));
|
||||
}
|
||||
|
||||
@Inner(value = false)
|
||||
@GetMapping("/getDeptListByDeptId")
|
||||
public R<SysDept> getDeptByDeptId(@RequestParam("deptId") Long deptId) {
|
||||
return R.ok(sysDeptService.getById(deptId));
|
||||
|
||||
Reference in new issue
Block a user