已完成用户APP首期功能开发
交付用户端首期页面、配套接口、后台资源及测试文档。用户APP构建、静态分析和三个管理后台构建通过;完整测试仍有2项失败,后端模型注释检查未通过,详见交付记录。
This commit is contained in:
17
backend/api/internal/models/gasorder_deposit.go
Normal file
17
backend/api/internal/models/gasorder_deposit.go
Normal file
@@ -0,0 +1,17 @@
|
||||
// 功能描述:保存供气订单创建时锁定的押金规则快照;版本:1.0.0。
|
||||
package models
|
||||
|
||||
import "git.apinb.com/bsm-sdk/core/database"
|
||||
|
||||
// GasorderDeposit 在订单支付后转换为正式押金事实,防止计费规则在支付期间变化。
|
||||
type GasorderDeposit struct {
|
||||
Entity
|
||||
DepositStatus int `gorm:"column:deposit_status;not null;default:10;index;comment:订单押金状态:10=待支付,22=已取消,23=已转正式押金" json:"deposit_status"`
|
||||
GasorderBasicID uint64 `gorm:"column:gasorder_basic_id;not null;index;uniqueIndex:idx_gasorder_deposit_product;comment:供气订单内部主键" json:"gasorder_basic_id"`
|
||||
ProductInfoID uint64 `gorm:"column:product_info_id;not null;index;uniqueIndex:idx_gasorder_deposit_product;comment:实体气瓶内部主键" json:"product_info_id"`
|
||||
PolicyID uint64 `gorm:"column:policy_id;not null;index;comment:下单时采用的押金规则内部主键" json:"policy_id"`
|
||||
Amount int64 `gorm:"column:amount;not null;check:amount >= 0;comment:下单时锁定的押金金额,单位分" json:"amount"`
|
||||
}
|
||||
|
||||
func init() { database.AppendMigrate(&GasorderDeposit{}) }
|
||||
func (table *GasorderDeposit) TableName() string { return "gasorder_deposit" }
|
||||
Reference in New Issue
Block a user