forked from rongchao/epmet-cloud-rizhao
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
79 lines
2.4 KiB
79 lines
2.4 KiB
package com.epmet.service;
|
|
|
|
import com.epmet.commons.tools.security.dto.TokenDto;
|
|
import com.epmet.dto.form.GovWxmpEnteOrgFormDTO;
|
|
import com.epmet.dto.form.GovWxmpFormDTO;
|
|
import com.epmet.dto.form.SendSmsCodeFormDTO;
|
|
import com.epmet.dto.form.StaffOrgsFormDTO;
|
|
import com.epmet.dto.result.StaffOrgsResultDTO;
|
|
import com.epmet.dto.result.UserTokenResultDTO;
|
|
|
|
import java.util.List;
|
|
|
|
/**
|
|
* @Description 政府端登录服务
|
|
* @Author yinzuomei
|
|
* @Date 2020/4/20 10:56
|
|
*/
|
|
public interface GovLoginService {
|
|
/**
|
|
* @param formDTO
|
|
* @return com.epmet.commons.tools.utils.Result
|
|
* @Author yinzuomei
|
|
* @Description 政府端微信小程序登录-发送验证码
|
|
* @Date 2020/4/18 10:59
|
|
**/
|
|
void sendSmsCode(SendSmsCodeFormDTO formDTO);
|
|
|
|
/**
|
|
* @param formDTO
|
|
* @return com.epmet.commons.tools.utils.Result<com.epmet.common.token.dto.result.UserTokenResultDTO>
|
|
* @Author yinzuomei
|
|
* @Description 3、手机验证码获取组织
|
|
* @Date 2020/4/18 21:11
|
|
**/
|
|
List<StaffOrgsResultDTO> getMyOrg(StaffOrgsFormDTO formDTO);
|
|
|
|
/**
|
|
* @param formDTO
|
|
* @return com.epmet.commons.tools.utils.Result<com.epmet.dto.result.UserTokenResultDTO>
|
|
* @Author yinzuomei
|
|
* @Description 政府端小程序根据wxCode获取上一次登录信息,返回token
|
|
* @Date 2020/4/20 11:23
|
|
**/
|
|
UserTokenResultDTO loginByWxCode(GovWxmpFormDTO formDTO);
|
|
|
|
/**
|
|
* @param formDTO
|
|
* @return com.epmet.commons.tools.utils.Result<com.epmet.dto.result.UserTokenResultDTO>
|
|
* @Author yinzuomei
|
|
* @Description 4、选择组织,进入首页
|
|
* @Date 2020/4/20 13:08
|
|
**/
|
|
UserTokenResultDTO enterOrg(GovWxmpEnteOrgFormDTO formDTO);
|
|
|
|
/**
|
|
* @return com.epmet.commons.tools.utils.Result
|
|
* @param tokenDto
|
|
* @Author yinzuomei
|
|
* @Description 政府端工作人员退出登录
|
|
* @Date 2020/4/21 22:08
|
|
**/
|
|
void loginOut(TokenDto tokenDto);
|
|
|
|
/**
|
|
* 更新缓存中的角色列表
|
|
* @param staffId
|
|
* @param roleIds
|
|
*/
|
|
void updateCachedRoles(String staffId, String orgId, List<String> roleIds);
|
|
|
|
/**
|
|
* @return java.util.List<com.epmet.dto.result.StaffOrgsResultDTO>
|
|
* @param formDTO
|
|
* @author yinzuomei
|
|
* @description 6、手机号密码获取组织
|
|
* @Date 2020/6/30 22:43
|
|
**/
|
|
List<StaffOrgsResultDTO> getMyOrgByPassword(StaffOrgsFormDTO formDTO);
|
|
}
|
|
|