Documentation ¶
Index ¶
- Variables
- type Empty
- type Id
- type Ids
- type ListOption
- func (*ListOption) Descriptor() ([]byte, []int)deprecated
- func (x *ListOption) GetOrderDesc() bool
- func (x *ListOption) GetOrderField() string
- func (x *ListOption) GetPage() uint32
- func (x *ListOption) GetPageSize() uint32
- func (*ListOption) ProtoMessage()
- func (x *ListOption) ProtoReflect() protoreflect.Message
- func (x *ListOption) Reset()
- func (x *ListOption) String() string
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetAuthority() []string
- func (x *User) GetCreatedAt() *timestamppb.Timestamp
- func (x *User) GetId() uint32
- func (x *User) GetLastIp() string
- func (x *User) GetLastLoginTime() *timestamppb.Timestamp
- func (x *User) GetName() string
- func (x *User) GetRole() string
- func (x *User) GetUpdatedAt() *timestamppb.Timestamp
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_api_core_v1_core_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
空消息
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type Id ¶
type Id struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
id
func (*Id) Descriptor
deprecated
func (*Id) ProtoMessage ¶
func (*Id) ProtoMessage()
func (*Id) ProtoReflect ¶
func (x *Id) ProtoReflect() protoreflect.Message
type Ids ¶
type Ids struct { Ids []uint32 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"` // contains filtered or unexported fields }
func (*Ids) Descriptor
deprecated
func (*Ids) ProtoMessage ¶
func (*Ids) ProtoMessage()
func (*Ids) ProtoReflect ¶
func (x *Ids) ProtoReflect() protoreflect.Message
type ListOption ¶
type ListOption struct { // 排序字段 OrderField string `protobuf:"bytes,96,opt,name=order_field,json=orderField,proto3" json:"order_field,omitempty"` // 是否倒序 true desc false asc OrderDesc bool `protobuf:"varint,97,opt,name=order_desc,json=orderDesc,proto3" json:"order_desc,omitempty"` // 页码 Page uint32 `protobuf:"varint,98,opt,name=page,proto3" json:"page,omitempty"` // 分页大小 PageSize uint32 `protobuf:"varint,99,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // contains filtered or unexported fields }
列表公用查询条件
func (*ListOption) Descriptor
deprecated
func (*ListOption) Descriptor() ([]byte, []int)
Deprecated: Use ListOption.ProtoReflect.Descriptor instead.
func (*ListOption) GetOrderDesc ¶
func (x *ListOption) GetOrderDesc() bool
func (*ListOption) GetOrderField ¶
func (x *ListOption) GetOrderField() string
func (*ListOption) GetPage ¶
func (x *ListOption) GetPage() uint32
func (*ListOption) GetPageSize ¶
func (x *ListOption) GetPageSize() uint32
func (*ListOption) ProtoMessage ¶
func (*ListOption) ProtoMessage()
func (*ListOption) ProtoReflect ¶
func (x *ListOption) ProtoReflect() protoreflect.Message
func (*ListOption) Reset ¶
func (x *ListOption) Reset()
func (*ListOption) String ¶
func (x *ListOption) String() string
type User ¶
type User struct { // 用户id Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 名称 Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // 最后记录ip LastIp string `protobuf:"bytes,3,opt,name=last_ip,json=lastIp,proto3" json:"last_ip,omitempty"` // 最后登陆时间 LastLoginTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=last_login_time,json=lastLoginTime,proto3" json:"last_login_time,omitempty"` // 角色 Role string `protobuf:"bytes,5,opt,name=role,proto3" json:"role,omitempty"` // 权限列表 Authority []string `protobuf:"bytes,6,rep,name=authority,proto3" json:"authority,omitempty"` // 创建时间 CreatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // 更新时间 UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // contains filtered or unexported fields }
用户信息
func (*User) Descriptor
deprecated
func (*User) GetAuthority ¶
func (*User) GetCreatedAt ¶
func (x *User) GetCreatedAt() *timestamppb.Timestamp
func (*User) GetLastLoginTime ¶
func (x *User) GetLastLoginTime() *timestamppb.Timestamp
func (*User) GetUpdatedAt ¶
func (x *User) GetUpdatedAt() *timestamppb.Timestamp
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.