package com.qxueyou.scc.user.service;
|
|
import java.util.HashMap;
|
import java.util.List;
|
import java.util.Map;
|
|
import com.qxueyou.scc.base.model.Result;
|
import com.qxueyou.scc.user.model.ExportUserRegistration;
|
import com.qxueyou.scc.user.model.UserRegistration;
|
|
|
|
public interface IUserRegistrationService {
|
|
/**
|
* 学员信息操作记录
|
* @param operator
|
* @param regId
|
* @param moduleName
|
* @param mobile
|
* @return
|
*/
|
Result doInsertRegLog(String operator,String regId,String mobile) ;
|
|
/**
|
* 更新班级报名数量
|
* @param classId
|
* @param updateCount
|
* @param updateType
|
* @return
|
*/
|
Result updateStudentCount(String classId, int updateCount, int updateType);
|
|
/**
|
* 新增报名
|
* @param reg
|
* @return
|
*/
|
Result insertRegistration(UserRegistration reg, String source );
|
|
/**
|
* 新增报名
|
* @param reg
|
* @param companyName
|
* @return
|
*/
|
Result insertRegistration(UserRegistration reg,String companyName, String source );
|
|
/**
|
* 新增报名
|
* @param role:角色(添加用户的角色,没有可以传null), type:(操作类型:后台、微信、APP....) userMap:参数 mode:具体操作(没有可以传null)
|
* @return
|
*/
|
Result insertRegistration(UserRegistration reg,boolean male,String source, String signupInfo);
|
|
/**@version 2.0
|
* 激活
|
* @param role:角色(添加用户的角色,没有可以传null), type:(操作类型:后台、微信、APP....) userMap:参数 mode:具体操作(没有可以传null)
|
* @return
|
*/
|
Result executeActivation(String role, String type,String mode, Map<String, Object> userMap,boolean smsFlag,Map<String,String> passwordMap);
|
|
/**@version 2.0
|
* 报名
|
* @param role:角色(添加用户的角色,没有可以传null), type:(操作类型:后台、微信、APP....) userMap:参数 mode:具体操作(没有可以传null)
|
* @return
|
*/
|
Result executeSignup(String role, String type, String mode,Map<String, Object> userMap);
|
|
/**@version 2.0
|
* 注册
|
* @param reg
|
* @param male
|
* @return
|
*/
|
Result executeRegist(String role, String type,String mode,Map<String, Object> userMap);
|
|
|
/**
|
* 删除报名
|
* @param regIds 注册id
|
* @return
|
*/
|
Result deleteRegistrations(String[] regIds);
|
|
/**
|
* 激活报名
|
* @param regIds 注册id
|
* @return
|
*/
|
Result doActiveRegistrations(String[] regIds,boolean smsFlag,Map<String,String> passwordMap);
|
|
|
/**
|
* 冻结报名
|
* @param regIds 注册id
|
* @return
|
*/
|
Result doDeActiveRegistrations(String[] regIds);
|
|
/**
|
* 用户选课报名
|
* @param classId
|
* @param courseId
|
* @return
|
*/
|
Result doRegClass(String classId, String courseId);
|
|
/**
|
* 游客选课报名
|
* @param userMap
|
* @return
|
*/
|
Result doVisitorRegClass(Map<String,Object> userMap);
|
|
/**
|
* 导入学员报名信息
|
* @param file
|
* @return
|
*/
|
Result doImportRegistration(String fullPath,String module , String classId);
|
|
/**
|
* 机构学员列表
|
* @param orgId
|
* @return
|
*/
|
public List<Map<String,Object>> queryOrgRegistrationList(String orgId);
|
/**
|
* 学员注册列表 - 班级
|
* @return
|
*/
|
List<Map<String,Object>> queryClassRegistrationList(String classId);
|
|
/**
|
* 导出得到注册信息
|
* @return
|
*/
|
List<ExportUserRegistration> queryExportRegList(boolean orgFlag);
|
|
/**
|
* 判断是否报名
|
* @param userId
|
* @param classId
|
* @return
|
*/
|
boolean hasRegistration(String userId,String classId);
|
|
/**
|
* 获取Q学友最新的账号号码
|
* @return
|
*/
|
String doGetNewQxyAccount();
|
|
|
/**
|
* 消息处理激活学员后续操作
|
* @param userId
|
* @param password
|
* @param classId
|
* @param regId
|
* @return
|
*/
|
Result doOnsRegActive(String userId,String password,String classId,String regId);
|
|
/**
|
* 消息处理删除、冻结学员后续操作
|
* @param userId
|
* @param password
|
* @param classId
|
* @param regId
|
* @return
|
*/
|
Result doOnsRegDeActive(String userIds,String classId);
|
|
/**
|
* 加入游客班级,不需要消耗账号
|
*/
|
Result insertClassVisitor(Map<String,Object> userMap);
|
|
/**
|
* 注册新用户信息准备
|
* @return
|
*/
|
HashMap<String, Object> prepareUserInfoMap(String openId, String userId, String source, String wxSource);
|
|
/**
|
* 已存在用户 仅仅加入机构体验班
|
* @param userMap
|
* @return
|
*/
|
Result insertOnlyWXOrgVisitorCls(Map<String,Object> userMap);
|
|
/**
|
* 给学员发送短信
|
*/
|
Result doSendSmsToUser(String regIds);
|
|
/**
|
* 异步处理学员激活所需要的操作
|
* @return
|
*/
|
Result doOnsRegActive2(String userId,String password,String classId,String regId);
|
|
/**
|
* 保存自定义信息
|
* @param data
|
*/
|
Result doSaveCustom(String data, String classId);
|
|
/**
|
* 获取自定义学员信息
|
* @param data
|
*/
|
// List<OrgClassUserCustom> doInitCustomLst(String classId, String pageType, boolean isApp);
|
|
/**
|
* 学员转班
|
* @param data
|
*/
|
Result doSaveTurn(List<String> regIds,String classId);
|
|
}
|