AuthService.java 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. package com.caimei.service;
  2. import com.caimei.model.ResponseJson;
  3. import com.caimei.model.vo.AuthVo;
  4. import com.caimei.model.vo.BrandVo;
  5. import com.github.pagehelper.PageInfo;
  6. import java.util.List;
  7. /**
  8. * Description
  9. *
  10. * @author : Aslee
  11. * @date : 2021/5/11
  12. */
  13. public interface AuthService {
  14. /**
  15. * 授权列表
  16. * @param authUserId 供应商用户id
  17. * @param authParty 授权机构
  18. * @param pageNum 第几页
  19. * @param pageSize 一页多少条
  20. * @return AuthVo
  21. */
  22. ResponseJson<PageInfo<AuthVo>> getAuthList(Integer authUserId, String authParty, Integer pageNum, Integer pageSize);
  23. /**
  24. * 更新授权状态
  25. * @param authId 授权id
  26. * @param status 授权状态:0停用 1启用
  27. * @return ResponseJson
  28. */
  29. ResponseJson updateAuthStatus(Integer authId, Integer status);
  30. /**
  31. * 删除授权
  32. * @param authId 授权id
  33. * @return ResponseJson
  34. */
  35. ResponseJson deleteAuth(Integer authId);
  36. /**
  37. * 添加/编辑授权
  38. *
  39. * @param authId 授权id
  40. * @param authUserId 供应商用户id
  41. * @param authParty 授权机构
  42. * @param status 授权状态:0已下架 1已上架
  43. * @param createBy 创建人id
  44. * @return ResponseJson
  45. */
  46. ResponseJson saveAuth(Integer authId, Integer authUserId, String authParty, Integer status, Integer createBy);
  47. }