docs: 统一修正全项目“SN管理”相关术语为“序列号”
本次 commit 统一修正了全项目范围内关于 SN 管理的术语表述,将原“SN管理”、“序列号件”、“批次件”等表述调整为“序列号”、“序列号=是”、“序列号=否”,同时同步更新了相关文档、代码注释、前端提示文本、数据库 schema 注释、API 文档等,确保全链路术语统一,消除理解歧义。
This commit is contained in:
@@ -19,8 +19,6 @@ const (
|
||||
FieldProductName = "product_name"
|
||||
// FieldName holds the string denoting the name field in the database.
|
||||
FieldName = "name"
|
||||
// FieldIsDefault holds the string denoting the isdefault field in the database.
|
||||
FieldIsDefault = "is_default"
|
||||
// FieldStatus holds the string denoting the status field in the database.
|
||||
FieldStatus = "status"
|
||||
// FieldRemark holds the string denoting the remark field in the database.
|
||||
@@ -37,7 +35,6 @@ var Columns = []string{
|
||||
FieldProductCode,
|
||||
FieldProductName,
|
||||
FieldName,
|
||||
FieldIsDefault,
|
||||
FieldStatus,
|
||||
FieldRemark,
|
||||
FieldCreatedAt,
|
||||
@@ -62,8 +59,6 @@ var (
|
||||
ProductNameValidator func(string) error
|
||||
// NameValidator is a validator for the "name" field. It is called by the builders before save.
|
||||
NameValidator func(string) error
|
||||
// DefaultIsDefault holds the default value on creation for the "isDefault" field.
|
||||
DefaultIsDefault bool
|
||||
// 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.
|
||||
@@ -101,11 +96,6 @@ func ByName(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldName, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByIsDefault orders the results by the isDefault field.
|
||||
func ByIsDefault(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldIsDefault, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByStatus orders the results by the status field.
|
||||
func ByStatus(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldStatus, opts...).ToFunc()
|
||||
|
||||
@@ -69,11 +69,6 @@ func Name(v string) predicate.ProductProcess {
|
||||
return predicate.ProductProcess(sql.FieldEQ(FieldName, v))
|
||||
}
|
||||
|
||||
// IsDefault applies equality check predicate on the "isDefault" field. It's identical to IsDefaultEQ.
|
||||
func IsDefault(v bool) predicate.ProductProcess {
|
||||
return predicate.ProductProcess(sql.FieldEQ(FieldIsDefault, v))
|
||||
}
|
||||
|
||||
// Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
|
||||
func Status(v string) predicate.ProductProcess {
|
||||
return predicate.ProductProcess(sql.FieldEQ(FieldStatus, v))
|
||||
@@ -284,16 +279,6 @@ func NameContainsFold(v string) predicate.ProductProcess {
|
||||
return predicate.ProductProcess(sql.FieldContainsFold(FieldName, v))
|
||||
}
|
||||
|
||||
// IsDefaultEQ applies the EQ predicate on the "isDefault" field.
|
||||
func IsDefaultEQ(v bool) predicate.ProductProcess {
|
||||
return predicate.ProductProcess(sql.FieldEQ(FieldIsDefault, v))
|
||||
}
|
||||
|
||||
// IsDefaultNEQ applies the NEQ predicate on the "isDefault" field.
|
||||
func IsDefaultNEQ(v bool) predicate.ProductProcess {
|
||||
return predicate.ProductProcess(sql.FieldNEQ(FieldIsDefault, v))
|
||||
}
|
||||
|
||||
// StatusEQ applies the EQ predicate on the "status" field.
|
||||
func StatusEQ(v string) predicate.ProductProcess {
|
||||
return predicate.ProductProcess(sql.FieldEQ(FieldStatus, v))
|
||||
|
||||
Reference in New Issue
Block a user