package appuser

import "hyapp-admin-server/internal/modules/shared"

type listQuery struct {
	Page          int
	PageSize      int
	Country       string
	Keyword       string
	UserFilter    shared.UserIdentityFilter
	RegionID      int64
	RegionIDSet   bool
	Status        string
	SortBy        string
	SortDirection string
	StartMs       int64
	EndMs         int64
}

type loginLogQuery struct {
	Page          int
	PageSize      int
	Keyword       string
	UserFilter    shared.UserIdentityFilter
	UserID        int64
	DisplayUserID string
	IP            string
	IPCountryCode string
	Channel       string
	Platform      string
	Result        string
	Blocked       string
	RegionID      int64
	RegionIDSet   bool
	StartMs       int64
	EndMs         int64
}

type banListQuery struct {
	Page                 int
	PageSize             int
	TargetKeyword        string
	TargetFilter         shared.UserIdentityFilter
	OperatorKeyword      string
	OperatorFilter       shared.UserIdentityFilter
	OperatorAdminKeyword string
	StartMs              int64
	EndMs                int64
}

type updateUserRequest struct {
	Avatar   *string `json:"avatar"`
	Country  *string `json:"country"`
	Gender   *string `json:"gender"`
	Username *string `json:"username"`
}

type setPasswordRequest struct {
	Password string `json:"password" binding:"required"`
}
