Class WechatAppController
java.lang.Object
com.sankcrm.erp.auth.interfaces.thirdauth.wechat.WechatAppController
微信应用管理
- Since:
- 2.1.2
- Author:
- LBW
- create time:
- 2023/11/20 21:27
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.sankcrm.erp.mvc.application.readmodel.Response<WechatApiSecretDto> certUpload(WechatCertUploadCommand command, org.springframework.web.multipart.MultipartFile file) 密钥上传com.sankcrm.erp.mvc.application.readmodel.Response<Void> certUpload(WechatVerifyUploadCommand command, org.springframework.web.multipart.MultipartFile file) 验证文件上传上传com.sankcrm.erp.mvc.application.readmodel.Response<ThirdAppInfoDto> create(ThirdAppInfoCreateCommand command) 创建应用com.sankcrm.erp.mvc.application.readmodel.Response<List<ThirdAppInfoDto>> list(ThirdAppInfoListQuery query) 应用列表com.sankcrm.erp.mvc.application.readmodel.Response<com.sankcrm.erp.bus.Pagination<ThirdAppInfoDto>> page(ThirdAppInfoPageQuery query) 应用分页com.sankcrm.erp.mvc.application.readmodel.Response<WechatApiSecretDto> secret(ThirdAppInfoByIdQuery query) 查询API配置com.sankcrm.erp.mvc.application.readmodel.Response<ThirdAppInfoDto> tokenRefresh(WechatTokenRefreshCommand command) 刷新令牌com.sankcrm.erp.mvc.application.readmodel.Response<ThirdAppInfoDto> update(ThirdAppInfoUpdateCommand command) 修改应用com.sankcrm.erp.mvc.application.readmodel.Response<WechatApiSecretDto> update(WechatUpdateSecretCommand command) 修改API配置com.sankcrm.erp.mvc.application.readmodel.Response<Void> update(SetWxPayAmountNotifyUrlCommand command) 提交微信立减金回调
-
Constructor Details
-
WechatAppController
public WechatAppController()
-
-
Method Details
-
create
@PostMapping("/v1/app/auth/wechat/config/create") public com.sankcrm.erp.mvc.application.readmodel.Response<ThirdAppInfoDto> create(@RequestBody ThirdAppInfoCreateCommand command) throws com.sankcrm.erp.common.exception.CoreException 创建应用- Parameters:
command- 创建参数- Returns:
- 微信应用配置
- Throws:
com.sankcrm.erp.common.exception.CoreException- 创建失败
-
update
@PostMapping("/v1/app/auth/wechat/config/update") public com.sankcrm.erp.mvc.application.readmodel.Response<ThirdAppInfoDto> update(@RequestBody ThirdAppInfoUpdateCommand command) throws com.sankcrm.erp.common.exception.CoreException 修改应用- Parameters:
command- 修改参数- Returns:
- 微信应用配置
- Throws:
com.sankcrm.erp.common.exception.CoreException- 修改失败
-
update
@PostMapping("/v1/app/auth/wechat/config/secret/update") public com.sankcrm.erp.mvc.application.readmodel.Response<WechatApiSecretDto> update(@RequestBody WechatUpdateSecretCommand command) throws com.sankcrm.erp.common.exception.CoreException 修改API配置- Parameters:
command- 修改参数- Returns:
- 微信应用配置
- Throws:
com.sankcrm.erp.common.exception.CoreException- 修改失败- Since:
- 2.1.4
-
secret
@GetMapping("/v1/app/auth/wechat/config/secret") public com.sankcrm.erp.mvc.application.readmodel.Response<WechatApiSecretDto> secret(ThirdAppInfoByIdQuery query) throws com.sankcrm.erp.common.exception.CoreException 查询API配置- Parameters:
query- id- Returns:
- 微信配置信息
- Throws:
com.sankcrm.erp.common.exception.CoreException- 查询失败- Since:
- 2.1.4
-
list
@GetMapping("/v1/app/auth/wechat/config/list") public com.sankcrm.erp.mvc.application.readmodel.Response<List<ThirdAppInfoDto>> list(ThirdAppInfoListQuery query) throws com.sankcrm.erp.common.exception.CoreException 应用列表- Parameters:
query- 查询条件- Returns:
- 微信配置信息
- Throws:
com.sankcrm.erp.common.exception.CoreException- 查询失败
-
page
@GetMapping("/v1/app/auth/wechat/config/page") public com.sankcrm.erp.mvc.application.readmodel.Response<com.sankcrm.erp.bus.Pagination<ThirdAppInfoDto>> page(ThirdAppInfoPageQuery query) throws com.sankcrm.erp.common.exception.CoreException 应用分页- Parameters:
query- 查询条件- Returns:
- 微信配置信息
- Throws:
com.sankcrm.erp.common.exception.CoreException- 查询失败
-
tokenRefresh
@PostMapping("/v1/app/auth/wechat/token/refresh") public com.sankcrm.erp.mvc.application.readmodel.Response<ThirdAppInfoDto> tokenRefresh(@RequestBody WechatTokenRefreshCommand command) throws com.sankcrm.erp.common.exception.CoreException 刷新令牌- Parameters:
command- 令牌参数- Returns:
- 微信配置信息
- Throws:
com.sankcrm.erp.common.exception.CoreException- 刷新异常- Since:
- 2.1.5
-
certUpload
@PostMapping("/v1/app/auth/wechat/cert/upload") public com.sankcrm.erp.mvc.application.readmodel.Response<WechatApiSecretDto> certUpload(WechatCertUploadCommand command, @RequestParam org.springframework.web.multipart.MultipartFile file) throws com.sankcrm.erp.common.exception.CoreException 密钥上传- Parameters:
command- 修改参数file- 文件- Returns:
- 微信应用配置
- Throws:
com.sankcrm.erp.common.exception.CoreException- 上传失败- Since:
- 2.1.7
-
certUpload
@PostMapping("/v1/app/auth/wechat/verify_txt/upload") public com.sankcrm.erp.mvc.application.readmodel.Response<Void> certUpload(WechatVerifyUploadCommand command, @RequestParam org.springframework.web.multipart.MultipartFile file) throws com.sankcrm.erp.common.exception.CoreException 验证文件上传上传- Parameters:
command- 修改参数file- 文件- Returns:
- 微信应用配置
- Throws:
com.sankcrm.erp.common.exception.CoreException- 上传失败- Since:
- 2.1.7
-
update
@PostMapping("/v1/app/auth/wechat/app/set/wx_pay_amount_notify_url") public com.sankcrm.erp.mvc.application.readmodel.Response<Void> update(@RequestBody SetWxPayAmountNotifyUrlCommand command) throws com.sankcrm.erp.common.exception.CoreException 提交微信立减金回调- Parameters:
command- 修改参数- Returns:
- 微信应用配置
- Throws:
com.sankcrm.erp.common.exception.CoreException- 修改失败- Since:
- 2.1.4
-