Use decimal.Decimal to represent floats more easily

This commit is contained in:
2025-08-10 14:00:20 +01:00
parent 528540a723
commit ba00980217
19 changed files with 92 additions and 67 deletions
+2 -2
View File
@@ -66,7 +66,7 @@ VALUES(?, ?, ?)
type InsertShareParams struct {
ExpID int64
UserID int64
Share float64
Share string
}
func (q *Queries) InsertShare(ctx context.Context, arg InsertShareParams) (sql.Result, error) {
@@ -81,7 +81,7 @@ WHERE "ExpShareID" = ?
type UpdateShareParams struct {
UserID int64
Share float64
Share string
ExpShareID int64
}