2023-10-08 15:59:42 +07:00
|
|
|
package entity
|
|
|
|
|
|
|
|
|
|
import "github.com/golang-jwt/jwt"
|
|
|
|
|
|
|
|
|
|
type JWTAuthClaims struct {
|
2024-06-03 14:40:50 +07:00
|
|
|
UserID int64 `json:"id"`
|
|
|
|
|
Name string `json:"name"`
|
|
|
|
|
Email string `json:"email"`
|
|
|
|
|
Role int `json:"role"`
|
|
|
|
|
PartnerID int64 `json:"partner_id"`
|
2024-06-05 00:24:53 +07:00
|
|
|
SiteID int64 `json:"site_id"`
|
2024-07-12 02:29:18 +07:00
|
|
|
SiteName string `json:"site_name"`
|
2023-10-08 15:59:42 +07:00
|
|
|
jwt.StandardClaims
|
|
|
|
|
}
|
2024-06-04 02:59:31 +07:00
|
|
|
|
|
|
|
|
type JWTOrderClaims struct {
|
2025-03-08 00:35:23 +07:00
|
|
|
PartnerID int64 `json:"id"`
|
|
|
|
|
OrderID int64 `json:"order_id"`
|
|
|
|
|
InquiryID string `json:"inquiry_id"`
|
2024-06-04 02:59:31 +07:00
|
|
|
jwt.StandardClaims
|
|
|
|
|
}
|
2024-07-31 23:02:15 +07:00
|
|
|
|
|
|
|
|
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
|
|
|
|
|
}
|