docs: 统一修正全项目“SN管理”相关术语为“序列号”

本次 commit 统一修正了全项目范围内关于 SN 管理的术语表述,将原“SN管理”、“序列号件”、“批次件”等表述调整为“序列号”、“序列号=是”、“序列号=否”,同时同步更新了相关文档、代码注释、前端提示文本、数据库 schema 注释、API 文档等,确保全链路术语统一,消除理解歧义。
This commit is contained in:
SunYF
2026-10-10 15:58:59 +08:00
parent b032f47fc7
commit 8be6e03a15
335 changed files with 5742 additions and 1616 deletions
+12 -12
View File
@@ -19,10 +19,10 @@ const (
FieldType = "type"
// FieldThreshold holds the string denoting the threshold field in the database.
FieldThreshold = "threshold"
// FieldReceiver holds the string denoting the receiver field in the database.
FieldReceiver = "receiver"
// FieldEnabled holds the string denoting the enabled field in the database.
FieldEnabled = "enabled"
// FieldNotifyChannels holds the string denoting the notifychannels field in the database.
FieldNotifyChannels = "notify_channels"
// FieldCreatedBy holds the string denoting the createdby field in the database.
FieldCreatedBy = "created_by"
// FieldCreatedAt holds the string denoting the createdat field in the database.
@@ -37,8 +37,8 @@ var Columns = []string{
FieldName,
FieldType,
FieldThreshold,
FieldReceiver,
FieldEnabled,
FieldNotifyChannels,
FieldCreatedBy,
FieldCreatedAt,
}
@@ -60,12 +60,12 @@ var (
TypeValidator func(string) error
// DefaultThreshold holds the default value on creation for the "threshold" field.
DefaultThreshold float64
// DefaultReceiver holds the default value on creation for the "receiver" field.
DefaultReceiver string
// ReceiverValidator is a validator for the "receiver" field. It is called by the builders before save.
ReceiverValidator func(string) error
// DefaultEnabled holds the default value on creation for the "enabled" field.
DefaultEnabled bool
// DefaultNotifyChannels holds the default value on creation for the "notifyChannels" field.
DefaultNotifyChannels string
// NotifyChannelsValidator is a validator for the "notifyChannels" field. It is called by the builders before save.
NotifyChannelsValidator func(string) error
// DefaultCreatedBy holds the default value on creation for the "createdBy" field.
DefaultCreatedBy string
// CreatedByValidator is a validator for the "createdBy" field. It is called by the builders before save.
@@ -99,16 +99,16 @@ func ByThreshold(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldThreshold, opts...).ToFunc()
}
// ByReceiver orders the results by the receiver field.
func ByReceiver(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldReceiver, opts...).ToFunc()
}
// ByEnabled orders the results by the enabled field.
func ByEnabled(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldEnabled, opts...).ToFunc()
}
// ByNotifyChannels orders the results by the notifyChannels field.
func ByNotifyChannels(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldNotifyChannels, opts...).ToFunc()
}
// ByCreatedBy orders the results by the createdBy field.
func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldCreatedBy, opts...).ToFunc()