niki/domain/wallet/param/wallet_info.go

24 lines
524 B
Go

package param
import (
"time"
"git.gocasts.ir/ebhomengo/niki/domain/wallet/entity"
"git.gocasts.ir/ebhomengo/niki/pkg/types"
"github.com/shopspring/decimal"
)
type WalletRequest struct {
UserID uint64 `json:"user_id"`
}
type WalletResponse struct {
Wallet WalletInfo `json:"wallet"`
}
type WalletInfo struct {
Balance decimal.Decimal `json:"balance,string"`
UpdatedAt time.Time `json:"updated_at"`
Status entity.WalletStatus `json:"status"`
Currency types.Currency `json:"currency"`
}