service/codecreate/template/idgenerator.txt

9 lines
158 B
Plaintext

const (
Node#{EntityName} // node #{EntityCNName}
)
// #{moduleName}
func Gen#{EntityName}Id() int64 {
id, _ := GenIdInt64(Node#{EntityName})
return id
}