🎨 优化和规范化部分代码

This commit is contained in:
Binary Wang
2019-08-22 16:44:17 +08:00
parent 0754c7a01c
commit 0eed5e6b59
12 changed files with 48 additions and 32 deletions

View File

@@ -138,7 +138,7 @@ public interface WxMpCardService {
* @return result
* @throws WxErrorException 异常
*/
WxMpCardCreateResult createCard(WxMpCardCreateMessage cardCreateMessage) throws WxErrorException;
WxMpCardCreateResult createCard(WxMpCardCreateRequest cardCreateMessage) throws WxErrorException;
/**
* 创建卡券二维码.
@@ -183,7 +183,8 @@ public interface WxMpCardService {
* @return WxMpCardLandingPageCreateResult
* @throws WxErrorException 异常
*/
WxMpCardLandingPageCreateResult createLandingPage(WxMpCardLandingPageCreateRequest createRequest) throws WxErrorException;
WxMpCardLandingPageCreateResult createLandingPage(WxMpCardLandingPageCreateRequest createRequest)
throws WxErrorException;
/**
* 将用户的卡券设置为失效状态.

View File

@@ -178,7 +178,7 @@ public class WxMpCardServiceImpl implements WxMpCardService {
}
@Override
public WxMpCardCreateResult createCard(WxMpCardCreateMessage cardCreateMessage) throws WxErrorException {
public WxMpCardCreateResult createCard(WxMpCardCreateRequest cardCreateMessage) throws WxErrorException {
String response = this.wxMpService.post(WxMpApiUrl.Card.CARD_CREATE, GSON.toJson(cardCreateMessage));
return WxMpCardCreateResult.fromJson(response);
}