reply

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreativeReplyCont

type CreativeReplyCont struct {
	RpID    int64      `json:"-"`
	Message string     `json:"message"`
	Ats     Ints       `json:"ats,omitempty"`
	IP      uint32     `json:"ipi,omitempty"`
	Plat    int8       `json:"plat"`
	Device  string     `json:"device"`
	Version string     `json:"version,omitempty"`
	CTime   xtime.Time `json:"-"`
	MTime   xtime.Time `json:"-"`
	// ats member info
	Members []*reply.Info `json:"members"`
}

CreativeReplyCont str

type Ints

type Ints []int64

Ints be used to MySql\Protobuf varbinary converting.

func (Ints) Bytes

func (is Ints) Bytes() []byte

Bytes marshal int64 slice to bytes,each int64 will occupy Fixed 8 bytes

func (*Ints) Evict

func (is *Ints) Evict(e int64) (ok bool)

Evict get rid of the sepcified num from the slice

func (Ints) Exist

func (is Ints) Exist(i int64) (e bool)

Exist judge the sepcified num is in the slice or not

func (Ints) MarshalTo

func (is Ints) MarshalTo(data []byte) (int, error)

MarshalTo marshal int64 slice to bytes,each int64 will occupy Fixed 8 bytes. if the argument data not supplied with the full size,it will return the actual written size

func (*Ints) Scan

func (is *Ints) Scan(src interface{}) (err error)

Scan parse the data into int64 slice

func (Ints) Size

func (is Ints) Size() int

Size return the total size it will occupy in bytes

func (*Ints) Unmarshal

func (is *Ints) Unmarshal(data []byte) error

Unmarshal parse the data into int64 slice

func (Ints) Value

func (is Ints) Value() (driver.Value, error)

Value marshal int64 slice to driver.Value,each int64 will occupy Fixed 8 bytes

type Reply

type Reply struct {
	RpID      int64      `json:"rpid"`
	Oid       int64      `json:"oid"`
	Type      int8       `json:"type"`
	Mid       int64      `json:"mid"`
	Root      int64      `json:"root"`
	Parent    int64      `json:"parent"`
	Count     int        `json:"count"`
	RCount    int        `json:"rcount"`
	Floor     int        `json:"floor"`
	State     int8       `json:"state"`
	Attr      int8       `json:"attr"`
	CTime     xtime.Time `json:"ctime"`
	MTime     xtime.Time `json:"-"`
	RpIDStr   string     `json:"rpid_str,omitempty"`
	RootStr   string     `json:"root_str,omitempty"`
	ParentStr string     `json:"parent_str,omitempty"`
	// action count, from ReplyAction count
	Like   int  `json:"like"`
	Hate   int  `json:"-"`
	Action int8 `json:"action"`
	// member info
	Member *reply.Info `json:"member"`
	// other
	Content *CreativeReplyCont `json:"content"`
	Replies []*Reply           `json:"replies"`
}

Reply str

Jump to

Keyboard shortcuts

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