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: 6 Imported by: 0

Documentation

Overview

Package model is a generated protocol buffer package.

It is generated from these files:

model.proto

It has these top-level messages:

Perm

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthModel = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowModel   = fmt.Errorf("proto: integer overflow")
)

Functions

This section is empty.

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.

type BMsg

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

BMsg databus binlog message.

type Info

type Info struct {
	Mid   int64  `json:"mid"`
	Uname string `json:"uname"`
	Face  string `json:"face"`
	Email string `json:"email"`
	Tel   string `json:"tel"`
}

Info account info.

func (*Info) Equals

func (m *Info) Equals(other *Info) bool

Equals check info equals.

type OriginAsoAccount

type OriginAsoAccount struct {
	Mid   int64  `json:"mid"`
	Uname string `json:"uname"`
	Mtime string `json:"modify_time"`
}

OriginAsoAccount origin aso account.

type OriginMember

type OriginMember struct {
	Mid   int64  `json:"mid"`
	Face  string `json:"face"`
	Mtime string `json:"modify_time"`
}

OriginMember origin member.

type OriginPerm

type OriginPerm struct {
	Mid          int64  `json:"mid"`
	AppID        int32  `json:"appid"`
	AppSubID     int32  `json:"app_subid"`
	AccessToken  string `json:"access_token"`
	RefreshToken string `json:"refresh_token"`
	CreateAt     int64  `json:"create_at"`
	Expires      int64  `json:"expires"`
	Ctime        string `json:"ctime"`
	Mtime        string `json:"mtime"`
}

OriginPerm origin token.

type PMsg

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

PMsg Push msg

type Perm

type Perm struct {
	Mid          int64  `protobuf:"varint,1,opt,name=Mid,proto3" json:"mid"`
	AppID        int32  `protobuf:"varint,2,opt,name=AppID,proto3" json:"appid"`
	AppSubID     int32  `protobuf:"varint,3,opt,name=AppSubID,proto3" json:"app_subid"`
	AccessToken  string `protobuf:"bytes,4,opt,name=AccessToken,proto3" json:"access_token"`
	RefreshToken string `protobuf:"bytes,5,opt,name=RefreshToken,proto3" json:"refresh_token"`
	CreateAt     int64  `protobuf:"varint,6,opt,name=CreateAt,proto3" json:"create_at"`
	Expires      int64  `protobuf:"varint,7,opt,name=Expires,proto3" json:"expires"`
}

Perm token.

func (*Perm) Descriptor

func (*Perm) Descriptor() ([]byte, []int)

func (*Perm) Equals

func (m *Perm) Equals(other *Perm) bool

Equals check perm equals, check all non primary key fields exclude create_at.

func (*Perm) GetAccessToken

func (m *Perm) GetAccessToken() string

func (*Perm) GetAppID

func (m *Perm) GetAppID() int32

func (*Perm) GetAppSubID

func (m *Perm) GetAppSubID() int32

func (*Perm) GetCreateAt

func (m *Perm) GetCreateAt() int64

func (*Perm) GetExpires

func (m *Perm) GetExpires() int64

func (*Perm) GetMid

func (m *Perm) GetMid() int64

func (*Perm) GetRefreshToken

func (m *Perm) GetRefreshToken() string

func (*Perm) Marshal

func (m *Perm) Marshal() (dAtA []byte, err error)

func (*Perm) MarshalTo

func (m *Perm) MarshalTo(dAtA []byte) (int, error)

func (*Perm) ProtoMessage

func (*Perm) ProtoMessage()

func (*Perm) Reset

func (m *Perm) Reset()

func (*Perm) Size

func (m *Perm) Size() (n int)

func (*Perm) String

func (m *Perm) String() string

func (*Perm) Unmarshal

func (m *Perm) Unmarshal(dAtA []byte) error

Jump to

Keyboard shortcuts

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