Commit f73815e8 by 潘诗林

feat:预学习套餐新增接口

1 parent a361d64b
...@@ -54,5 +54,10 @@ ...@@ -54,5 +54,10 @@
<version>5.5.3-SNAPSHOT</version> <version>5.5.3-SNAPSHOT</version>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
<dependency>
<groupId>cn.com.glsx.dj</groupId>
<artifactId>rpc-dj-staff-api</artifactId>
<version>5.8.2-SNAPSHOT</version>
</dependency>
</dependencies> </dependencies>
</project> </project>
\ No newline at end of file \ No newline at end of file
...@@ -7,6 +7,7 @@ import cn.com.glsx.dj.riskmanage.remote.ActivityRemote; ...@@ -7,6 +7,7 @@ import cn.com.glsx.dj.riskmanage.remote.ActivityRemote;
import cn.com.glsx.dj.riskmanage.remote.LearningCenterCourseCategoryRemote; import cn.com.glsx.dj.riskmanage.remote.LearningCenterCourseCategoryRemote;
import cn.com.glsx.dj.riskmanage.remote.LearningCenterCourseRemote; import cn.com.glsx.dj.riskmanage.remote.LearningCenterCourseRemote;
import cn.com.glsx.dj.smartcarlife.remote.*; import cn.com.glsx.dj.smartcarlife.remote.*;
import cn.com.glsx.dj.staff.remote.prelearn.PreLearnStaffRemote;
import cn.com.glsx.dj.strategy.remote.StrategyInfoRemote; import cn.com.glsx.dj.strategy.remote.StrategyInfoRemote;
import cn.com.glsx.dj.supervisor.remote.PersonCourseRecommendationRemote; import cn.com.glsx.dj.supervisor.remote.PersonCourseRecommendationRemote;
import cn.com.glsx.merchants.remote.MerchantStaffRemote; import cn.com.glsx.merchants.remote.MerchantStaffRemote;
...@@ -156,4 +157,9 @@ public class DubboConfig { ...@@ -156,4 +157,9 @@ public class DubboConfig {
public PersonCourseRecommendationRemote personCourseRecommendationRemote() { public PersonCourseRecommendationRemote personCourseRecommendationRemote() {
return factory.builder(PersonCourseRecommendationRemote.class).check(false).version("1.0.0").timeout(30000).build(); return factory.builder(PersonCourseRecommendationRemote.class).check(false).version("1.0.0").timeout(30000).build();
} }
@Bean
public PreLearnStaffRemote preLearnStaffRemote() {
return factory.builder(PreLearnStaffRemote.class).check(false).timeout(30000).build();
}
} }
package cn.com.glsx.dj.pad.request.prelearn;
import com.rop.AbstractRopRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
/**
* 预学习-完成学习上报请求
*
* @author yangzl
*/
@Data
@ApiModel("预学习-完成学习上报")
@EqualsAndHashCode(callSuper = true)
public class CompleteLearningRequest extends AbstractRopRequest implements Serializable {
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "活动ID")
private Integer activityId;
@ApiModelProperty(value = "活动商品ID")
private String activityProductId;
@ApiModelProperty(value = "案例ID")
private Integer caseId;
@ApiModelProperty(value = "会话ID")
private String sessionId;
@ApiModelProperty(value = "持续秒数")
private Integer durationSeconds;
}
package cn.com.glsx.dj.pad.request.prelearn;
import com.rop.AbstractRopRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
/**
* 预学习-扣减跳过次数请求
*
* @author yangzl
*/
@Data
@ApiModel("预学习-扣减跳过次数")
@EqualsAndHashCode(callSuper = true)
public class DeductSkipRequest extends AbstractRopRequest implements Serializable {
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "活动ID")
private Integer activityId;
@ApiModelProperty(value = "活动商品ID")
private String activityProductId;
@ApiModelProperty(value = "事件类型")
private String eventType;
@ApiModelProperty(value = "会话ID")
private String sessionId;
@ApiModelProperty(value = "持续秒数")
private Integer durationSeconds;
}
package cn.com.glsx.dj.pad.request.prelearn;
import com.rop.AbstractRopRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
/**
* 预学习-首页弹窗请求
* 无须传参,从session中获取员工信息
*
* @author yangzl
*/
@Data
@ApiModel("预学习-首页弹窗")
@EqualsAndHashCode(callSuper = true)
public class HomePopupRequest extends AbstractRopRequest implements Serializable {
private static final long serialVersionUID = 1L;
}
package cn.com.glsx.dj.pad.request.prelearn;
import com.rop.AbstractRopRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
/**
* 预学习-换案例请求
*
* @author yangzl
*/
@Data
@ApiModel("预学习-换案例")
@EqualsAndHashCode(callSuper = true)
public class RerollCaseRequest extends AbstractRopRequest implements Serializable {
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "活动商品ID")
private Integer activityProductId;
@ApiModelProperty(value = "活动ID")
private Integer activityId;
}
package cn.com.glsx.dj.pad.request.prelearn;
import com.rop.AbstractRopRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
/**
* 预学习-脚本看板请求
*
* @author yangzl
*/
@Data
@ApiModel("预学习-脚本看板")
@EqualsAndHashCode(callSuper = true)
public class ScriptBoardRequest extends AbstractRopRequest implements Serializable {
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "活动商品ID")
private Integer activityProductId;
@ApiModelProperty(value = "活动ID")
private Integer activityId;
}
package cn.com.glsx.dj.pad.request.prelearn;
import com.rop.AbstractRopRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
/**
* 预学习-跳过信息查询请求
*
* @author yangzl
*/
@Data
@ApiModel("预学习-跳过信息查询")
@EqualsAndHashCode(callSuper = true)
public class SkipInfoRequest extends AbstractRopRequest implements Serializable {
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "活动ID")
private Integer activityId;
}
package cn.com.glsx.dj.pad.response.prelearn;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
@Data
@ApiModel("预学习-完成学习响应")
public class PreLearnCompleteLearningResponse implements Serializable {
private static final long serialVersionUID = 1L;
@ApiModelProperty(name = "nextActivityProductId", notes = "下一个活动产品ID")
private String nextActivityProductId;
@ApiModelProperty(name = "nextPackageName", notes = "下一个套餐名称")
private String nextPackageName;
@ApiModelProperty(name = "allCompleted", notes = "是否全部完成")
private Boolean allCompleted;
}
package cn.com.glsx.dj.pad.response.prelearn;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
@Data
@ApiModel("预学习-扣减跳过次数响应")
public class PreLearnDeductSkipResponse implements Serializable {
private static final long serialVersionUID = 1L;
@ApiModelProperty(name = "success", notes = "是否成功")
private Boolean success;
@ApiModelProperty(name = "remainingSkipCount", notes = "剩余跳过次数")
private Integer remainingSkipCount;
@ApiModelProperty(name = "failReason", notes = "失败原因")
private String failReason;
}
package cn.com.glsx.dj.pad.response.prelearn;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
@Data
@ApiModel("预学习-首页弹窗响应")
public class PreLearnHomePopupResponse implements Serializable {
private static final long serialVersionUID = 1L;
@ApiModelProperty(name = "activityId", notes = "活动ID")
private Integer activityId;
@ApiModelProperty(name = "activityName", notes = "活动名称")
private String activityName;
@ApiModelProperty(name = "packages", notes = "套餐学习项列表")
private List<PreLearnPackageItemResponse> packages;
@ApiModelProperty(name = "remainingSkipCount", notes = "剩余跳过次数")
private Integer remainingSkipCount;
@ApiModelProperty(name = "shouldPopup", notes = "是否弹窗")
private Boolean shouldPopup;
@ApiModelProperty(name = "muteReason", notes = "静默原因: NO_ACTIVITY / NO_UNLEARNED_ACTIVITY")
private String muteReason;
@ApiModelProperty(name = "remainingActivityCount", notes = "剩余活动数")
private Integer remainingActivityCount;
@Data
@ApiModel("套餐学习项")
public static class PreLearnPackageItemResponse implements Serializable {
private static final long serialVersionUID = 1L;
@ApiModelProperty(name = "activityProductId", notes = "活动产品ID")
private String activityProductId;
@ApiModelProperty(name = "packageName", notes = "套餐名称")
private String packageName;
@ApiModelProperty(name = "includes", notes = "包含项列表")
private List<String> includes;
@ApiModelProperty(name = "learnStatus", notes = "学习状态: NOT_STUDY / STUDIED")
private String learnStatus;
@ApiModelProperty(name = "scriptReady", notes = "话术是否就绪")
private Boolean scriptReady;
}
}
package cn.com.glsx.dj.pad.response.prelearn;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
@Data
@ApiModel("预学习-重新抽取案例响应")
public class PreLearnRerollCaseResponse implements Serializable {
private static final long serialVersionUID = 1L;
@ApiModelProperty(name = "exhausted", notes = "是否已阅尽所有案例")
private Boolean exhausted;
@ApiModelProperty(name = "scriptBoard", notes = "新剧本数据(exhausted=false时有效)")
private PreLearnScriptBoardResponse scriptBoard;
@ApiModelProperty(name = "tipMessage", notes = "提示信息(exhausted=true时)")
private String tipMessage;
}
package cn.com.glsx.dj.pad.response.prelearn;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
@Data
@ApiModel("预学习-学习看板响应")
public class PreLearnScriptBoardResponse implements Serializable {
private static final long serialVersionUID = 1L;
@ApiModelProperty(name = "caseId", notes = "案例ID")
private Integer caseId;
@ApiModelProperty(name = "packageInfo", notes = "套餐信息")
private PackageInfoVO packageInfo;
@ApiModelProperty(name = "profile", notes = "客户画像")
private ProfileVO profile;
@ApiModelProperty(name = "gameSteps", notes = "游戏步骤列表")
private List<GameStepVO> gameSteps;
@ApiModelProperty(name = "aiStatus", notes = "AI状态")
private String aiStatus;
@ApiModelProperty(name = "tipMessage", notes = "提示信息")
private String tipMessage;
@Data
@ApiModel("套餐信息")
public static class PackageInfoVO implements Serializable {
private static final long serialVersionUID = 1L;
@ApiModelProperty(name = "name", notes = "套餐名称")
private String name;
@ApiModelProperty(name = "includes", notes = "包含项列表")
private List<String> includes;
@ApiModelProperty(name = "oldPrice", notes = "原价")
private Long oldPrice;
@ApiModelProperty(name = "newPrice", notes = "现价")
private Long newPrice;
}
@Data
@ApiModel("客户画像")
public static class ProfileVO implements Serializable {
private static final long serialVersionUID = 1L;
@ApiModelProperty(name = "name", notes = "姓名")
private String name;
@ApiModelProperty(name = "type", notes = "类型")
private String type;
@ApiModelProperty(name = "car", notes = "车型")
private String car;
@ApiModelProperty(name = "job", notes = "职业")
private String job;
@ApiModelProperty(name = "family", notes = "家庭情况")
private String family;
@ApiModelProperty(name = "behavior", notes = "行为特征")
private String behavior;
@ApiModelProperty(name = "objections", notes = "异议列表")
private List<String> objections;
@ApiModelProperty(name = "needs", notes = "需求列表")
private List<String> needs;
}
@Data
@ApiModel("游戏步骤")
public static class GameStepVO implements Serializable {
private static final long serialVersionUID = 1L;
@ApiModelProperty(name = "stageIndex", notes = "阶段序号")
private Integer stageIndex;
@ApiModelProperty(name = "stageName", notes = "阶段名称")
private String stageName;
@ApiModelProperty(name = "stageSummary", notes = "阶段概述")
private String stageSummary;
@ApiModelProperty(name = "isHighlight", notes = "是否高亮")
private Boolean isHighlight;
@ApiModelProperty(name = "highlightTitle", notes = "高亮标题")
private String highlightTitle;
@ApiModelProperty(name = "prompt", notes = "提示词")
private String prompt;
@ApiModelProperty(name = "dialogue", notes = "对话内容")
private String dialogue;
@ApiModelProperty(name = "salesPitch", notes = "销售话术")
private String salesPitch;
@ApiModelProperty(name = "analysis", notes = "分析内容")
private String analysis;
}
}
package cn.com.glsx.dj.pad.response.prelearn;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
@Data
@ApiModel("预学习-查询跳过信息响应")
public class PreLearnSkipInfoResponse implements Serializable {
private static final long serialVersionUID = 1L;
@ApiModelProperty(name = "totalLimit", notes = "总跳过次数上限")
private Integer totalLimit;
@ApiModelProperty(name = "usedCount", notes = "已使用跳过次数")
private Integer usedCount;
@ApiModelProperty(name = "remainingSkipCount", notes = "剩余跳过次数")
private Integer remainingSkipCount;
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!