小麦君API:/api/req/taginfo/xiaomaijun
parent
0b01523d4e
commit
ebb179781f
@ -0,0 +1,20 @@
|
||||
package com.yuyou.openapi.openapi.dao;
|
||||
|
||||
import com.yuyou.openapi.openapi.model.dataobject.LieheMessageDO;
|
||||
import com.yuyou.openapi.openapi.model.dataobject.XiaomaMessageDO;
|
||||
import com.yuyou.openapi.openapi.model.dataobject.XmjMessageDO;
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.data.jpa.repository.Modifying;
|
||||
import org.springframework.data.jpa.repository.Query;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import javax.transaction.Transactional;
|
||||
import java.util.Date;
|
||||
|
||||
@Repository
|
||||
public interface XmjMessageRepository extends JpaRepository<XmjMessageDO, Long> {
|
||||
@Modifying
|
||||
@Transactional
|
||||
@Query("update XmjMessageDO t set t.sendStatus = ?1,t.pushTime=?2 where t.recId = ?3")
|
||||
Integer updateSendStatus(Integer sendStatus, Date time,Long recId);
|
||||
}
|
@ -0,0 +1,35 @@
|
||||
package com.yuyou.openapi.openapi.model.dto;
|
||||
|
||||
import lombok.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
public class XmjMessageDTO extends ABMessageDTO{
|
||||
|
||||
/**
|
||||
* 话单详细信息,有可能是为空的
|
||||
*/
|
||||
private List<ChatMsg> messages;
|
||||
|
||||
|
||||
/**
|
||||
* 这里对于详细的话单信息进行解析
|
||||
*/
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@Getter
|
||||
@Setter
|
||||
public static class ChatMsg {
|
||||
|
||||
private Long talkTime;
|
||||
|
||||
private Integer talkerType;
|
||||
|
||||
private String message;
|
||||
}
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
package com.yuyou.openapi.openapi.model.vo;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.yuyou.openapi.openapi.model.vo.data.DetailInfo;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 小麦君
|
||||
* @author zt 2021-3-4 15:34:45
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
public class ABClientXMJMessageVO extends ABClientBaseVO implements Serializable {
|
||||
|
||||
/**
|
||||
* 详细的数据实体
|
||||
*/
|
||||
@JsonProperty(value = "data")
|
||||
private List<DetailInfo> data;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,95 @@
|
||||
package com.yuyou.openapi.openapi.model.vo.data;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author zzt
|
||||
* @date 2021/3/4 15:39
|
||||
*/
|
||||
@Data
|
||||
public class DetailInfo {
|
||||
|
||||
|
||||
// "data": [
|
||||
// {
|
||||
// "start_time": 1607003187354,
|
||||
// "act_name": "5rWL6K+VNA==",
|
||||
// "mobile": "MTMzNDY2NDc1OTU=",
|
||||
// "messages": [
|
||||
// {
|
||||
// "talkTime": 1607003198000,
|
||||
// "talkerType": 1,
|
||||
// "message": ""
|
||||
// },
|
||||
// {
|
||||
// "talkTime": 1607003198000,
|
||||
// "talkerType": 2,
|
||||
// "message": "喂-你好"
|
||||
// },
|
||||
// {
|
||||
// "talkTime": 1607003201000,
|
||||
// "talkerType": 1,
|
||||
// "message": "您好。"
|
||||
// },
|
||||
// {
|
||||
// "talkTime": 1607003201000,
|
||||
// "talkerType": 2,
|
||||
// "message": "你好,我这边是老端说险,老端说险是专业解决健康保障问题平台,值此平台5周年活动,我们针对关注健康的客户,免费赠险价值470元双人体检套餐一份。您有兴趣了解一下吗"
|
||||
// },
|
||||
// {
|
||||
// "talkTime": 1607003220000,
|
||||
// "talkerType": 1,
|
||||
// "message": "没有。"
|
||||
// },
|
||||
// {
|
||||
// "talkTime": 1607003220000,
|
||||
// "talkerType": 2,
|
||||
// "message": "那不好意思,打扰您了,祝您生活愉快,再见。"
|
||||
// }
|
||||
// ],
|
||||
// "client_type": 1,
|
||||
// "rec_id": 8471351
|
||||
// }
|
||||
// ]
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@JsonProperty(value = "start_time")
|
||||
private Long startTime;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@JsonProperty(value = "act_name")
|
||||
private String actName;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@JsonProperty(value = "mobile")
|
||||
private String mobile;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@JsonProperty(value = "messages")
|
||||
private List<MessageInfo> messages;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@JsonProperty(value = "client_type")
|
||||
private Integer clientType;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@JsonProperty(value = "rec_id")
|
||||
private Long recId;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,46 @@
|
||||
package com.yuyou.openapi.openapi.model.vo.data;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author zzt
|
||||
* @date 2021/3/4 15:39
|
||||
*
|
||||
*/
|
||||
@Data
|
||||
public class MessageInfo {
|
||||
|
||||
|
||||
// "messages": [
|
||||
// {
|
||||
// "talkTime": 1607003198000,
|
||||
// "talkerType": 1,
|
||||
// "message": ""
|
||||
// },
|
||||
// {
|
||||
// "talkTime": 1607003198000,
|
||||
// "talkerType": 2,
|
||||
// "message": "喂-你好"
|
||||
// }
|
||||
// ]
|
||||
|
||||
/**
|
||||
* 谈话时间
|
||||
*/
|
||||
@JsonProperty(value = "talkTime")
|
||||
private Long talkTime;
|
||||
|
||||
/**
|
||||
* 谈话类型
|
||||
*/
|
||||
@JsonProperty(value = "talkerType")
|
||||
private Integer talkerType;
|
||||
|
||||
/**
|
||||
* 谈话内容
|
||||
*
|
||||
*/
|
||||
@JsonProperty(value = "message")
|
||||
private String message;
|
||||
}
|
Loading…
Reference in New Issue