Documentation ¶
Index ¶
- Constants
- Variables
- type Error
- func (m *Error) Clone() *Error
- func (*Error) Descriptor() ([]byte, []int)deprecated
- func (m *Error) Error() errors.Error
- func (x *Error) GetCode() int64
- func (x *Error) GetData() map[string]string
- func (x *Error) GetMsg() string
- func (*Error) ProtoMessage()
- func (x *Error) ProtoReflect() protoreflect.Message
- func (x *Error) Reset()
- func (x *Error) String() string
- type ID
- func (m *ID) Clone() *ID
- func (*ID) Descriptor() ([]byte, []int)deprecated
- func (m *ID) Equal(id *ID) bool
- func (x *ID) GetUint64() uint64
- func (x *ID) GetValid() bool
- func (m *ID) MarshalJSON() (data []byte, err error)
- func (m *ID) NewPointer() *ID
- func (m *ID) NumberAsString() string
- func (*ID) ProtoMessage()
- func (x *ID) ProtoReflect() protoreflect.Message
- func (x *ID) Reset()
- func (x *ID) String() string
- func (m *ID) UnmarshalJSON(data []byte) error
- type NullBool
- func (m *NullBool) Clone() *NullBool
- func (*NullBool) Descriptor() ([]byte, []int)deprecated
- func (m *NullBool) Equal(input *NullBool) bool
- func (x *NullBool) GetBool() bool
- func (x *NullBool) GetValid() bool
- func (m *NullBool) MarshalJSON() (data []byte, err error)
- func (*NullBool) ProtoMessage()
- func (x *NullBool) ProtoReflect() protoreflect.Message
- func (x *NullBool) Reset()
- func (x *NullBool) String() string
- func (m *NullBool) UnmarshalJSON(data []byte) error
- type NullFloat32
- func (m *NullFloat32) Clone() *NullFloat32
- func (*NullFloat32) Descriptor() ([]byte, []int)deprecated
- func (m *NullFloat32) Equal(input *NullFloat32) bool
- func (x *NullFloat32) GetFloat32() float32
- func (x *NullFloat32) GetValid() bool
- func (m *NullFloat32) MarshalJSON() (data []byte, err error)
- func (*NullFloat32) ProtoMessage()
- func (x *NullFloat32) ProtoReflect() protoreflect.Message
- func (x *NullFloat32) Reset()
- func (x *NullFloat32) String() string
- func (m *NullFloat32) UnmarshalJSON(data []byte) error
- type NullFloat64
- func (m *NullFloat64) Clone() *NullFloat64
- func (*NullFloat64) Descriptor() ([]byte, []int)deprecated
- func (m *NullFloat64) Equal(input *NullFloat64) bool
- func (x *NullFloat64) GetFloat64() float64
- func (x *NullFloat64) GetValid() bool
- func (m *NullFloat64) MarshalJSON() (data []byte, err error)
- func (*NullFloat64) ProtoMessage()
- func (x *NullFloat64) ProtoReflect() protoreflect.Message
- func (x *NullFloat64) Reset()
- func (x *NullFloat64) String() string
- func (m *NullFloat64) UnmarshalJSON(data []byte) error
- type NullInt32
- func (m *NullInt32) Clone() *NullInt32
- func (*NullInt32) Descriptor() ([]byte, []int)deprecated
- func (m *NullInt32) Equal(id *NullInt32) bool
- func (x *NullInt32) GetInt32() int32
- func (x *NullInt32) GetValid() bool
- func (m *NullInt32) MarshalJSON() (data []byte, err error)
- func (*NullInt32) ProtoMessage()
- func (x *NullInt32) ProtoReflect() protoreflect.Message
- func (x *NullInt32) Reset()
- func (x *NullInt32) String() string
- func (m *NullInt32) UnmarshalJSON(data []byte) error
- type NullInt64
- func (m *NullInt64) Clone() *NullInt64
- func (*NullInt64) Descriptor() ([]byte, []int)deprecated
- func (m *NullInt64) Equal(id *NullInt64) bool
- func (x *NullInt64) GetInt64() int64
- func (x *NullInt64) GetValid() bool
- func (m *NullInt64) MarshalJSON() (data []byte, err error)
- func (*NullInt64) ProtoMessage()
- func (x *NullInt64) ProtoReflect() protoreflect.Message
- func (x *NullInt64) Reset()
- func (x *NullInt64) String() string
- func (m *NullInt64) UnmarshalJSON(data []byte) error
- type NullString
- func (m *NullString) Clone() *NullString
- func (*NullString) Descriptor() ([]byte, []int)deprecated
- func (x *NullString) GetString_() string
- func (x *NullString) GetValid() bool
- func (*NullString) ProtoMessage()
- func (x *NullString) ProtoReflect() protoreflect.Message
- func (x *NullString) Reset()
- func (x *NullString) String() string
- type Pagination
- func (m *Pagination) Clone() *Pagination
- func (*Pagination) Descriptor() ([]byte, []int)deprecated
- func (x *Pagination) GetPageNum() int64
- func (x *Pagination) GetPageSize() int64
- func (*Pagination) ProtoMessage()
- func (x *Pagination) ProtoReflect() protoreflect.Message
- func (x *Pagination) Reset()
- func (x *Pagination) String() string
- func (m *Pagination) ToResp(total int64) PaginationResp
- func (m *Pagination) ToRespPointer(total int64) *PaginationResp
- type PaginationResp
- func (m *PaginationResp) Clone() *PaginationResp
- func (*PaginationResp) Descriptor() ([]byte, []int)deprecated
- func (x *PaginationResp) GetPageNum() int64
- func (x *PaginationResp) GetPageSize() int64
- func (x *PaginationResp) GetTotal() int64
- func (*PaginationResp) ProtoMessage()
- func (x *PaginationResp) ProtoReflect() protoreflect.Message
- func (x *PaginationResp) Reset()
- func (x *PaginationResp) String() string
- type Role
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 (*Error) Descriptor
deprecated
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
func (*Error) ProtoReflect ¶
func (x *Error) ProtoReflect() protoreflect.Message
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 InvalidIDPointer ¶
func InvalidIDPointer() *ID
func NewIDPointer ¶
func (*ID) Descriptor
deprecated
func (*ID) MarshalJSON ¶
func (*ID) NewPointer ¶
func (*ID) NumberAsString ¶
func (*ID) ProtoMessage ¶
func (*ID) ProtoMessage()
func (*ID) ProtoReflect ¶
func (x *ID) ProtoReflect() protoreflect.Message
func (*ID) UnmarshalJSON ¶
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) Descriptor
deprecated
func (*NullBool) MarshalJSON ¶
func (*NullBool) ProtoMessage ¶
func (*NullBool) ProtoMessage()
func (*NullBool) ProtoReflect ¶
func (x *NullBool) ProtoReflect() protoreflect.Message
func (*NullBool) UnmarshalJSON ¶
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) Descriptor
deprecated
func (*NullInt32) MarshalJSON ¶
func (*NullInt32) ProtoMessage ¶
func (*NullInt32) ProtoMessage()
func (*NullInt32) ProtoReflect ¶
func (x *NullInt32) ProtoReflect() protoreflect.Message
func (*NullInt32) UnmarshalJSON ¶
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) Descriptor
deprecated
func (*NullInt64) MarshalJSON ¶
func (*NullInt64) ProtoMessage ¶
func (*NullInt64) ProtoMessage()
func (*NullInt64) ProtoReflect ¶
func (x *NullInt64) ProtoReflect() protoreflect.Message
func (*NullInt64) UnmarshalJSON ¶
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
Click to show internal directories.
Click to hide internal directories.