feat: 添加 LocationInfo 模型,包含位置状态常量及表映射 #5
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
yingmo/PharmacyERP!5
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/location/model"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Pull request overview
该 PR 为仓库位置管理新增
LocationInfo数据模型,用于在数据库中映射“位置”实体,并提供启用/禁用状态常量,便于后续位置相关业务(如库存上架/拣货/盘点)统一使用。Changes:
LocationInfoGORM 模型(含字段约束、JSON 映射)LocationStatusDisabled/EnabledTableName()映射到location_info表名💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
@ -0,0 +21,4 @@Status int8 `gorm:"column:status;default:1" json:"status"`}// TableName overrides GORM pluralized naming.这里的 TableName 注释是英文("overrides GORM pluralized naming"),但仓库里类似模型(如 internal/drug/model/drug_info.go)使用中文注释描述 TableName 的用途。建议统一注释语言/风格,避免同一代码库中混用中英文导致可读性不一致。