75 lines
2.5 KiB
Java
75 lines
2.5 KiB
Java
package com.baiyue.warehouse.entity;
|
|
|
|
import lombok.Getter;
|
|
import lombok.Setter;
|
|
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
|
import com.baomidou.mybatisplus.annotation.TableId;
|
|
import com.baomidou.mybatisplus.annotation.TableName;
|
|
import com.baiyue.common.core.model.BaseEntity;
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
|
/**
|
|
* 仓库主数据持久化实体,对应 {@code wh_warehouse} 表。
|
|
* 用于记录租户下仓库的编码、类型、国家、联系方式和启停状态。
|
|
*/
|
|
@Schema(name = "Warehouse", description = "Warehouse master data / 仓库主数据")
|
|
@Getter
|
|
@Setter
|
|
@TableName("wh_warehouse")
|
|
public class WarehouseEntity extends BaseEntity {
|
|
@Schema(description = "Warehouse ID / 仓库 ID", example = "190000000000000001")
|
|
@TableId(type = IdType.ASSIGN_ID)
|
|
private Long id;
|
|
@Schema(description = "Tenant ID / 租户 ID", example = "10001")
|
|
private Long tenantId;
|
|
@Schema(description = "Warehouse code / 仓库编码", example = "US-LAX-01")
|
|
private String warehouseCode;
|
|
@Schema(description = "FBA internal code / FBA 内部编号", example = "154")
|
|
private String internalCode;
|
|
@Schema(description = "Warehouse name / 仓库名称", example = "Los Angeles Main Warehouse / 洛杉矶主仓")
|
|
private String warehouseName;
|
|
@Schema(description = "Warehouse type / 仓库类型", example = "OVERSEAS_PARTNER",
|
|
allowableValues = {"DOMESTIC", "FBA", "OVERSEAS", "OVERSEAS_PARTNER"})
|
|
private String warehouseType;
|
|
@Schema(description = "ISO two-letter country code / ISO 两位国家代码", example = "US")
|
|
private String countryCode;
|
|
@Schema(description = "UTC offset / UTC 偏移量", example = "UTC-8")
|
|
private String timezone;
|
|
@Schema(description = "Contact name / 联系人", example = "Alex Chen")
|
|
private String contactName;
|
|
@Schema(description = "Contact phone / 联系电话", example = "+1-213-555-0100")
|
|
private String contactPhone;
|
|
@Schema(description = "Contact email / 联系邮箱", example = "warehouse@example.com")
|
|
private String contactEmail;
|
|
@Schema(description = "Warehouse status / 仓库状态", example = "ACTIVE", allowableValues = {"ACTIVE", "INACTIVE"})
|
|
private String status;
|
|
@Schema(description = "Remark / 备注", example = "Supports appointment receiving / 支持预约入库")
|
|
private String remark;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|