mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2026-03-10 00:13:40 +08:00
🎨 优化和规范化部分代码
This commit is contained in:
@@ -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;
|
||||
|
||||
/**
|
||||
* 将用户的卡券设置为失效状态.
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user