31 lines
706 B
Go
31 lines
706 B
Go
package entity
|
|
|
|
import "github.com/golang-jwt/jwt"
|
|
|
|
type JWTAuthClaims struct {
|
|
UserID int64 `json:"id"`
|
|
Name string `json:"name"`
|
|
Email string `json:"email"`
|
|
Role int `json:"role"`
|
|
PartnerID int64 `json:"partner_id"`
|
|
SiteID int64 `json:"site_id"`
|
|
SiteName string `json:"site_name"`
|
|
jwt.StandardClaims
|
|
}
|
|
|
|
type JWTOrderClaims struct {
|
|
PartnerID int64 `json:"id"`
|
|
OrderID int64 `json:"order_id"`
|
|
jwt.StandardClaims
|
|
}
|
|
|
|
type JWTWithdrawClaims struct {
|
|
ID int64 `json:"id"`
|
|
PartnerID int64 `json:"partner_id"`
|
|
OrderID int64 `json:"order_id"`
|
|
Amount int64 `json:"amount"`
|
|
Fee int64 `json:"fee"`
|
|
Total int64 `json:"total"`
|
|
jwt.StandardClaims
|
|
}
|