89 changed files with 1088 additions and 314 deletions
@ -0,0 +1,24 @@ |
|||
package com.epmet.constant; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @CreateTime 2020/7/30 10:05 |
|||
*/ |
|||
public interface AuthHttpUrlConstant { |
|||
|
|||
/** |
|||
* 注册url |
|||
*/ |
|||
String REGISTER_URL = "https://epmet-cloud.elinkservice.cn/api/third/pacustomer/register"; |
|||
|
|||
/** |
|||
* 获取客户信息url |
|||
*/ |
|||
String CUSTOMER_MSG_URL = "https://epmet-cloud.elinkservice.cn/api/third/customermp/getcustomermsg/"; |
|||
|
|||
/** |
|||
* 登录url |
|||
*/ |
|||
String RESI_AND_WORK_LOGIN_URL = "https://epmet-cloud.elinkservice.cn/api/third/customermp/resiandworklogin"; |
|||
|
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.epmet.constant; |
|||
|
|||
/** |
|||
* @author zhaoqifeng |
|||
* @dscription |
|||
* @date 2020/7/30 10:46 |
|||
*/ |
|||
public interface ThirdApiConstant { |
|||
/** |
|||
* 根据openId新增或更新用户信息 |
|||
*/ |
|||
String THIRD_PAUSER_SAVEUSER = "https://epmet-cloud.elinkservice.cn/api/third/pauser/saveuser"; |
|||
/** |
|||
* 根据手机号查询公众号用户基本信息,校验用户是否存在 |
|||
*/ |
|||
String THIRD_PAUSER_CHECKPAUSER = "https://epmet-cloud.elinkservice.cn/api/third/pauser/checkpauser"; |
|||
/** |
|||
* 用户登陆,新增访问记录数据 |
|||
*/ |
|||
String THIRD_PAUSERVISITED_SAVEUSERVISITED = "https://epmet-cloud.elinkservice.cn/api/third/pauservisited/saveuservisited"; |
|||
/** |
|||
* 根据客户Id查询各项注册信息 |
|||
*/ |
|||
String THIRD_PACUSTOMER_GETCUSTOMERAGENCYUSER = "https://epmet-cloud.elinkservice.cn/api/third/pacustomer/getcustomeragencyuser/"; |
|||
/** |
|||
* 修改客户数据状态为已完成初始化 |
|||
*/ |
|||
String THIRD_PACUSTOMER_UPDATECUSTOMER = "https://epmet-cloud.elinkservice.cn/api/third/pacustomer/updatecustomer/"; |
|||
|
|||
} |
@ -0,0 +1,22 @@ |
|||
CREATE TABLE `event` ( |
|||
`ID` varchar(64) NOT NULL COMMENT '主键', |
|||
`CLASS_ID` varchar(32) DEFAULT NULL COMMENT '消息网关事件类别ID 从消息网关获取事件类型Id', |
|||
`APP_ID` varchar(128) DEFAULT NULL COMMENT '消息网关APP_ID', |
|||
`APP_NAME` varchar(32) DEFAULT NULL COMMENT '消息网关APP_NAME', |
|||
`EVENT_CODE` varchar(32) DEFAULT NULL COMMENT '事件标识 与消息网关事件tag一致', |
|||
`EVENT_NAME` varchar(32) DEFAULT NULL COMMENT '事件名称', |
|||
`EVENT_DESC` varchar(64) DEFAULT NULL COMMENT '事件说明', |
|||
`FUNCTION_ID` varchar(64) DEFAULT NULL COMMENT '功能ID 来自oper_customize.customer_function表', |
|||
`IS_COMMON` varchar(1) DEFAULT NULL COMMENT '是否是通用事件 0-否,1-是;消息体内需要体现该字段,通用则说明由业务系统自己计算分值', |
|||
`DEL_FLAG` varchar(1) DEFAULT NULL COMMENT '删除标识 0-否,1-是', |
|||
`REVISION` int(11) DEFAULT NULL COMMENT '乐观锁 查询时添加版本号,新加的事件需要更新版本号', |
|||
`CREATED_BY` varchar(32) DEFAULT NULL COMMENT '创建人', |
|||
`CREATED_TIME` datetime DEFAULT NULL COMMENT '创建时间', |
|||
`UPDATED_BY` varchar(32) DEFAULT NULL COMMENT '更新人', |
|||
`UPDATED_TIME` datetime DEFAULT NULL COMMENT '更新时间', |
|||
PRIMARY KEY (`ID`), |
|||
UNIQUE KEY `unx_event_code` (`EVENT_CODE`) |
|||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='事件表'; |
|||
INSERT INTO `epmet_common_service`.`event`(`ID`, `CLASS_ID`, `APP_ID`, `APP_NAME`, `EVENT_CODE`, `EVENT_NAME`, `EVENT_DESC`, `FUNCTION_ID`, `IS_COMMON`, `DEL_FLAG`, `REVISION`, `CREATED_BY`, `CREATED_TIME`, `UPDATED_BY`, `UPDATED_TIME`) VALUES ('1', 'epmet_heart', '202007161443499985fa2d397436d10356542134c8f008c48', '党群e事通开发测试', 'register_volunteer', '注册志愿者', '给注册志愿者的人发放积分', '43addd0735230c01eedbb38d721076b0', '0', '0', 0, 'APP_USER', '2020-07-23 14:19:17', 'APP_USER', '2020-07-23 14:19:17'); |
|||
INSERT INTO `epmet_common_service`.`event`(`ID`, `CLASS_ID`, `APP_ID`, `APP_NAME`, `EVENT_CODE`, `EVENT_NAME`, `EVENT_DESC`, `FUNCTION_ID`, `IS_COMMON`, `DEL_FLAG`, `REVISION`, `CREATED_BY`, `CREATED_TIME`, `UPDATED_BY`, `UPDATED_TIME`) VALUES ('2', 'epmet_heart', '202007161443499985fa2d397436d10356542134c8f008c48', '党群e事通开发测试', 'active_send_point', '活动发放积分', '给参加活动的人发放积分', '43addd0735230c01eedbb38d721076b0', '0', '0', 0, 'APP_USER', '2020-07-23 14:16:49', 'APP_USER', '2020-07-23 14:16:49'); |
|||
INSERT INTO `epmet_common_service`.`event`(`ID`, `CLASS_ID`, `APP_ID`, `APP_NAME`, `EVENT_CODE`, `EVENT_NAME`, `EVENT_DESC`, `FUNCTION_ID`, `IS_COMMON`, `DEL_FLAG`, `REVISION`, `CREATED_BY`, `CREATED_TIME`, `UPDATED_BY`, `UPDATED_TIME`) VALUES ('3', 'epmet_heart', '202007161443499985fa2d397436d10356542134c8f008c48', '党群e事通开发测试', 'publist_active_live', '发布实况', '给发布实况的人发放积分', '43addd0735230c01eedbb38d721076b0', '0', '0', 0, 'APP_USER', '2020-07-23 14:16:49', 'APP_USER', '2020-07-23 14:16:49'); |
@ -1,27 +0,0 @@ |
|||
package com.epmet.dto.result.resi; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* 活动报名 - 返回值 |
|||
* |
|||
* @Auther: zhangyong |
|||
* @Date: 2020-07-28 16:22 |
|||
*/ |
|||
@Data |
|||
public class ResiActRegistrationResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 异常编码 |
|||
*/ |
|||
private Integer flag; |
|||
|
|||
/** |
|||
* 提示信息 |
|||
*/ |
|||
private String tip; |
|||
} |
@ -0,0 +1,86 @@ |
|||
package com.epmet.dto.result.resi; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* 志愿者信息+用户基础信息 返回值 |
|||
* @Auther: zhangyong |
|||
* @Date: 2020-07-28 14:40 |
|||
*/ |
|||
|
|||
@Data |
|||
public class ResiVolunteerInfoResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 用户id |
|||
*/ |
|||
private String userId; |
|||
|
|||
/** |
|||
* 手机号(注册手机号) |
|||
*/ |
|||
private String mobile; |
|||
|
|||
/** |
|||
* 姓氏 |
|||
*/ |
|||
private String surname; |
|||
|
|||
/** |
|||
* 名 |
|||
*/ |
|||
private String name; |
|||
|
|||
/** |
|||
* 姓名 |
|||
*/ |
|||
private String realName; |
|||
|
|||
/** |
|||
* 身份证号 |
|||
*/ |
|||
private String idNum; |
|||
|
|||
/** |
|||
* 性别(1男2女0未知) |
|||
*/ |
|||
private String gender; |
|||
|
|||
/** |
|||
* 街道 |
|||
*/ |
|||
private String street; |
|||
|
|||
/** |
|||
* 小区名称 |
|||
*/ |
|||
private String district; |
|||
|
|||
/** |
|||
* 楼栋单元 |
|||
*/ |
|||
private String buildingAddress; |
|||
|
|||
/** |
|||
* 昵称(目前来源于微信昵称,后续系统可支持用户有昵称) |
|||
*/ |
|||
private String nickname; |
|||
|
|||
/** |
|||
* 头像(目前来源于微信,后续系统顾客支持上传头像) |
|||
*/ |
|||
private String headImgUrl; |
|||
|
|||
/** |
|||
* 志愿者签名 |
|||
*/ |
|||
private String volunteerSignature; |
|||
|
|||
/** |
|||
* 志愿者自我介绍 |
|||
*/ |
|||
private String volunteerIntroduce; |
|||
} |
@ -0,0 +1,33 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.epmet.dao; |
|||
|
|||
import com.epmet.commons.mybatis.dao.BaseDao; |
|||
import com.epmet.entity.ActGrantPointLogEntity; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
|
|||
/** |
|||
* 活动发放积分日志表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2020-07-30 |
|||
*/ |
|||
@Mapper |
|||
public interface ActGrantPointLogDao extends BaseDao<ActGrantPointLogEntity> { |
|||
|
|||
} |
@ -0,0 +1,73 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.epmet.entity; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
import com.epmet.commons.mybatis.entity.BaseEpmetEntity; |
|||
import lombok.Data; |
|||
import lombok.EqualsAndHashCode; |
|||
|
|||
/** |
|||
* 活动发放积分日志表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2020-07-30 |
|||
*/ |
|||
@Data |
|||
@EqualsAndHashCode(callSuper=false) |
|||
@TableName("act_grant_point_log") |
|||
public class ActGrantPointLogEntity extends BaseEpmetEntity { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* |
|||
*/ |
|||
private String actId; |
|||
|
|||
/** |
|||
* |
|||
*/ |
|||
private Integer reward; |
|||
|
|||
/** |
|||
* |
|||
*/ |
|||
private String remark; |
|||
|
|||
/** |
|||
* |
|||
*/ |
|||
private String operatorId; |
|||
|
|||
/** |
|||
* |
|||
*/ |
|||
private String sendMsg; |
|||
|
|||
/** |
|||
* |
|||
*/ |
|||
private String responseMsg; |
|||
|
|||
} |
@ -0,0 +1,24 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
|
|||
<mapper namespace="com.epmet.dao.ActGrantPointLogDao"> |
|||
|
|||
<resultMap type="com.epmet.entity.ActGrantPointLogEntity" id="actGrantPointLogMap"> |
|||
<result property="id" column="ID"/> |
|||
<result property="customerId" column="CUSTOMER_ID"/> |
|||
<result property="actId" column="ACT_ID"/> |
|||
<result property="reward" column="REWARD"/> |
|||
<result property="remark" column="REMARK"/> |
|||
<result property="operatorId" column="OPERATOR_ID"/> |
|||
<result property="sendMsg" column="SEND_MSG"/> |
|||
<result property="responseMsg" column="RESPONSE_MSG"/> |
|||
<result property="revision" column="REVISION"/> |
|||
<result property="delFlag" column="DEL_FLAG"/> |
|||
<result property="createdBy" column="CREATED_BY"/> |
|||
<result property="createdTime" column="CREATED_TIME"/> |
|||
<result property="updatedBy" column="UPDATED_BY"/> |
|||
<result property="updatedTime" column="UPDATED_TIME"/> |
|||
</resultMap> |
|||
|
|||
|
|||
</mapper> |
@ -0,0 +1,19 @@ |
|||
package com.epmet.constant; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @CreateTime 2020/7/30 9:47 |
|||
*/ |
|||
public interface HttpUrlConstant { |
|||
|
|||
/** |
|||
* 定时任务 刷新【authorizer_access_token】url |
|||
*/ |
|||
String AUTH_ACCESS_TOKEN_URL = "https://epmet-cloud.elinkservice.cn/api/third/wechatthird/refreshtoken"; |
|||
|
|||
/** |
|||
* 定时任务 刷新【component_access_token】url |
|||
*/ |
|||
String COMPONENT_ACCESS_TOKEN_URL = "https://epmet-cloud.elinkservice.cn/api/third/wechatthird/componentaccesstoken"; |
|||
|
|||
} |
@ -0,0 +1,27 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* 公众号-发送短信验证码-接口入参 |
|||
* @Author sun |
|||
*/ |
|||
@Data |
|||
public class CheckPaUserFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -6163303184086480522L; |
|||
|
|||
/** |
|||
* s手机号 |
|||
*/ |
|||
private String phone; |
|||
|
|||
/** |
|||
* 数据来源(dev:开发 test:体验 prod:生产) |
|||
*/ |
|||
private String source; |
|||
|
|||
} |
@ -0,0 +1,28 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import lombok.Data; |
|||
import me.chanjar.weixin.mp.bean.result.WxMpUser; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* 公众号-wxcode换取token保存微信用户信息-接口入参 |
|||
* @Author sun |
|||
*/ |
|||
@Data |
|||
public class WxCodeToTokenFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -6163303184086480522L; |
|||
|
|||
/** |
|||
* 微信用户信息 |
|||
*/ |
|||
private WxMpUser wxMpUser; |
|||
|
|||
/** |
|||
* 数据来源(dev:开发 test:体验 prod:生产) |
|||
*/ |
|||
private String source; |
|||
|
|||
} |
@ -0,0 +1,11 @@ |
|||
package com.epmet.constant; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @CreateTime 2020/7/30 13:56 |
|||
*/ |
|||
public interface GuideHttpUrlConstant { |
|||
|
|||
String CUSTOMER_MSG_URL = "https://epmet-cloud.elinkservice.cn/api/third/customermp/getcustomermsg/"; |
|||
|
|||
} |
Loading…
Reference in new issue