elec

package
v0.0.0-...-83adff0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Weekday

func Weekday(t time.Time) (w string)

Weekday get day.

Types

type ArcState

type ArcState struct {
	Show   bool            `json:"show"`
	State  int16           `json:"state"`
	Total  int             `json:"total"`
	Count  int             `json:"count"`
	Reason string          `json:"reason"`
	List   json.RawMessage `json:"list,omitempty"`
	User   json.RawMessage `json:"user,omitempty"`
}

ArcState arc elec info.

type Balance

type Balance struct {
	Ts             string       `json:"ts"`
	BrokerageAudit int8         `json:"brokerage_audit"`
	BpayAcc        *BpayAccount `json:"bpay_account"`
	Wallet         *Wall        `json:"wallet"`
}

Balance get battery balance.

type Bill

type Bill struct {
	ID            int64      `json:"id"`
	MID           int64      `json:"mid"`
	ChannelType   int8       `json:"channelType"`
	ChannelTyName string     `json:"channelTypeName"`
	AddNum        float32    `json:"addNum"`
	ReduceNum     float32    `json:"reduceNum"`
	WalletBalance float32    `json:"walletBalance"`
	DateVersion   string     `json:"dateVersion"`
	Weekday       string     `json:"weekday"`
	Remark        string     `json:"remark"`
	MonthBillResp *MonthBill `json:"monthBillResp"`
}

Bill bill detail.

type BillList

type BillList struct {
	List       []*Bill `json:"list"`
	TotalCount int     `json:"totalCount"`
	Pn         int     `json:"pn"`
	Ps         int     `json:"ps"`
}

BillList daily bill list.

type BpayAccount

type BpayAccount struct {
	Brokerage float32 `json:"brokerage"`
	DefaultBp float32 `json:"default_bp"`
}

BpayAccount shell detail.

type ChargeBill

type ChargeBill struct {
	List  []*Bill `json:"list"`
	Pager struct {
		Current int `json:"current"`
		Size    int `json:"size"`
		Total   int `json:"total"`
	} `json:"pager"`
}

ChargeBill daily bill for app charge.

type Earnings

type Earnings struct {
	State     int8    `json:"state"`
	Balance   float32 `json:"balance"`
	Brokerage float32 `json:"brokerage"`
}

Earnings for elec.

type EleRelation

type EleRelation struct {
	RetList []struct {
		Mid    int64 `json:"mid"`
		IsElec bool  `json:"is_elec"`
	} `json:"ret_list"`
}

EleRelation get elec relation.

type MonthBill

type MonthBill struct {
	LastMonthNum float32 `json:"last_month_num"`
	ServiceNum   float32 `json:"service_num"`
	BkNum        float32 `json:"bk_num"`
}

MonthBill month bill.

type Notify

type Notify struct {
	Content string `json:"content"`
}

Notify up-to-date info to user

type Rank

type Rank struct {
	MID      int64  `json:"mid"`
	PayMID   int64  `json:"pay_mid"`
	Rank     int64  `json:"rank"`
	Uname    string `json:"uname"`
	Avatar   string `json:"avatar"`
	IsFriend bool   `json:"isfriend"`
	MTime    string `json:"mtime"`
}

Rank up rank.

type RecentElec

type RecentElec struct {
	AID     int64   `json:"aid"`
	MID     int64   `json:"mid"`
	ElecNum float32 `json:"elec_num"`
	Title   string  `json:"title"`
	Uname   string  `json:"uname"`
	Avatar  string  `json:"avatar"`
	OrderNO string  `json:"-"`
	CTime   string  `json:"ctime"`
}

RecentElec recent detail for app.

type RecentElecList

type RecentElecList struct {
	List  []*RecentElec `json:"list"`
	Pager struct {
		Current int `json:"current"`
		Size    int `json:"size"`
		Total   int `json:"total"`
	} `json:"pager"`
}

RecentElecList recent list for app.

type Remark

type Remark struct {
	ID          int64      `json:"id"`
	AID         int64      `json:"aid"`
	MID         int64      `json:"mid"`
	ReplyMID    int64      `json:"reply_mid"`
	ElecNum     int64      `json:"elec_num"`
	State       int8       `json:"state"`
	Msg         string     `json:"msg"`
	ArcName     string     `json:"aname"`
	Uname       string     `json:"uname"`
	Avator      string     `json:"avator"`
	ReplyName   string     `json:"reply_name"`
	ReplyAvator string     `json:"reply_avator"`
	ReplyMsg    string     `json:"reply_msg"`
	CTime       xtime.Time `json:"ctime"`
	ReplyTime   xtime.Time `json:"reply_time"`
}

Remark remark detail.

type RemarkList

type RemarkList struct {
	List  []*Remark `json:"list"`
	Pager struct {
		Current int `json:"current"`
		Size    int `json:"size"`
		Total   int `json:"total"`
	} `json:"pager"`
}

RemarkList remark list.

type Status

type Status struct {
	Specialday int8 `json:"display_specialday"`
}

Status elec setting.

type UserInfo

type UserInfo struct {
	ID     int64      `json:"-"`
	Mid    int64      `json:"mid"`
	State  int16      `json:"state"`
	Reason string     `json:"reason"`
	Count  int16      `json:"-"`
	CTime  xtime.Time `json:"-"`
	MTime  xtime.Time `json:"-"`
}

UserInfo user elec info.

type UserState

type UserState struct {
	ID     string `json:"-"`
	Mid    string `json:"mid"`
	State  string `json:"state"`
	Reason string `json:"reason"`
	Count  string `json:"-"`
	CTime  string `json:"-"`
	MTime  string `json:"-"`
}

UserState user elec state.

type Wall

type Wall struct {
	MID            int64   `json:"mid"`
	Balance        float32 `json:"balance"`
	SponsorBalance float32 `json:"sponsorBalance"`
	Ver            int32   `json:"-"`
}

Wall wallet detail.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL