RemoteGenTableService.java 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. package com.boman.gen.api;
  2. import com.boman.common.core.constant.ServiceNameConstants;
  3. import com.boman.gen.domain.GenTable;
  4. import org.springframework.cloud.openfeign.FeignClient;
  5. import org.springframework.web.bind.annotation.GetMapping;
  6. import org.springframework.web.bind.annotation.PathVariable;
  7. /**
  8. * 生成代码模块,远程调用入口,如需其他接口,在此添加
  9. *
  10. * @author shiqian
  11. * @date 2021年04月06日 14:22
  12. **/
  13. @FeignClient(contextId = "remoteGenTableService", value = ServiceNameConstants.GEN_SERVICE)
  14. public interface RemoteGenTableService {
  15. /**
  16. * 功能描述: 通过表名查找表对应的所有的列
  17. *
  18. * @param tableId tableId
  19. * @return GenTable
  20. */
  21. @GetMapping(value = "/gen/tableId/{tableId}")
  22. GenTable getByTableId(@PathVariable("tableId") Long tableId);
  23. /**
  24. * 功能描述: 通过表名查找表信息
  25. *
  26. * @param tableName tableName
  27. * @return GenTable
  28. */
  29. @GetMapping(value = "/gen/table/{tableName}")
  30. GenTable getByTableName(@PathVariable("tableName") String tableName);
  31. }