f84799c3c4
CI / changes (push) Successful in 38s
CI / ad (push) Successful in 29s
CI / admin (push) Successful in 22s
CI / bff (push) Successful in 19s
CI / chore (push) Successful in 22s
CI / equipment (push) Successful in 20s
CI / express (push) Successful in 18s
CI / log (push) Successful in 0s
CI / product (push) Successful in 15s
CI / sale (push) Successful in 16s
CI / task (push) Successful in 17s
CI / user (push) Successful in 16s
CI / wecom (push) Successful in 16s
30 lines
630 B
Go
30 lines
630 B
Go
package model
|
|
|
|
import (
|
|
"lone-services/pkg/modelbase"
|
|
"lone-services/services/express/internal/dao"
|
|
)
|
|
|
|
type DeliveryOrderExpModel struct {
|
|
modelbase.Base
|
|
}
|
|
|
|
func (m DeliveryOrderExpModel) TableName() string {
|
|
return modelbase.Prefix() + "delivery_order_exp"
|
|
}
|
|
|
|
func (m DeliveryOrderExpModel) Init() DeliveryOrderExpModel {
|
|
m.Table = m.TableName()
|
|
return m
|
|
}
|
|
|
|
func (m DeliveryOrderExpModel) Create(data *dao.DeliveryExpCreate) error {
|
|
return m.Base.Create(data)
|
|
}
|
|
|
|
// CreateMulti 添加数据
|
|
func (m DeliveryOrderExpModel) CreateMulti(data *[]dao.DeliveryExpCreate) error {
|
|
o := m.Session()
|
|
return o.Create(data).Error
|
|
}
|