fix: goctl FindOne error (#3731)

master
MarkJoyMa 11 months ago committed by GitHub
parent 2f8cffc699
commit c71b753c78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -18,7 +18,7 @@ func (m *default{{.upperStartCamelObject}}Model) FindOne(ctx context.Context, {{
switch err {
case nil:
return &resp, nil
case sqlc.ErrNotFound:
case sqlx.ErrNotFound:
return nil, ErrNotFound
default:
return nil, err

Loading…
Cancel
Save