forked from luyan/epmet-cloud-lingshan
8 changed files with 250 additions and 32 deletions
@ -0,0 +1,79 @@ |
|||||
|
package com.epmet.commons.tools.enums; |
||||
|
|
||||
|
/** |
||||
|
* @Description |
||||
|
* @Author yzm |
||||
|
* @Date 2022/9/14 19:11 |
||||
|
*/ |
||||
|
public enum DingMiniAppEnum { |
||||
|
// 亿联云盘CorpId:dingd1e19e397c754c7735c2f4657eb6378f
|
||||
|
//
|
||||
|
// //各应用秘钥
|
||||
|
// 随手拍
|
||||
|
// SuiteId:27501006
|
||||
|
// AppId:119450
|
||||
|
// MiniAppId:5000000002934668
|
||||
|
// SuiteKey:suitew6ccvkquinmrghqy
|
||||
|
// SuiteSecret:TooAxiegdsE5BPP6xo1AxK1LdmaUoMpPMyomOcGcBSXtnsxRc8dEfyOlG56oSmEB
|
||||
|
//
|
||||
|
// 随时讲
|
||||
|
// SuiteId:27564007
|
||||
|
// AppId:119451
|
||||
|
// MiniAppId:5000000002934374
|
||||
|
// SuiteKey:suitezhyj12glsrp8em0f
|
||||
|
// SuiteSecret:-z5Q_lvMP6l7fTzlArEzUT8D_-5pvqBQaJMuTGHoXnz0nuiqGQMZ8aeya_cxTsN-
|
||||
|
//
|
||||
|
// 我的报事
|
||||
|
// SuiteId:27569006
|
||||
|
// AppId:119452
|
||||
|
// MiniAppId:5000000002934456
|
||||
|
// SuiteKey:suite5yxliro6wawv514w
|
||||
|
// SuiteSecret:aQxiPi7DwJSUa9HlbUU_L7Q4wGCLEDmgf__Ffx75cTn3jZwuHy9vdl-9Iv5FeyJU
|
||||
|
//
|
||||
|
// 实时动态
|
||||
|
// SuiteId:27458011
|
||||
|
// AppId:119453
|
||||
|
// MiniAppId:5000000002934488
|
||||
|
// SuiteKey:suitemcestnonr6y0xigc
|
||||
|
// SuiteSecret:kKCNCkfDhmLoVnl_wuAiScyDG4776mkTevuSBuiYhHg-Bvz1-vhb_4IA-Km7nK2I
|
||||
|
SSP("suitew6ccvkquinmrghqy", "随手拍", "TooAxiegdsE5BPP6xo1AxK1LdmaUoMpPMyomOcGcBSXtnsxRc8dEfyOlG56oSmEB"), |
||||
|
SSJ("suitezhyj12glsrp8em0f", "随时讲", "-z5Q_lvMP6l7fTzlArEzUT8D_-5pvqBQaJMuTGHoXnz0nuiqGQMZ8aeya_cxTsN-"), |
||||
|
MY_REPORT_EVENT("suite5yxliro6wawv514w", "我的报事", "aQxiPi7DwJSUa9HlbUU_L7Q4wGCLEDmgf__Ffx75cTn3jZwuHy9vdl-9Iv5FeyJU"), |
||||
|
SSDT("suitemcestnonr6y0xigc", "实时动态", "kKCNCkfDhmLoVnl_wuAiScyDG4776mkTevuSBuiYhHg-Bvz1-vhb_4IA-Km7nK2I"); |
||||
|
|
||||
|
private String suiteKey; |
||||
|
private String name; |
||||
|
private String suiteSecret; |
||||
|
|
||||
|
|
||||
|
DingMiniAppEnum(String suiteKey, String name, String suiteSecret) { |
||||
|
this.suiteKey = suiteKey; |
||||
|
this.name = name; |
||||
|
this.suiteSecret = suiteSecret; |
||||
|
} |
||||
|
|
||||
|
public static DingMiniAppEnum getEnum(String suiteKey) { |
||||
|
DingMiniAppEnum[] values = DingMiniAppEnum.values(); |
||||
|
for (DingMiniAppEnum value : values) { |
||||
|
if (value.getSuiteKey().equals(suiteKey)) { |
||||
|
return value; |
||||
|
} |
||||
|
} |
||||
|
return null; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
public String getSuiteKey() { |
||||
|
return suiteKey; |
||||
|
} |
||||
|
|
||||
|
public String getName() { |
||||
|
return name; |
||||
|
} |
||||
|
|
||||
|
public String getSuiteSecret() { |
||||
|
return suiteSecret; |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
|
@ -0,0 +1,60 @@ |
|||||
|
package com.epmet.dto.form; |
||||
|
|
||||
|
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
|
||||
|
/** |
||||
|
* @Description 钉钉居民端应用注册 // 接口逻辑:
|
||||
|
* // (1)根据clientId去XXX表找到customerId
|
||||
|
* // (2)通过1、2拿到手机号之后,根据mobile+customerId去user_base_info表找userId,
|
||||
|
* // 是否注册居民:register_relation
|
||||
|
* // (3)没有则生成user、user_Base_info表记录
|
||||
|
* @Author yzm |
||||
|
* @Date 2022/9/15 9:28 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class DingLoginResiFormDTO { |
||||
|
public interface AddUserInternalGroup { |
||||
|
} |
||||
|
|
||||
|
public interface AddUserShowGroup extends CustomerClientShowGroup { |
||||
|
} |
||||
|
|
||||
|
@NotBlank(message = "customerId不能为空", groups = AddUserShowGroup.class) |
||||
|
private String customerId; |
||||
|
|
||||
|
// 以下参数是微信返回的
|
||||
|
/** |
||||
|
* 头像URL。 |
||||
|
*/ |
||||
|
public String avatarUrl; |
||||
|
/** |
||||
|
* 用户的个人邮箱。 |
||||
|
*/ |
||||
|
public String email; |
||||
|
/** |
||||
|
* 用户的手机号。 |
||||
|
* 说明 如果要获取用户手机号,需要在开发者后台申请个人手机号信息权限,如下图。 |
||||
|
*/ |
||||
|
@NotBlank(message = "手机号不能为空", groups = AddUserShowGroup.class) |
||||
|
public String mobile; |
||||
|
/** |
||||
|
* 用户的钉钉昵称。 |
||||
|
*/ |
||||
|
public String nick; |
||||
|
/** |
||||
|
* |
||||
|
*/ |
||||
|
public String openId; |
||||
|
/** |
||||
|
* 手机号对应的国家号。 |
||||
|
*/ |
||||
|
public String stateCode; |
||||
|
/** |
||||
|
* |
||||
|
*/ |
||||
|
public String unionId; |
||||
|
} |
||||
|
|
@ -0,0 +1,34 @@ |
|||||
|
package com.epmet.dto.result; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @Description |
||||
|
* @Author yzm |
||||
|
* @Date 2022/9/15 9:33 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class DingLoginResiResDTO { |
||||
|
private String customerId; |
||||
|
private String gridId; |
||||
|
/** |
||||
|
* XXX社区-网格名 |
||||
|
*/ |
||||
|
private String gridName; |
||||
|
/** |
||||
|
* 网格所属的组织id |
||||
|
*/ |
||||
|
private String agencyId; |
||||
|
/** |
||||
|
* 居民端用户id |
||||
|
*/ |
||||
|
private String epmetUserId; |
||||
|
|
||||
|
/** |
||||
|
* 是否注册居民 |
||||
|
* true:已注册 |
||||
|
* false:未注册 |
||||
|
*/ |
||||
|
private Boolean regFlag; |
||||
|
} |
||||
|
|
Loading…
Reference in new issue