mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-23 17:20:24 +08:00
fix 当表有唯一键时,update()的形参和实参不一致 (#2010)
This commit is contained in:
parent
0b109c1954
commit
c92400ead2
@ -20,5 +20,5 @@ func (m *default{{.upperStartCamelObject}}Model) Update(ctx context.Context, {{i
|
||||
`
|
||||
|
||||
// UpdateMethod defines an interface method template for generating update codes
|
||||
UpdateMethod = `Update(ctx context.Context, newData *{{.upperStartCamelObject}}) error`
|
||||
UpdateMethod = `Update(ctx context.Context, {{if .containsIndexCache}}newData{{else}}data{{end}} *{{.upperStartCamelObject}}) error`
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user