|
@@ -3,18 +3,18 @@ package com.zhongshu.card.server.core.controller.feign;
|
|
|
import com.zhongshu.card.client.model.base.IDParam;
|
|
import com.zhongshu.card.client.model.base.IDParam;
|
|
|
import com.zhongshu.card.client.model.feign.ProjectWxPayModel;
|
|
import com.zhongshu.card.client.model.feign.ProjectWxPayModel;
|
|
|
import com.zhongshu.card.client.model.feign.ProjectWxPayParam;
|
|
import com.zhongshu.card.client.model.feign.ProjectWxPayParam;
|
|
|
|
|
+import com.zhongshu.card.client.model.org.OrganizationModel;
|
|
|
|
|
+import com.zhongshu.card.client.model.org.ProjectOrgModel;
|
|
|
import com.zhongshu.card.client.model.payment.ExpenseFlowModel;
|
|
import com.zhongshu.card.client.model.payment.ExpenseFlowModel;
|
|
|
import com.zhongshu.card.client.ret.ResultContent;
|
|
import com.zhongshu.card.client.ret.ResultContent;
|
|
|
import com.zhongshu.card.client.service.org.OrganizationService;
|
|
import com.zhongshu.card.client.service.org.OrganizationService;
|
|
|
import com.zhongshu.card.server.core.domain.org.Organization;
|
|
import com.zhongshu.card.server.core.domain.org.Organization;
|
|
|
import io.swagger.v3.oas.annotations.Hidden;
|
|
import io.swagger.v3.oas.annotations.Hidden;
|
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
|
|
|
+import io.swagger.v3.oas.annotations.Parameter;
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
-import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @author TRX
|
|
* @author TRX
|
|
@@ -29,11 +29,32 @@ public class OrganizationFeignController {
|
|
|
@Autowired
|
|
@Autowired
|
|
|
OrganizationService organizationService;
|
|
OrganizationService organizationService;
|
|
|
|
|
|
|
|
- @Operation(summary = "项目关联的微信支付配置", description = "项目关联的微信支付配置")
|
|
|
|
|
- @RequestMapping(value = "manager/getProjectWxPayConfig", method = {RequestMethod.POST})
|
|
|
|
|
- public ResultContent<ProjectWxPayModel> getProjectWxPayConfig(@RequestBody ProjectWxPayParam param) {
|
|
|
|
|
- ProjectWxPayModel model = new ProjectWxPayModel();
|
|
|
|
|
- model.setAppId(param.getAppId());
|
|
|
|
|
- return ResultContent.buildSuccess(model);
|
|
|
|
|
|
|
+ @Operation(summary = "得到项目信息", description = "得到项目信息")
|
|
|
|
|
+ @RequestMapping(value = "manager/getProjectInfo", method = {RequestMethod.GET})
|
|
|
|
|
+ public ResultContent<ProjectOrgModel> getProjectInfo(
|
|
|
|
|
+ @Parameter(name = "projectOid", description = "oid", required = false)
|
|
|
|
|
+ @RequestParam(name = "projectOid")
|
|
|
|
|
+ String projectOid) {
|
|
|
|
|
+ return organizationService.getProjectDetail(projectOid);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ @Operation(summary = "得到学校详情", description = "得到学校详情")
|
|
|
|
|
+ @RequestMapping(value = "manager/getSchoolDetail", method = {RequestMethod.GET})
|
|
|
|
|
+ public ResultContent<OrganizationModel> getSchoolDetail(
|
|
|
|
|
+ @Parameter(name = "schoolOid", description = "oid", required = false)
|
|
|
|
|
+ @RequestParam(name = "schoolOid")
|
|
|
|
|
+ String schoolOid) {
|
|
|
|
|
+ return organizationService.getSchoolDetail(schoolOid);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @Operation(summary = "得到商户详情", description = "得到商户详情")
|
|
|
|
|
+ @RequestMapping(value = "manager/getBusinessMainDetail", method = {RequestMethod.GET})
|
|
|
|
|
+ public ResultContent<OrganizationModel> getBusinessMainDetail(
|
|
|
|
|
+ @Parameter(name = "businessMainOid", description = "oid", required = false)
|
|
|
|
|
+ @RequestParam(name = "businessMainOid")
|
|
|
|
|
+ String businessMainOid) {
|
|
|
|
|
+ return organizationService.getBusinessMainDetail(businessMainOid);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
}
|
|
}
|