chore: use any instead of interface{}

This commit is contained in:
Steven
2023-06-15 22:57:42 +08:00
parent 6512d6d277
commit a9f33cef6a
7 changed files with 13 additions and 13 deletions

View File

@ -108,7 +108,7 @@ func upsertUserSetting(ctx context.Context, tx *sql.Tx, upsert *api.UserSettingU
}
func findUserSettingList(ctx context.Context, tx *sql.Tx, find *api.UserSettingFind) ([]*userSettingRaw, error) {
where, args := []string{"1 = 1"}, []interface{}{}
where, args := []string{"1 = 1"}, []any{}
if v := find.Key; v != nil {
where, args = append(where, "key = ?"), append(args, v.String())