docs: 统一修正全项目“SN管理”相关术语为“序列号”
本次 commit 统一修正了全项目范围内关于 SN 管理的术语表述,将原“SN管理”、“序列号件”、“批次件”等表述调整为“序列号”、“序列号=是”、“序列号=否”,同时同步更新了相关文档、代码注释、前端提示文本、数据库 schema 注释、API 文档等,确保全链路术语统一,消除理解歧义。
This commit is contained in:
+36
-22
@@ -55,48 +55,66 @@ func init() {
|
||||
alertDescType := alertFields[2].Descriptor()
|
||||
// alert.TypeValidator is a validator for the "type" field. It is called by the builders before save.
|
||||
alert.TypeValidator = alertDescType.Validators[0].(func(string) error)
|
||||
// alertDescLevel is the schema descriptor for level field.
|
||||
alertDescLevel := alertFields[3].Descriptor()
|
||||
// alert.DefaultLevel holds the default value on creation for the level field.
|
||||
alert.DefaultLevel = alertDescLevel.Default.(string)
|
||||
// alert.LevelValidator is a validator for the "level" field. It is called by the builders before save.
|
||||
alert.LevelValidator = alertDescLevel.Validators[0].(func(string) error)
|
||||
// alertDescTarget is the schema descriptor for target field.
|
||||
alertDescTarget := alertFields[4].Descriptor()
|
||||
// alert.DefaultTarget holds the default value on creation for the target field.
|
||||
alert.DefaultTarget = alertDescTarget.Default.(string)
|
||||
// alert.TargetValidator is a validator for the "target" field. It is called by the builders before save.
|
||||
alert.TargetValidator = alertDescTarget.Validators[0].(func(string) error)
|
||||
// alertDescTitle is the schema descriptor for title field.
|
||||
alertDescTitle := alertFields[3].Descriptor()
|
||||
alertDescTitle := alertFields[5].Descriptor()
|
||||
// alert.TitleValidator is a validator for the "title" field. It is called by the builders before save.
|
||||
alert.TitleValidator = alertDescTitle.Validators[0].(func(string) error)
|
||||
// alertDescContent is the schema descriptor for content field.
|
||||
alertDescContent := alertFields[4].Descriptor()
|
||||
alertDescContent := alertFields[6].Descriptor()
|
||||
// alert.DefaultContent holds the default value on creation for the content field.
|
||||
alert.DefaultContent = alertDescContent.Default.(string)
|
||||
// alert.ContentValidator is a validator for the "content" field. It is called by the builders before save.
|
||||
alert.ContentValidator = alertDescContent.Validators[0].(func(string) error)
|
||||
// alertDescRefType is the schema descriptor for refType field.
|
||||
alertDescRefType := alertFields[5].Descriptor()
|
||||
alertDescRefType := alertFields[7].Descriptor()
|
||||
// alert.DefaultRefType holds the default value on creation for the refType field.
|
||||
alert.DefaultRefType = alertDescRefType.Default.(string)
|
||||
// alert.RefTypeValidator is a validator for the "refType" field. It is called by the builders before save.
|
||||
alert.RefTypeValidator = alertDescRefType.Validators[0].(func(string) error)
|
||||
// alertDescRefId is the schema descriptor for refId field.
|
||||
alertDescRefId := alertFields[6].Descriptor()
|
||||
alertDescRefId := alertFields[8].Descriptor()
|
||||
// alert.DefaultRefId holds the default value on creation for the refId field.
|
||||
alert.DefaultRefId = alertDescRefId.Default.(string)
|
||||
// alert.RefIdValidator is a validator for the "refId" field. It is called by the builders before save.
|
||||
alert.RefIdValidator = alertDescRefId.Validators[0].(func(string) error)
|
||||
// alertDescOrderNo is the schema descriptor for orderNo field.
|
||||
alertDescOrderNo := alertFields[7].Descriptor()
|
||||
alertDescOrderNo := alertFields[9].Descriptor()
|
||||
// alert.DefaultOrderNo holds the default value on creation for the orderNo field.
|
||||
alert.DefaultOrderNo = alertDescOrderNo.Default.(string)
|
||||
// alert.OrderNoValidator is a validator for the "orderNo" field. It is called by the builders before save.
|
||||
alert.OrderNoValidator = alertDescOrderNo.Validators[0].(func(string) error)
|
||||
// alertDescStatus is the schema descriptor for status field.
|
||||
alertDescStatus := alertFields[8].Descriptor()
|
||||
alertDescStatus := alertFields[10].Descriptor()
|
||||
// alert.DefaultStatus holds the default value on creation for the status field.
|
||||
alert.DefaultStatus = alertDescStatus.Default.(string)
|
||||
// alert.StatusValidator is a validator for the "status" field. It is called by the builders before save.
|
||||
alert.StatusValidator = alertDescStatus.Validators[0].(func(string) error)
|
||||
// alertDescReceiver is the schema descriptor for receiver field.
|
||||
alertDescReceiver := alertFields[9].Descriptor()
|
||||
alertDescReceiver := alertFields[11].Descriptor()
|
||||
// alert.DefaultReceiver holds the default value on creation for the receiver field.
|
||||
alert.DefaultReceiver = alertDescReceiver.Default.(string)
|
||||
// alert.ReceiverValidator is a validator for the "receiver" field. It is called by the builders before save.
|
||||
alert.ReceiverValidator = alertDescReceiver.Validators[0].(func(string) error)
|
||||
// alertDescResolvedBy is the schema descriptor for resolvedBy field.
|
||||
alertDescResolvedBy := alertFields[13].Descriptor()
|
||||
// alert.DefaultResolvedBy holds the default value on creation for the resolvedBy field.
|
||||
alert.DefaultResolvedBy = alertDescResolvedBy.Default.(string)
|
||||
// alert.ResolvedByValidator is a validator for the "resolvedBy" field. It is called by the builders before save.
|
||||
alert.ResolvedByValidator = alertDescResolvedBy.Validators[0].(func(string) error)
|
||||
// alertDescCreatedAt is the schema descriptor for createdAt field.
|
||||
alertDescCreatedAt := alertFields[10].Descriptor()
|
||||
alertDescCreatedAt := alertFields[14].Descriptor()
|
||||
// alert.DefaultCreatedAt holds the default value on creation for the createdAt field.
|
||||
alert.DefaultCreatedAt = alertDescCreatedAt.Default.(func() time.Time)
|
||||
// alertDescID is the schema descriptor for id field.
|
||||
@@ -117,16 +135,16 @@ func init() {
|
||||
alertruleDescThreshold := alertruleFields[3].Descriptor()
|
||||
// alertrule.DefaultThreshold holds the default value on creation for the threshold field.
|
||||
alertrule.DefaultThreshold = alertruleDescThreshold.Default.(float64)
|
||||
// alertruleDescReceiver is the schema descriptor for receiver field.
|
||||
alertruleDescReceiver := alertruleFields[4].Descriptor()
|
||||
// alertrule.DefaultReceiver holds the default value on creation for the receiver field.
|
||||
alertrule.DefaultReceiver = alertruleDescReceiver.Default.(string)
|
||||
// alertrule.ReceiverValidator is a validator for the "receiver" field. It is called by the builders before save.
|
||||
alertrule.ReceiverValidator = alertruleDescReceiver.Validators[0].(func(string) error)
|
||||
// alertruleDescEnabled is the schema descriptor for enabled field.
|
||||
alertruleDescEnabled := alertruleFields[5].Descriptor()
|
||||
alertruleDescEnabled := alertruleFields[4].Descriptor()
|
||||
// alertrule.DefaultEnabled holds the default value on creation for the enabled field.
|
||||
alertrule.DefaultEnabled = alertruleDescEnabled.Default.(bool)
|
||||
// alertruleDescNotifyChannels is the schema descriptor for notifyChannels field.
|
||||
alertruleDescNotifyChannels := alertruleFields[5].Descriptor()
|
||||
// alertrule.DefaultNotifyChannels holds the default value on creation for the notifyChannels field.
|
||||
alertrule.DefaultNotifyChannels = alertruleDescNotifyChannels.Default.(string)
|
||||
// alertrule.NotifyChannelsValidator is a validator for the "notifyChannels" field. It is called by the builders before save.
|
||||
alertrule.NotifyChannelsValidator = alertruleDescNotifyChannels.Validators[0].(func(string) error)
|
||||
// alertruleDescCreatedBy is the schema descriptor for createdBy field.
|
||||
alertruleDescCreatedBy := alertruleFields[6].Descriptor()
|
||||
// alertrule.DefaultCreatedBy holds the default value on creation for the createdBy field.
|
||||
@@ -1123,24 +1141,20 @@ func init() {
|
||||
productprocessDescName := productprocessFields[3].Descriptor()
|
||||
// productprocess.NameValidator is a validator for the "name" field. It is called by the builders before save.
|
||||
productprocess.NameValidator = productprocessDescName.Validators[0].(func(string) error)
|
||||
// productprocessDescIsDefault is the schema descriptor for isDefault field.
|
||||
productprocessDescIsDefault := productprocessFields[4].Descriptor()
|
||||
// productprocess.DefaultIsDefault holds the default value on creation for the isDefault field.
|
||||
productprocess.DefaultIsDefault = productprocessDescIsDefault.Default.(bool)
|
||||
// productprocessDescStatus is the schema descriptor for status field.
|
||||
productprocessDescStatus := productprocessFields[5].Descriptor()
|
||||
productprocessDescStatus := productprocessFields[4].Descriptor()
|
||||
// productprocess.DefaultStatus holds the default value on creation for the status field.
|
||||
productprocess.DefaultStatus = productprocessDescStatus.Default.(string)
|
||||
// productprocess.StatusValidator is a validator for the "status" field. It is called by the builders before save.
|
||||
productprocess.StatusValidator = productprocessDescStatus.Validators[0].(func(string) error)
|
||||
// productprocessDescRemark is the schema descriptor for remark field.
|
||||
productprocessDescRemark := productprocessFields[6].Descriptor()
|
||||
productprocessDescRemark := productprocessFields[5].Descriptor()
|
||||
// productprocess.DefaultRemark holds the default value on creation for the remark field.
|
||||
productprocess.DefaultRemark = productprocessDescRemark.Default.(string)
|
||||
// productprocess.RemarkValidator is a validator for the "remark" field. It is called by the builders before save.
|
||||
productprocess.RemarkValidator = productprocessDescRemark.Validators[0].(func(string) error)
|
||||
// productprocessDescCreatedAt is the schema descriptor for createdAt field.
|
||||
productprocessDescCreatedAt := productprocessFields[7].Descriptor()
|
||||
productprocessDescCreatedAt := productprocessFields[6].Descriptor()
|
||||
// productprocess.DefaultCreatedAt holds the default value on creation for the createdAt field.
|
||||
productprocess.DefaultCreatedAt = productprocessDescCreatedAt.Default.(func() time.Time)
|
||||
// productprocessDescID is the schema descriptor for id field.
|
||||
|
||||
Reference in New Issue
Block a user