()
| 135 | } |
| 136 | |
| 137 | func (info *CrudInfo) isIDPrimaryKey() bool { |
| 138 | if info == nil { |
| 139 | return false |
| 140 | } |
| 141 | if info.ColumnName == "id" && (info.GoType == "uint64" || |
| 142 | info.GoType == "int64" || |
| 143 | info.GoType == "uint" || |
| 144 | info.GoType == "int" || |
| 145 | info.GoType == "uint32" || |
| 146 | info.GoType == "int32") { |
| 147 | return true |
| 148 | } |
| 149 | return false |
| 150 | } |
| 151 | |
| 152 | func (info *CrudInfo) GetGRPCProtoValidation() string { |
| 153 | if info == nil { |
no outgoing calls