|
@@ -3,12 +3,14 @@ package com.zhongshu.card.server.core.controller.projectAbout;
|
|
|
import com.github.microservice.auth.security.annotations.ResourceAuth;
|
|
import com.github.microservice.auth.security.annotations.ResourceAuth;
|
|
|
import com.github.microservice.auth.security.type.AuthType;
|
|
import com.github.microservice.auth.security.type.AuthType;
|
|
|
import com.github.microservice.net.ResultContent;
|
|
import com.github.microservice.net.ResultContent;
|
|
|
|
|
+import com.zhongshu.card.client.model.base.ProjectOidParam;
|
|
|
import com.zhongshu.card.client.model.feign.ProjectWxPayParam;
|
|
import com.zhongshu.card.client.model.feign.ProjectWxPayParam;
|
|
|
import com.zhongshu.card.client.model.payment.paySetting.*;
|
|
import com.zhongshu.card.client.model.payment.paySetting.*;
|
|
|
import com.zhongshu.card.client.model.projectAbout.ProjectWeChatInfoModel;
|
|
import com.zhongshu.card.client.model.projectAbout.ProjectWeChatInfoModel;
|
|
|
import com.zhongshu.card.client.model.projectAbout.ProjectWeChatInfoParam;
|
|
import com.zhongshu.card.client.model.projectAbout.ProjectWeChatInfoParam;
|
|
|
import com.zhongshu.card.client.service.feign.ProjectPaySettingService;
|
|
import com.zhongshu.card.client.service.feign.ProjectPaySettingService;
|
|
|
import com.zhongshu.card.server.core.service.projectAbout.ProjectWeChatInfoService;
|
|
import com.zhongshu.card.server.core.service.projectAbout.ProjectWeChatInfoService;
|
|
|
|
|
+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.tags.Tag;
|
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -34,7 +36,7 @@ public class ProjectWeChatInfoController {
|
|
|
ProjectWeChatInfoService projectWeChatInfoService;
|
|
ProjectWeChatInfoService projectWeChatInfoService;
|
|
|
|
|
|
|
|
@ResourceAuth(value = "user", type = AuthType.User)
|
|
@ResourceAuth(value = "user", type = AuthType.User)
|
|
|
- @Operation(summary = "保存项目的小程序类型", description = "保存项目的小程序类型")
|
|
|
|
|
|
|
+ @Operation(summary = "保存项目的小程序配置", description = "保存项目的小程序配置")
|
|
|
@RequestMapping(value = "saveProjectWeChatInfo", method = {RequestMethod.POST})
|
|
@RequestMapping(value = "saveProjectWeChatInfo", method = {RequestMethod.POST})
|
|
|
public ResultContent saveProjectWeChatInfo(@RequestBody @Valid ProjectWeChatInfoParam param) {
|
|
public ResultContent saveProjectWeChatInfo(@RequestBody @Valid ProjectWeChatInfoParam param) {
|
|
|
return projectWeChatInfoService.saveProjectWeChatInfo(param);
|
|
return projectWeChatInfoService.saveProjectWeChatInfo(param);
|
|
@@ -43,13 +45,14 @@ public class ProjectWeChatInfoController {
|
|
|
@ResourceAuth(value = "user", type = AuthType.User)
|
|
@ResourceAuth(value = "user", type = AuthType.User)
|
|
|
@Operation(summary = "得到项目的小程序配置", description = "得到项目的小程序配置")
|
|
@Operation(summary = "得到项目的小程序配置", description = "得到项目的小程序配置")
|
|
|
@RequestMapping(value = "getProjectWeChatInfo", method = {RequestMethod.POST})
|
|
@RequestMapping(value = "getProjectWeChatInfo", method = {RequestMethod.POST})
|
|
|
- public ResultContent<ProjectWeChatInfoModel> getProjectWeChatInfo(@RequestBody ProjectPaySettingSearch param) {
|
|
|
|
|
|
|
+ public ResultContent<ProjectWeChatInfoModel> getProjectWeChatInfo(@RequestBody ProjectOidParam param) {
|
|
|
return projectWeChatInfoService.getProjectWeChatInfo(param.getProjectOid());
|
|
return projectWeChatInfoService.getProjectWeChatInfo(param.getProjectOid());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//------------------------------feign start -----------------------
|
|
//------------------------------feign start -----------------------
|
|
|
@Operation(hidden = true, summary = "根据小程序appId得到配置", description = "根据小程序appId得到配置")
|
|
@Operation(hidden = true, summary = "根据小程序appId得到配置", description = "根据小程序appId得到配置")
|
|
|
@RequestMapping(value = "manager/getProjectWeChatInfoByAppId", method = {RequestMethod.POST})
|
|
@RequestMapping(value = "manager/getProjectWeChatInfoByAppId", method = {RequestMethod.POST})
|
|
|
|
|
+ @Hidden
|
|
|
public ResultContent<ProjectWeChatInfoModel> getProjectWeChatInfoByAppId(
|
|
public ResultContent<ProjectWeChatInfoModel> getProjectWeChatInfoByAppId(
|
|
|
@RequestBody ProjectWxPayParam param) {
|
|
@RequestBody ProjectWxPayParam param) {
|
|
|
return projectWeChatInfoService.getProjectWeChatInfoByAppId(param.getAppId());
|
|
return projectWeChatInfoService.getProjectWeChatInfoByAppId(param.getAppId());
|