mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-10 08:29:58 +08:00
add console & example
This commit is contained in:
@@ -15,8 +15,7 @@ func genDelete(table Table, withCache bool) (string, error) {
|
||||
for fieldName, key := range table.CacheKey {
|
||||
if fieldName == table.PrimaryKey.Name.Source() {
|
||||
keySet.AddStr(key.KeyExpression)
|
||||
}
|
||||
if fieldName != table.PrimaryKey.Name.Source() {
|
||||
} else {
|
||||
keySet.AddStr(key.DataKeyExpression)
|
||||
}
|
||||
keyVariableSet.AddStr(key.Variable)
|
||||
|
||||
Reference in New Issue
Block a user