service/codecreate/template/idgenerator.txt

9 lines
158 B
Plaintext
Raw Permalink Normal View History

2023-12-21 22:17:40 +08:00
const (
Node#{EntityName} // node #{EntityCNName}
)
// #{moduleName}
func Gen#{EntityName}Id() int64 {
id, _ := GenIdInt64(Node#{EntityName})
return id
}