DocumentAuthService.java 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. package com.caimei.www.service.page;
  2. import com.caimei.www.pojo.JsonModel;
  3. import com.caimei.www.pojo.document.OssAuthorization;
  4. import org.springframework.http.ResponseEntity;
  5. import org.springframework.http.server.reactive.ServerHttpRequest;
  6. import org.springframework.http.server.reactive.ServerHttpResponse;
  7. import reactor.core.publisher.Mono;
  8. /**
  9. * Description
  10. *
  11. * @author : plf
  12. * @date : 2020/11/10
  13. */
  14. public interface DocumentAuthService {
  15. /**
  16. * 获取cookie数据,判断是否登录
  17. *
  18. * @param authorizationMobile cookie中的数据
  19. * @return
  20. */
  21. Boolean getAuthorizationCookie(String authorizationMobile);
  22. /**
  23. * 获取图形验证码
  24. */
  25. Mono<JsonModel> getImgVerifyCode();
  26. /**
  27. * oss短信登录,发送短信验证
  28. *
  29. * @param mobile 手机号
  30. * @param imgCode 图形验证码
  31. * @param token 图形token
  32. * @return
  33. */
  34. Mono<JsonModel> ossNote(String mobile, String imgCode, String token);
  35. /**
  36. * oss手机短信验证码登录
  37. *
  38. * @param authorization 用户信息
  39. * @return
  40. */
  41. ResponseEntity<JsonModel> mobileCodeLogin(OssAuthorization authorization);
  42. /**
  43. * 资料列表
  44. *
  45. * @param name 商品名称,资料库名称,资料名称
  46. * @param pageNum 分页参数
  47. * @param pageSize 分页参数
  48. * @return
  49. */
  50. Mono<JsonModel> dataList(String name, Integer pageNum, Integer pageSize);
  51. /**
  52. * 资料详情
  53. *
  54. * @param pdfId 文件id
  55. * @return
  56. */
  57. Mono<JsonModel> dataDetails(Integer pdfId);
  58. /**
  59. * 更多资料
  60. *
  61. * @param archiveId 资料库id
  62. * @return
  63. */
  64. Mono<JsonModel> moreData(Integer archiveId);
  65. /**
  66. * 文件下载
  67. *
  68. * @param pdfId 文件id
  69. * @return
  70. */
  71. Mono<Void> downFile(Integer pdfId, ServerHttpRequest request, ServerHttpResponse response);
  72. /**
  73. * 定时删除服务器文件
  74. *
  75. * @return
  76. */
  77. void deleteFile();
  78. Mono<JsonModel> downFileAll(Integer pdfId);
  79. }