IFileInfoService.kt 1018 B

123456789101112131415161718192021222324252627282930313233
  1. package cn.gygxzc.envir.sys.service
  2. import cn.gygxzc.envir.sys.model.CommonFile
  3. import org.springframework.cloud.openfeign.FeignClient
  4. import org.springframework.web.bind.annotation.RequestBody
  5. import org.springframework.web.bind.annotation.RequestMapping
  6. import org.springframework.web.bind.annotation.RequestMethod
  7. /**
  8. * Created by niantuo on 2018/12/20.
  9. * 获取文件的信息服务
  10. */
  11. @FeignClient("gateway")
  12. interface IFileInfoService {
  13. /**
  14. * 根据文件的id获取文件的详细信息
  15. *
  16. * @param ids 文件的id
  17. * @return 文件的详细信息
  18. */
  19. @RequestMapping(value = ["/info"], method = [RequestMethod.POST])
  20. fun queryByIds(@RequestBody ids: List<Long>): List<CommonFile>
  21. /**
  22. * 根据文件的id获取文件的简单信息
  23. *
  24. * @param ids 文件的id
  25. * @return 文件的简略信息
  26. */
  27. @RequestMapping(value = ["/info/simp"], method = [RequestMethod.POST])
  28. fun querySimpByIds(@RequestBody ids: List<Long>): List<CommonFile>
  29. }