a05f9bd4ec
Deploy / deploy (push) Failing after 8s
- shops 表新增 logo_url 字段,AutoMigrate 自动建列 - 后端新增 POST /api/v1/shop/logo 接口(管理员),图片裁剪为 256×256 JPEG 存储 - UpdateInfo 支持传入 logo_url - 侧边栏「岩美」替换为门店真实名称 + 自定义 logo - 无 logo 时显示店名首字文字头像(深蓝底白字) - 设置页「酒行信息」展示 logo 预览,编辑弹窗新增「更换 Logo」上传按钮 - 修复库存导入计数逻辑:total/imported/updated/errors 四项分别统计 - 库存导入去重改为双路索引(编号 + 名称|系列|规格),避免 key 不一致误判新增 - settings 页导入结果统一显示「重复 X 条」,兼容 skipped 和 updated 两个字段 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
16 lines
692 B
Go
16 lines
692 B
Go
package model
|
|
|
|
type Shop struct {
|
|
Base
|
|
Name string `gorm:"size:100;not null" json:"name"`
|
|
Code string `gorm:"size:50;uniqueIndex" json:"code"`
|
|
Address string `gorm:"size:255" json:"address"`
|
|
Phone string `gorm:"size:30" json:"phone"`
|
|
BusinessHours string `gorm:"size:100" json:"business_hours"`
|
|
ManagerName string `gorm:"size:50" json:"manager_name"`
|
|
LogoURL string `gorm:"column:logo_url;size:500" json:"logo_url"`
|
|
BusinessLicense string `gorm:"size:500" json:"business_license"`
|
|
ShopPhotos JSON `gorm:"type:json" json:"shop_photos,omitempty"`
|
|
CustomFields JSON `gorm:"type:json" json:"custom_fields,omitempty"`
|
|
}
|