Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAccount ¶
func AddAccount(account Account)
func UpdateAccount ¶
Types ¶
type Account ¶
type Account struct { Phone string `json:"phone" yaml:"phone"` Device Device `json:"device" yaml:"device"` Mid string `json:"mid" yaml:"mid"` SToken string `json:"stoken" yaml:"stoken" table:",ignore"` Uid string `json:"uid" yaml:"uid"` CToken string `json:"ctoken" yaml:"ctoken" table:",ignore"` SignGameIds []string `json:"sign_game_ids" yaml:"sign_game_ids" table:",ignore"` }
func GetAccount ¶
func GetAccountOrFirst ¶
type Device ¶
type Device struct { Id string `json:"id,omitempty" yaml:"id,omitempty"` // https://github.com/UIGF-org/mihoyo-api-collect/blob/3a9116ea538941cfead749572df1f364cb9f9c8d/other/authentication.md#x-rpc-client_type Type string `json:"type,omitempty" yaml:"type,omitempty"` // https://github.com/UIGF-org/mihoyo-api-collect/blob/3a9116ea538941cfead749572df1f364cb9f9c8d/other/authentication.md#x-rpc-device_name Name string `json:"name,omitempty" yaml:"name,omitempty"` // https://github.com/UIGF-org/mihoyo-api-collect/blob/3a9116ea538941cfead749572df1f364cb9f9c8d/other/authentication.md#x-rpc-device_model Model string `json:"model,omitempty" yaml:"model,omitempty"` // https://github.com/UIGF-org/mihoyo-api-collect/blob/3a9116ea538941cfead749572df1f364cb9f9c8d/other/authentication.md#x-rpc-sys_version Version string `json:"version,omitempty" yaml:"version,omitempty"` // https://github.com/UIGF-org/mihoyo-api-collect/blob/3a9116ea538941cfead749572df1f364cb9f9c8d/other/authentication.md#x-rpc-channel Channel string `json:"channel,omitempty" yaml:"channel,omitempty"` }
func (Device) TableCellString ¶
Click to show internal directories.
Click to hide internal directories.