coreV1

package
v0.0.0-...-75939a1 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

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

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Id.ProtoReflect.Descriptor instead.

func (*Id) GetId

func (x *Id) GetId() uint32

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

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) Descriptor() ([]byte, []int)

Deprecated: Use Ids.ProtoReflect.Descriptor instead.

func (*Ids) GetIds

func (x *Ids) GetIds() []uint32

func (*Ids) ProtoMessage

func (*Ids) ProtoMessage()

func (*Ids) ProtoReflect

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

func (*Ids) Reset

func (x *Ids) Reset()

func (*Ids) String

func (x *Ids) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetAuthority

func (x *User) GetAuthority() []string

func (*User) GetCreatedAt

func (x *User) GetCreatedAt() *timestamppb.Timestamp

func (*User) GetId

func (x *User) GetId() uint32

func (*User) GetLastIp

func (x *User) GetLastIp() string

func (*User) GetLastLoginTime

func (x *User) GetLastLoginTime() *timestamppb.Timestamp

func (*User) GetName

func (x *User) GetName() string

func (*User) GetRole

func (x *User) GetRole() string

func (*User) GetUpdatedAt

func (x *User) GetUpdatedAt() *timestamppb.Timestamp

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

Jump to

Keyboard shortcuts

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