chore: further refactoring

This commit is contained in:
im-adithya
2023-12-07 14:46:12 +05:30
parent d3208f2bb1
commit 5fd0d66a54
6 changed files with 20 additions and 20 deletions

View File

@@ -21,6 +21,14 @@ type User struct {
Deactivated bool
}
type Limits struct {
MaxSendVolume int64
MaxSendAmount int64
MaxReceiveVolume int64
MaxReceiveAmount int64
MaxAccountBalance int64
}
func (u *User) BeforeAppendModel(ctx context.Context, query bun.Query) error {
switch query.(type) {
case *bun.UpdateQuery: