Documentation
¶
Index ¶
- Variables
- type Meta
- func (*Meta) Descriptor() ([]byte, []int)deprecated
- func (x *Meta) GetCreateAt() int64
- func (x *Meta) GetId() string
- func (x *Meta) GetUpdateAt() int64
- func (x *Meta) GetUpdateBy() int64
- func (*Meta) ProtoMessage()
- func (x *Meta) ProtoReflect() protoreflect.Message
- func (x *Meta) Reset()
- func (x *Meta) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_common_meta_meta_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Meta ¶
type Meta struct {
// 用户Id, bson标签: 用于控制mongodb里面的对象存储结构 {"_id": "xxx", create_at: ""}, _id: 表示唯一间ID(主键)
// @gotags: bson:"_id" json:"id"
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" bson:"_id"`
// 创建时间
// @gotags: bson:"create_at" json:"create_at"
CreateAt int64 `protobuf:"varint,2,opt,name=create_at,json=createAt,proto3" json:"create_at" bson:"create_at"`
// 更新时间
// @gotags: bson:"update_at" json:"update_at"
UpdateAt int64 `protobuf:"varint,3,opt,name=update_at,json=updateAt,proto3" json:"update_at" bson:"update_at"`
// 更新人
// @gotags: bson:"update_by" json:"update_by"
UpdateBy int64 `protobuf:"varint,4,opt,name=update_by,json=updateBy,proto3" json:"update_by" bson:"update_by"`
// contains filtered or unexported fields
}
func (*Meta) Descriptor
deprecated
func (*Meta) GetCreateAt ¶
func (*Meta) GetUpdateAt ¶
func (*Meta) GetUpdateBy ¶
func (*Meta) ProtoMessage ¶
func (*Meta) ProtoMessage()
func (*Meta) ProtoReflect ¶
func (x *Meta) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.