model

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 DefaultHash

func DefaultHash(plaintext string) string

DefaultHash hash a plain text using default salt.

Types

type AsoAccount

type AsoAccount struct {
	Mid            int64  `json:"mid"`
	Userid         string `json:"userid"`
	Uname          string `json:"uname"`
	Pwd            string `json:"pwd"`
	Salt           string `json:"salt"`
	Email          string `json:"email"`
	Tel            string `json:"tel"`
	CountryID      int64  `json:"country_id"`
	MobileVerified int8   `json:"mobile_verified"`
	Isleak         int8   `json:"isleak"`
	Mtime          string `json:"mtime"`
}

AsoAccount aso account.

func Default

func Default(a *OriginAsoAccount) *AsoAccount

Default doHash aso account, including the followings fields: userid, uname, pwd, email, tel.

type BMsg

type BMsg struct {
	Action string          `json:"action"`
	Table  string          `json:"table"`
	New    json.RawMessage `json:"new"`
	Old    json.RawMessage `json:"old"`
}

BMsg databus binlog message.

type OriginAsoAccount

type OriginAsoAccount struct {
	Mid            int64  `json:"mid"`
	Userid         string `json:"userid"`
	Uname          string `json:"uname"`
	Pwd            string `json:"pwd"`
	Salt           string `json:"salt"`
	Email          string `json:"email"`
	Tel            string `json:"tel"`
	CountryID      int64  `json:"country_id"`
	MobileVerified int8   `json:"mobile_verified"`
	Isleak         int8   `json:"isleak"`
	Mtime          string `json:"modify_time"`
}

OriginAsoAccount origin aso account.

type PMsg

type PMsg struct {
	Action string      `json:"action"`
	Table  string      `json:"table"`
	Data   *AsoAccount `json:"data"`
	Flag   int         `json:"flag"`
}

PMsg Push msg

Jump to

Keyboard shortcuts

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