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

Documentation

Overview

Package model is a generated protocol buffer package.

v0.1.0 收藏夹信息

It is generated from these files:

model.proto

It has these top-level messages:

Field
Fields

Index

Constants

View Source
const (
	// BusinessArchive .
	BusinessArchive = "archive"
	// RankOrderByDesc .
	RankOrderByDesc = "desc"
	// RankOrderByAsc .
	RankOrderByAsc = "asc"
	// SyncInsert .
	SyncInsert = "insert"
	// SyncUpdate .
	SyncUpdate = "update"
	// SyncDelete .
	SyncDelete = "delete"
	// TimeFormat .
	TimeFormat = "2006-01-02 15:04:05"
	// FlagExist .
	FlagExist = true
)

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 ArchiveMeta

type ArchiveMeta struct {
	ID      int64 `json:"id"`
	Aid     int64 `json:"aid"`
	Typeid  int64 `json:"typeid"`
	Pubtime Stime `json:"pubtime"`
	*ArchiveType
	*ArchiveStat
	*ArchiveTv
}

ArchiveMeta .

func (*ArchiveMeta) SetPubtime

func (a *ArchiveMeta) SetPubtime() xtime.Time

SetPubtime .

type ArchiveStat

type ArchiveStat struct {
	ID    int64 `json:"id"`
	Aid   int64 `json:"aid"`
	Click int64 `json:"click"`
}

ArchiveStat .

func (*ArchiveStat) SetClick

func (a *ArchiveStat) SetClick() int

SetClick .

type ArchiveTv

type ArchiveTv struct {
	ID      int64 `json:"id"`
	Aid     int64 `json:"aid"`
	Result  int8  `json:"result"`
	Deleted int8  `json:"deleted"`
	Valid   int8  `json:"valid"`
}

ArchiveTv .

type ArchiveType

type ArchiveType struct {
	ID  int64 `json:"id"`
	Pid int64 `json:"pid"`
}

ArchiveType .

func (*ArchiveType) SetPid

func (a *ArchiveType) SetPid() int16

SetPid .

type CanalMsg

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

CanalMsg .

type DoReq

type DoReq struct {
	Business  string `form:"business" validate:"required"`
	Action    string `form:"action" validate:"required"`
	MinID     int64  `form:"minid"`
	MaxID     int64  `form:"maxid"`
	BeginTime string `form:"begintime"`
	EndTime   string `form:"endtime"`
}

DoReq .

type Field

type Field struct {
	Flag    bool                        `protobuf:"varint,1,opt,name=Flag,proto3" json:"flag"`
	Oid     int64                       `protobuf:"varint,2,opt,name=Oid,proto3" json:"oid"`
	Pid     int16                       `protobuf:"varint,3,opt,name=Pid,proto3,casttype=int16" json:"pid"`
	Click   int                         `protobuf:"varint,4,opt,name=Click,proto3,casttype=int" json:"click"`
	Pubtime go_common_library_time.Time `protobuf:"varint,5,opt,name=Pubtime,proto3,casttype=go-common/library/time.Time" json:"pubtime"`
	Result  int8                        `protobuf:"varint,6,opt,name=Result,proto3,casttype=int8" json:"result"`
	Deleted int8                        `protobuf:"varint,7,opt,name=Deleted,proto3,casttype=int8" json:"deleted"`
	Valid   int8                        `protobuf:"varint,8,opt,name=Valid,proto3,casttype=int8" json:"valid"`
}

func (*Field) Descriptor

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

func (*Field) Marshal

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

func (*Field) MarshalTo

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

func (*Field) ProtoMessage

func (*Field) ProtoMessage()

func (*Field) Reset

func (m *Field) Reset()

func (*Field) Size

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

func (*Field) String

func (this *Field) String() string

func (*Field) Unmarshal

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

type Fields

type Fields struct {
	Fields []*Field `protobuf:"bytes,1,rep,name=Fields" json:"Fields,omitempty"`
}

func (*Fields) Descriptor

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

func (*Fields) Marshal

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

func (*Fields) MarshalTo

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

func (*Fields) ProtoMessage

func (*Fields) ProtoMessage()

func (*Fields) Reset

func (m *Fields) Reset()

func (*Fields) Size

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

func (*Fields) String

func (this *Fields) String() string

func (*Fields) Unmarshal

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

type Group

type Group struct {
	Key   string `json:"key"`
	Count int    `json:"count"`
}

Group .

type GroupReq

type GroupReq struct {
	Business string  `form:"business" validate:"required"`
	Field    string  `form:"field" validate:"required"`
	Oids     []int64 `form:"Oids,split" validate:"required"`
}

GroupReq .

type GroupResp

type GroupResp struct {
	List []*Group `json:"list"`
}

GroupResp .

type MgetReq

type MgetReq struct {
	Business string  `form:"business" validate:"required"`
	Oids     []int64 `form:"oids,split" validate:"required"`
}

MgetReq .

type MgetResp

type MgetResp struct {
	List map[int64]*Field `json:"list"`
}

MgetResp resp of mget

type Page

type Page struct {
	Pn    int `json:"pn"`
	Ps    int `json:"ps"`
	Total int `json:"total"`
}

Page Pager

type SortReq

type SortReq struct {
	Business string            `form:"business" validate:"required"`
	Field    string            `form:"field" validate:"required"`
	Order    string            `form:"order" validate:"required"`
	Filters  map[string]string `form:"filters" validate:"required"`
	Oids     []int64           `form:"oids,split" validate:"required"`
	Pn       int               `form:"pn"`
	Ps       int               `form:"ps"`
}

SortReq .

type SortResp

type SortResp struct {
	Result []int64 `json:"result"`
	Page   *Page   `json:"page"`
}

SortResp .

type StatViewMsg

type StatViewMsg struct {
	Type      string `json:"type"`
	ID        int64  `json:"id"`
	Count     int    `json:"count"`
	Timestamp int64  `json:"timestamp"`
}

StatViewMsg .

type Stime

type Stime int64

Stime .

func (*Stime) Scan

func (st *Stime) Scan(src interface{}) (err error)

Scan scan time.

func (*Stime) UnmarshalJSON

func (st *Stime) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface.

func (Stime) Value

func (st Stime) Value() (driver.Value, error)

Value get time value.

Jump to

Keyboard shortcuts

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