31 lines
1.1 KiB
Go
31 lines
1.1 KiB
Go
// Package dto 请求参数
|
|
package dto
|
|
|
|
import (
|
|
"time"
|
|
|
|
"gorm.io/datatypes"
|
|
)
|
|
|
|
// CreatePlatformUserRequest 创建平台用户请求
|
|
type CreatePlatformUserRequest struct {
|
|
UserID int64 `json:"userId"`
|
|
PlatformType int8 `json:"platformType"`
|
|
PlatformOpenID string `json:"platformOpenid"`
|
|
PlatformUnionID string `json:"platformUnionid"`
|
|
PlatformSessionKey string `json:"platformSessionKey"`
|
|
PlatformExtra datatypes.JSONMap `json:"platformExtra"`
|
|
LastLoginTime *time.Time `json:"lastLoginTime"`
|
|
}
|
|
|
|
// UpdatePlatformUserRequest 更新平台用户请求
|
|
type UpdatePlatformUserRequest struct {
|
|
UserID *int64 `json:"userId"`
|
|
PlatformType *int8 `json:"platformType"`
|
|
PlatformOpenID *string `json:"platformOpenid"`
|
|
PlatformUnionID *string `json:"platformUnionid"`
|
|
PlatformSessionKey *string `json:"platformSessionKey"`
|
|
PlatformExtra datatypes.JSONMap `json:"platformExtra"`
|
|
LastLoginTime *time.Time `json:"lastLoginTime"`
|
|
}
|