金属元素外部接口
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
package com.zt.plat.module.api;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.CommonResult;
|
||||
import com.zt.plat.module.api.dto.AccountDTO;
|
||||
import com.zt.plat.module.api.dto.ElementDTO;
|
||||
import com.zt.plat.module.api.dto.MaterialOtherDTO;
|
||||
import com.zt.plat.module.base.enums.ApiConstants;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
@@ -23,4 +25,8 @@ public interface BaseApi {
|
||||
@GetMapping(PREFIX + "/getMaterialOtherNoPage")
|
||||
@Operation(summary = "物料拓展关系数据不分页查询")
|
||||
List<MaterialOtherDTO> getMaterialOtherNoPage(MaterialOtherDTO respVO);
|
||||
|
||||
@GetMapping(PREFIX + "/getElementNoPage")
|
||||
@Operation(summary = "金属元素数据不分页查询")
|
||||
CommonResult<List<ElementDTO>> getElementNoPage(ElementDTO respVO);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
package com.zt.plat.module.api.dto;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
||||
|
||||
@Schema(description = "管理后台 - 金属元素 Response VO")
|
||||
@Data
|
||||
public class ElementDTO {
|
||||
|
||||
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "21884")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "金属元素缩写", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String abbreviation;
|
||||
|
||||
@Schema(description = "金属元素名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
|
||||
private String name;
|
||||
|
||||
@Schema(description = "金属元素编码", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String coding;
|
||||
|
||||
@Schema(description = "小数位数", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private Long decimalValue;
|
||||
|
||||
@Schema(description = "品位单位", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String gradeUnit;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user