dt

package
v0.0.0-...-e120e2b Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2023 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RoleSuper = Role("super")
	RoleAdmin = Role("admin")
)

Variables

View Source
var File_juxuny_yc_dt_base_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Error

type Error struct {
	Code int64             `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Msg  string            `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	Data map[string]string `` /* 149-byte string literal not displayed */
	// contains filtered or unexported fields
}

func FromError

func FromError(err errors.Error) *Error

func (*Error) Clone

func (m *Error) Clone() *Error

func (*Error) Descriptor deprecated

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

Deprecated: Use Error.ProtoReflect.Descriptor instead.

func (*Error) Error

func (m *Error) Error() errors.Error

func (*Error) GetCode

func (x *Error) GetCode() int64

func (*Error) GetData

func (x *Error) GetData() map[string]string

func (*Error) GetMsg

func (x *Error) GetMsg() string

func (*Error) ProtoMessage

func (*Error) ProtoMessage()

func (*Error) ProtoReflect

func (x *Error) ProtoReflect() protoreflect.Message

func (*Error) Reset

func (x *Error) Reset()

func (*Error) String

func (x *Error) String() string

type ID

type ID struct {
	Valid  bool   `protobuf:"varint,1,opt,name=valid,proto3" json:"valid,omitempty"`
	Uint64 uint64 `protobuf:"varint,2,opt,name=uint64,proto3" json:"uint64,omitempty"`
	// contains filtered or unexported fields
}

func InvalidID

func InvalidID() ID

func InvalidIDPointer

func InvalidIDPointer() *ID

func NewID

func NewID(id uint64) ID

func NewIDPointer

func NewIDPointer(id uint64) *ID

func (*ID) Clone

func (m *ID) Clone() *ID

func (*ID) Descriptor deprecated

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

Deprecated: Use ID.ProtoReflect.Descriptor instead.

func (*ID) Equal

func (m *ID) Equal(id *ID) bool

func (*ID) GetUint64

func (x *ID) GetUint64() uint64

func (*ID) GetValid

func (x *ID) GetValid() bool

func (*ID) MarshalJSON

func (m *ID) MarshalJSON() (data []byte, err error)

func (*ID) NewPointer

func (m *ID) NewPointer() *ID

func (*ID) NumberAsString

func (m *ID) NumberAsString() string

func (*ID) ProtoMessage

func (*ID) ProtoMessage()

func (*ID) ProtoReflect

func (x *ID) ProtoReflect() protoreflect.Message

func (*ID) Reset

func (x *ID) Reset()

func (*ID) String

func (x *ID) String() string

func (*ID) UnmarshalJSON

func (m *ID) UnmarshalJSON(data []byte) error

type NullBool

type NullBool struct {
	Valid bool `protobuf:"varint,1,opt,name=valid,proto3" json:"valid,omitempty"`
	Bool  bool `protobuf:"varint,2,opt,name=bool,proto3" json:"bool,omitempty"`
	// contains filtered or unexported fields
}

func (*NullBool) Clone

func (m *NullBool) Clone() *NullBool

func (*NullBool) Descriptor deprecated

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

Deprecated: Use NullBool.ProtoReflect.Descriptor instead.

func (*NullBool) Equal

func (m *NullBool) Equal(input *NullBool) bool

func (*NullBool) GetBool

func (x *NullBool) GetBool() bool

func (*NullBool) GetValid

func (x *NullBool) GetValid() bool

func (*NullBool) MarshalJSON

func (m *NullBool) MarshalJSON() (data []byte, err error)

func (*NullBool) ProtoMessage

func (*NullBool) ProtoMessage()

func (*NullBool) ProtoReflect

func (x *NullBool) ProtoReflect() protoreflect.Message

func (*NullBool) Reset

func (x *NullBool) Reset()

func (*NullBool) String

func (x *NullBool) String() string

func (*NullBool) UnmarshalJSON

func (m *NullBool) UnmarshalJSON(data []byte) error

type NullFloat32

type NullFloat32 struct {
	Valid   bool    `protobuf:"varint,1,opt,name=valid,proto3" json:"valid,omitempty"`
	Float32 float32 `protobuf:"fixed32,2,opt,name=float32,proto3" json:"float32,omitempty"`
	// contains filtered or unexported fields
}

func (*NullFloat32) Clone

func (m *NullFloat32) Clone() *NullFloat32

func (*NullFloat32) Descriptor deprecated

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

Deprecated: Use NullFloat32.ProtoReflect.Descriptor instead.

func (*NullFloat32) Equal

func (m *NullFloat32) Equal(input *NullFloat32) bool

func (*NullFloat32) GetFloat32

func (x *NullFloat32) GetFloat32() float32

func (*NullFloat32) GetValid

func (x *NullFloat32) GetValid() bool

func (*NullFloat32) MarshalJSON

func (m *NullFloat32) MarshalJSON() (data []byte, err error)

func (*NullFloat32) ProtoMessage

func (*NullFloat32) ProtoMessage()

func (*NullFloat32) ProtoReflect

func (x *NullFloat32) ProtoReflect() protoreflect.Message

func (*NullFloat32) Reset

func (x *NullFloat32) Reset()

func (*NullFloat32) String

func (x *NullFloat32) String() string

func (*NullFloat32) UnmarshalJSON

func (m *NullFloat32) UnmarshalJSON(data []byte) error

type NullFloat64

type NullFloat64 struct {
	Valid   bool    `protobuf:"varint,1,opt,name=valid,proto3" json:"valid,omitempty"`
	Float64 float64 `protobuf:"fixed64,2,opt,name=float64,proto3" json:"float64,omitempty"`
	// contains filtered or unexported fields
}

func (*NullFloat64) Clone

func (m *NullFloat64) Clone() *NullFloat64

func (*NullFloat64) Descriptor deprecated

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

Deprecated: Use NullFloat64.ProtoReflect.Descriptor instead.

func (*NullFloat64) Equal

func (m *NullFloat64) Equal(input *NullFloat64) bool

func (*NullFloat64) GetFloat64

func (x *NullFloat64) GetFloat64() float64

func (*NullFloat64) GetValid

func (x *NullFloat64) GetValid() bool

func (*NullFloat64) MarshalJSON

func (m *NullFloat64) MarshalJSON() (data []byte, err error)

func (*NullFloat64) ProtoMessage

func (*NullFloat64) ProtoMessage()

func (*NullFloat64) ProtoReflect

func (x *NullFloat64) ProtoReflect() protoreflect.Message

func (*NullFloat64) Reset

func (x *NullFloat64) Reset()

func (*NullFloat64) String

func (x *NullFloat64) String() string

func (*NullFloat64) UnmarshalJSON

func (m *NullFloat64) UnmarshalJSON(data []byte) error

type NullInt32

type NullInt32 struct {
	Valid bool  `protobuf:"varint,1,opt,name=valid,proto3" json:"valid,omitempty"`
	Int32 int32 `protobuf:"varint,2,opt,name=int32,proto3" json:"int32,omitempty"`
	// contains filtered or unexported fields
}

func (*NullInt32) Clone

func (m *NullInt32) Clone() *NullInt32

func (*NullInt32) Descriptor deprecated

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

Deprecated: Use NullInt32.ProtoReflect.Descriptor instead.

func (*NullInt32) Equal

func (m *NullInt32) Equal(id *NullInt32) bool

func (*NullInt32) GetInt32

func (x *NullInt32) GetInt32() int32

func (*NullInt32) GetValid

func (x *NullInt32) GetValid() bool

func (*NullInt32) MarshalJSON

func (m *NullInt32) MarshalJSON() (data []byte, err error)

func (*NullInt32) ProtoMessage

func (*NullInt32) ProtoMessage()

func (*NullInt32) ProtoReflect

func (x *NullInt32) ProtoReflect() protoreflect.Message

func (*NullInt32) Reset

func (x *NullInt32) Reset()

func (*NullInt32) String

func (x *NullInt32) String() string

func (*NullInt32) UnmarshalJSON

func (m *NullInt32) UnmarshalJSON(data []byte) error

type NullInt64

type NullInt64 struct {
	Valid bool  `protobuf:"varint,1,opt,name=valid,proto3" json:"valid,omitempty"`
	Int64 int64 `protobuf:"varint,2,opt,name=int64,proto3" json:"int64,omitempty"`
	// contains filtered or unexported fields
}

func (*NullInt64) Clone

func (m *NullInt64) Clone() *NullInt64

func (*NullInt64) Descriptor deprecated

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

Deprecated: Use NullInt64.ProtoReflect.Descriptor instead.

func (*NullInt64) Equal

func (m *NullInt64) Equal(id *NullInt64) bool

func (*NullInt64) GetInt64

func (x *NullInt64) GetInt64() int64

func (*NullInt64) GetValid

func (x *NullInt64) GetValid() bool

func (*NullInt64) MarshalJSON

func (m *NullInt64) MarshalJSON() (data []byte, err error)

func (*NullInt64) ProtoMessage

func (*NullInt64) ProtoMessage()

func (*NullInt64) ProtoReflect

func (x *NullInt64) ProtoReflect() protoreflect.Message

func (*NullInt64) Reset

func (x *NullInt64) Reset()

func (*NullInt64) String

func (x *NullInt64) String() string

func (*NullInt64) UnmarshalJSON

func (m *NullInt64) UnmarshalJSON(data []byte) error

type NullString

type NullString struct {
	Valid   bool   `protobuf:"varint,1,opt,name=valid,proto3" json:"valid,omitempty"`
	String_ string `protobuf:"bytes,2,opt,name=string,proto3" json:"string,omitempty"`
	// contains filtered or unexported fields
}

func (*NullString) Clone

func (m *NullString) Clone() *NullString

func (*NullString) Descriptor deprecated

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

Deprecated: Use NullString.ProtoReflect.Descriptor instead.

func (*NullString) GetString_

func (x *NullString) GetString_() string

func (*NullString) GetValid

func (x *NullString) GetValid() bool

func (*NullString) ProtoMessage

func (*NullString) ProtoMessage()

func (*NullString) ProtoReflect

func (x *NullString) ProtoReflect() protoreflect.Message

func (*NullString) Reset

func (x *NullString) Reset()

func (*NullString) String

func (x *NullString) String() string

type Pagination

type Pagination struct {
	PageNum  int64 `protobuf:"varint,1,opt,name=pageNum,proto3" json:"pageNum,omitempty"`
	PageSize int64 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
	// contains filtered or unexported fields
}

func (*Pagination) Clone

func (m *Pagination) Clone() *Pagination

func (*Pagination) Descriptor deprecated

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

Deprecated: Use Pagination.ProtoReflect.Descriptor instead.

func (*Pagination) GetPageNum

func (x *Pagination) GetPageNum() int64

func (*Pagination) GetPageSize

func (x *Pagination) GetPageSize() int64

func (*Pagination) ProtoMessage

func (*Pagination) ProtoMessage()

func (*Pagination) ProtoReflect

func (x *Pagination) ProtoReflect() protoreflect.Message

func (*Pagination) Reset

func (x *Pagination) Reset()

func (*Pagination) String

func (x *Pagination) String() string

func (*Pagination) ToResp

func (m *Pagination) ToResp(total int64) PaginationResp

func (*Pagination) ToRespPointer

func (m *Pagination) ToRespPointer(total int64) *PaginationResp

type PaginationResp

type PaginationResp struct {
	PageNum  int64 `protobuf:"varint,1,opt,name=pageNum,proto3" json:"pageNum,omitempty"`
	PageSize int64 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
	Total    int64 `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*PaginationResp) Clone

func (m *PaginationResp) Clone() *PaginationResp

func (*PaginationResp) Descriptor deprecated

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

Deprecated: Use PaginationResp.ProtoReflect.Descriptor instead.

func (*PaginationResp) GetPageNum

func (x *PaginationResp) GetPageNum() int64

func (*PaginationResp) GetPageSize

func (x *PaginationResp) GetPageSize() int64

func (*PaginationResp) GetTotal

func (x *PaginationResp) GetTotal() int64

func (*PaginationResp) ProtoMessage

func (*PaginationResp) ProtoMessage()

func (*PaginationResp) ProtoReflect

func (x *PaginationResp) ProtoReflect() protoreflect.Message

func (*PaginationResp) Reset

func (x *PaginationResp) Reset()

func (*PaginationResp) String

func (x *PaginationResp) String() string

type Role

type Role string

func (Role) String

func (t Role) String() string

Jump to

Keyboard shortcuts

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