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"` Uid string `json:"uid" yaml:"uid"` GToken string `json:"gtoken" yaml:"gtoken"` CToken string `json:"ctoken" yaml:"ctoken" table:",ignore"` Mid string `json:"mid" yaml:"mid"` SToken string `json:"stoken" yaml:"stoken" table:",ignore"` }
func GetAccount ¶
type Config ¶
type Config struct { Accounts []Account `json:"accounts" yaml:"accounts"` Cron Cron `json:"cron" yaml:"cron"` // 打码接口 RROCRKey string `json:"rrocr.key" yaml:"rrocr.key"` }
func (Config) FirstAccount ¶ added in v1.1.0
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.