fix: goctl FindOne error (#3731)

This commit is contained in:
MarkJoyMa
2023-11-21 11:52:51 +08:00
committed by GitHub
parent 2f8cffc699
commit c71b753c78

View File

@@ -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