| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251 |
- package com.minpay.common.service;
- import java.util.List;
- import java.util.Map;
- import javax.servlet.http.HttpServletRequest;
- import javax.servlet.http.HttpSession;
- import org.apache.commons.fileupload.FileItem;
- import com.minpay.common.exception.BusinessCodeException;
- import com.minpay.db.table.model.PubApppar;
- import com.startup.minpay.frame.business.MINHttpServletRequestContext;
- import com.startup.minpay.frame.core.IMINInitializer;
- import com.startup.minpay.frame.exception.MINBusinessException;
- import com.startup.minpay.frame.service.base.IMINLocalService;
- import com.startup.minpay.frame.session.MINSession;
- public interface IPublicService extends IMINLocalService, IMINInitializer {
-
- public void init() throws MINBusinessException ;
- /**
- * 获取当前用户的权限列表
- * @param request
- * @return
- */
- public Map<String, String> getRoleBsn(String roleId);
-
- /**
- * 获取客户端IP地址
- * @param request
- * @return
- */
- public String getIPAddress(HttpServletRequest request);
- /**
- * 获取系统参数值
- *
- * @return
- * @throws MINBusinessException
- */
- public String getSysParValue(String sprCode) throws MINBusinessException;
- /**
- * 获取移动端应用参数
- *
- * @return
- * @throws MINBusinessException
- */
- public Map<String, String> getAppPar4Mobile() throws MINBusinessException;
- /**
- * 获取应用参数
- *
- * @return
- * @throws MINBusinessException
- */
- public Map<String, Object> getAppPar() throws MINBusinessException;
- /**
- * 获取移动端应用参数列表
- *
- * @return
- * @throws MINBusinessException
- */
- public Map<String, Object> getAppParList4Mobile()
- throws MINBusinessException;
- /**
- * 获取应用参数列表
- *
- * @return
- * @throws MINBusinessException
- */
- public List<PubApppar> getAppParList(String code) throws MINBusinessException;
- /**
- * 根据应用参数码获取应用参数值
- *
- * @param aprCode
- * @param aprLanguage
- * @return
- * @throws MINBusinessException
- */
- public Map<String, Object> getAppParValueByCode(String aprCode,
- String aprLanguage) throws MINBusinessException;
- /**
- * 获取移动端系统参数
- *
- * @return
- * @throws MINBusinessException
- */
- public Map<String, Object> getSysPar4Mobile() throws MINBusinessException;
- /**
- * 获取系统参数
- *
- * @return
- * @throws MINBusinessException
- */
- public Map<String, Object> getSysPar() throws MINBusinessException;
- /**
- * 根据系统参数代码获取系统参数值
- *
- * @param sprCode
- * @return
- * @throws MINBusinessException
- */
- public Map<String, String> getSysParValueByCode(String sprCode)
- throws MINBusinessException;
- /**
- * 解密操作
- *
- * @param randomKey
- * @param passWord
- * @return
- * @throws MINBusinessException
- */
- public String DecryptOcxPassword(String randomKey, String passWord)
- throws MINBusinessException;
- /**
- * 短信码校验
- *
- * @param mobileValidateCode
- * @param session
- * @return
- * @throws MINBusinessException
- */
- public Map<String, String> validateMobileCode(String mobileValidateCode,
- HttpSession session) throws MINBusinessException;
- /**
- * 短信码校验 手机号 校验超时时间
- *
- * @param mobileValidateCode
- * @param mobileNo
- * @param session
- * @return
- * @throws MINBusinessException
- */
- public Map<String, String> validateMobileCode(String mobileValidateCode,
- String mobileNo,HttpSession session) throws MINBusinessException;
-
- /**
- * 验证手机号是否被注册
- *
- * @param moblie
- * @return
- * @throws MINBusinessException
- */
- public String vertiyMoblie(String moblie) throws MINBusinessException;
- /**
- * 上传文件到本地
- * @param file 上传文件
- * @param fileType 文件类型,用于区分文件路径上传
- * @param size 缓冲区 默认512,大文件需要手动修改
- * @param renameFlag 是否重命名
- * @return
- * @throws MINBusinessException
- * @throws BusinessCodeException
- */
- public Map<String, Object> uploadFile(FileItem file,String fileType,int size,boolean renameFlag,String channel) throws MINBusinessException,BusinessCodeException;
-
- /**
- * 上传多个文件
- * @param MINRequest app端上传的文件
- * @param fileType 文件类型
- * @param size 缓冲区 默认512,大文件需要手动修改
- * @return
- * @throws MINBusinessException
- * @throws BusinessCodeException
- */
- public Map<String, Object> uploadFile(MINHttpServletRequestContext MINRequest, String fileType, int size,String channel) throws MINBusinessException,BusinessCodeException;
-
- /**
- * 获取当前登录会员所属机构
- * @param session
- * @return
- * @throws MINBusinessException
- */
- public String getUserBranchId(MINSession session) throws MINBusinessException;
-
- /**
- * 获取序列值
- * @param name
- * @return
- * @throws MINBusinessException
- * @throws BusinessCodeException
- */
- public String getSequence(String name)throws MINBusinessException,BusinessCodeException;
-
- /**
- * 通过客户号的获取安装工编号
- * @return
- * @throws MINBusinessException
- */
- public String getIdentityNo(MINSession session) throws MINBusinessException;
-
- /**
- * 获取机构地址 省+市+区
- * @param province
- * @param city
- * @param area
- * @return
- * @throws MINBusinessException
- */
- public String getAddress(String brhid) throws MINBusinessException;
- /**
- * 发送短信验证码
- * @param mobile 手机号
- * @param content 短信内容
- * @param sendFlag 是否发送true 发送 false不发送
- * @return
- * @throws MINBusinessException
- */
- public String[] sendSms(String mobile, String content, boolean sendFlag) throws MINBusinessException;
-
- /**
- * 检查当前角色是否有权限
- * @param roleId
- * @param menuId
- * @return
- * @throws MINBusinessException
- */
- public boolean hasMenu(String roleId, String menuId) throws MINBusinessException;
-
- /**
- * 根据访问的URL获取bsnCode
- * @param url
- * @return
- * @throws MINBusinessException
- */
- public String getMenuId(String url) throws MINBusinessException;
-
- public String getSysParStrValueByCode(String sprCode) throws MINBusinessException ;
- /**
- * 上传文件到本地
- * @param file 上传文件
- * @param fileType 文件类型,用于区分文件路径上传
- * @param size 缓冲区 默认512,大文件需要手动修改
- * @param renameFlag 是否重命名
- * @return
- * @throws MINBusinessException
- * @throws BusinessCodeException
- */
- // public Map<String, Object> uploadFile(FileItem file,String fileType,int size,boolean renameFlag) throws MINBusinessException,BusinessCodeException;
- }
|