-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from lianluoyi/dev
V1.36.1.2版本更新
- Loading branch information
Showing
31 changed files
with
344 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -145,6 +145,7 @@ ruoyi: | |
- /url | ||
- /wecom/transferData/** | ||
- /actuator/** | ||
- /open_api/** | ||
|
||
|
||
# 开发环境配置 | ||
|
15 changes: 15 additions & 0 deletions
15
easyink-common/src/main/java/com/easyink/common/exception/openapi/AppGenException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package com.easyink.common.exception.openapi; | ||
|
||
/** | ||
* 类名: App_id生成异常 | ||
* | ||
* @author : silver_chariot | ||
* @date : 2022/3/14 11:31 | ||
*/ | ||
public class AppGenException extends RuntimeException { | ||
private static final long serialVersionUID = 1L; | ||
|
||
public AppGenException(String message) { | ||
super(message); | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
easyink-common/src/main/java/com/easyink/common/exception/openapi/OpenApiException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package com.easyink.common.exception.openapi; | ||
|
||
/** | ||
* 类名: openApi异常 | ||
* | ||
* @author : silver_chariot | ||
* @date : 2022/3/15 10:54 | ||
*/ | ||
public class OpenApiException extends RuntimeException { | ||
|
||
private static final long serialVersionUID = 1L; | ||
|
||
public OpenApiException(String message) { | ||
super(message); | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
easyink-common/src/main/java/com/easyink/common/exception/openapi/SignValidateException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package com.easyink.common.exception.openapi; | ||
|
||
/** | ||
* 类名: 校验签名异常 | ||
* | ||
* @author : silver_chariot | ||
* @date : 2022/3/14 18:05 | ||
*/ | ||
public class SignValidateException extends OpenApiException { | ||
private static final long serialVersionUID = 1L; | ||
|
||
public SignValidateException(String message) { | ||
super(message); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
...ink-wecom/src/main/java/com/easyink/wecom/openapi/domain/vo/GetWeCustomerByUnionIdVO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package com.easyink.wecom.openapi.domain.vo; | ||
|
||
import com.easyink.wecom.domain.WeCustomer; | ||
import lombok.Data; | ||
|
||
/** | ||
* open_api根据unionId获取externalUserId的响应 | ||
* | ||
* @author : limeizi | ||
* @date : 2024/2/4 14:26 | ||
*/ | ||
@Data | ||
public class GetWeCustomerByUnionIdVO { | ||
|
||
/** | ||
* 外部联系人id | ||
*/ | ||
private String externalUserid; | ||
|
||
/** | ||
* 客户昵称 | ||
*/ | ||
private String name; | ||
|
||
/** | ||
* 客户头像 | ||
*/ | ||
private String avatar; | ||
|
||
/** | ||
* 客户性别 | ||
*/ | ||
private Integer gender; | ||
|
||
public void initByWeCustomer(WeCustomer weCustomer) { | ||
this.setExternalUserid(weCustomer.getExternalUserid()); | ||
this.setAvatar(weCustomer.getAvatar()); | ||
this.setName(weCustomer.getName()); | ||
this.setGender(Integer.valueOf(weCustomer.getGender())); | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
easyink-wecom/src/main/java/com/easyink/wecom/openapi/dto/GetWeCustomerByUnionIdDTO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.easyink.wecom.openapi.dto; | ||
|
||
import lombok.Data; | ||
import org.springframework.validation.annotation.Validated; | ||
|
||
import javax.validation.constraints.NotBlank; | ||
|
||
/** | ||
* open_api根据unionId获取externalUserId的请求参数 | ||
* | ||
* @author : limeizi | ||
* @date : 2024/2/4 17:36 | ||
*/ | ||
@Data | ||
@Validated | ||
public class GetWeCustomerByUnionIdDTO { | ||
|
||
/** | ||
* 外部联系人在微信开放平台的唯一身份标识,通过此字段企业可将外部联系人与公众号/小程序用户关联起来。 | ||
*/ | ||
@NotBlank(message = "unionId不能为空") | ||
private String unionId; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
easyink-wecom/src/main/java/com/easyink/wecom/openapi/util/AppGenUtil.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.