docs(test): 更新电表箱装配业务回归测试文档
- 将文档从代码审计任务转换为端到端业务回归测试链路 - 重新组织文档结构为链路总览、示例数据基线和详细步骤 - 添加完整的业务场景清单涵盖WMS/MES/工位终端三大系统 - 定义统一的测试数据包括产品型号、物料清单、工位派工等 - 提供详细的步骤断言和数量等式验证方法 - 建立贯穿全链路的数据流向和状态变更追踪体系
This commit is contained in:
@@ -0,0 +1,132 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package dock
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"entgo.io/ent/dialect/sql"
|
||||
)
|
||||
|
||||
const (
|
||||
// Label holds the string label denoting the dock type in the database.
|
||||
Label = "dock"
|
||||
// FieldID holds the string denoting the id field in the database.
|
||||
FieldID = "id"
|
||||
// FieldDockCode holds the string denoting the dockcode field in the database.
|
||||
FieldDockCode = "dock_code"
|
||||
// FieldName holds the string denoting the name field in the database.
|
||||
FieldName = "name"
|
||||
// FieldDockType holds the string denoting the docktype field in the database.
|
||||
FieldDockType = "dock_type"
|
||||
// FieldStationNo holds the string denoting the stationno field in the database.
|
||||
FieldStationNo = "station_no"
|
||||
// FieldHasPallet holds the string denoting the haspallet field in the database.
|
||||
FieldHasPallet = "has_pallet"
|
||||
// FieldPalletRef holds the string denoting the palletref field in the database.
|
||||
FieldPalletRef = "pallet_ref"
|
||||
// FieldStatus holds the string denoting the status field in the database.
|
||||
FieldStatus = "status"
|
||||
// FieldCreatedAt holds the string denoting the createdat field in the database.
|
||||
FieldCreatedAt = "created_at"
|
||||
// Table holds the table name of the dock in the database.
|
||||
Table = "dock"
|
||||
)
|
||||
|
||||
// Columns holds all SQL columns for dock fields.
|
||||
var Columns = []string{
|
||||
FieldID,
|
||||
FieldDockCode,
|
||||
FieldName,
|
||||
FieldDockType,
|
||||
FieldStationNo,
|
||||
FieldHasPallet,
|
||||
FieldPalletRef,
|
||||
FieldStatus,
|
||||
FieldCreatedAt,
|
||||
}
|
||||
|
||||
// ValidColumn reports if the column name is valid (part of the table columns).
|
||||
func ValidColumn(column string) bool {
|
||||
for i := range Columns {
|
||||
if column == Columns[i] {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
var (
|
||||
// DockCodeValidator is a validator for the "dockCode" field. It is called by the builders before save.
|
||||
DockCodeValidator func(string) error
|
||||
// DefaultName holds the default value on creation for the "name" field.
|
||||
DefaultName string
|
||||
// NameValidator is a validator for the "name" field. It is called by the builders before save.
|
||||
NameValidator func(string) error
|
||||
// DefaultDockType holds the default value on creation for the "dockType" field.
|
||||
DefaultDockType string
|
||||
// DockTypeValidator is a validator for the "dockType" field. It is called by the builders before save.
|
||||
DockTypeValidator func(string) error
|
||||
// DefaultStationNo holds the default value on creation for the "stationNo" field.
|
||||
DefaultStationNo int
|
||||
// DefaultHasPallet holds the default value on creation for the "hasPallet" field.
|
||||
DefaultHasPallet bool
|
||||
// DefaultPalletRef holds the default value on creation for the "palletRef" field.
|
||||
DefaultPalletRef string
|
||||
// PalletRefValidator is a validator for the "palletRef" field. It is called by the builders before save.
|
||||
PalletRefValidator func(string) error
|
||||
// DefaultStatus holds the default value on creation for the "status" field.
|
||||
DefaultStatus string
|
||||
// StatusValidator is a validator for the "status" field. It is called by the builders before save.
|
||||
StatusValidator func(string) error
|
||||
// DefaultCreatedAt holds the default value on creation for the "createdAt" field.
|
||||
DefaultCreatedAt func() time.Time
|
||||
)
|
||||
|
||||
// OrderOption defines the ordering options for the Dock queries.
|
||||
type OrderOption func(*sql.Selector)
|
||||
|
||||
// ByID orders the results by the id field.
|
||||
func ByID(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldID, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByDockCode orders the results by the dockCode field.
|
||||
func ByDockCode(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldDockCode, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByName orders the results by the name field.
|
||||
func ByName(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldName, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByDockType orders the results by the dockType field.
|
||||
func ByDockType(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldDockType, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByStationNo orders the results by the stationNo field.
|
||||
func ByStationNo(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldStationNo, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByHasPallet orders the results by the hasPallet field.
|
||||
func ByHasPallet(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldHasPallet, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByPalletRef orders the results by the palletRef field.
|
||||
func ByPalletRef(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldPalletRef, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByStatus orders the results by the status field.
|
||||
func ByStatus(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldStatus, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByCreatedAt orders the results by the createdAt field.
|
||||
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldCreatedAt, opts...).ToFunc()
|
||||
}
|
||||
Reference in New Issue
Block a user