Documentation ¶
Index ¶
- Variables
- type BasicAsset
- func (*BasicAsset) Descriptor() ([]byte, []int)deprecated
- func (x *BasicAsset) GetAssetComposition() map[string]*BasicAsset
- func (x *BasicAsset) GetAssetDesc() string
- func (x *BasicAsset) GetAssetId() int64
- func (x *BasicAsset) GetAssetName() string
- func (m *BasicAsset) GetAssetNum() isBasicAsset_AssetNum
- func (x *BasicAsset) GetAssetNumInt() int64
- func (x *BasicAsset) GetAssetNumStr() string
- func (x *BasicAsset) GetAssetOwner() *owner.Owner
- func (x *BasicAsset) GetAssetPrice() int64
- func (x *BasicAsset) GetAssetStatus() BasicAsset_AssetStatus
- func (x *BasicAsset) GetDetails() []*anypb.Any
- func (*BasicAsset) ProtoMessage()
- func (x *BasicAsset) ProtoReflect() protoreflect.Message
- func (x *BasicAsset) Reset()
- func (x *BasicAsset) String() string
- type BasicAsset_AssetNumInt
- type BasicAsset_AssetNumStr
- type BasicAsset_AssetStatus
- func (BasicAsset_AssetStatus) Descriptor() protoreflect.EnumDescriptor
- func (x BasicAsset_AssetStatus) Enum() *BasicAsset_AssetStatus
- func (BasicAsset_AssetStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x BasicAsset_AssetStatus) Number() protoreflect.EnumNumber
- func (x BasicAsset_AssetStatus) String() string
- func (BasicAsset_AssetStatus) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BasicAsset_AssetStatus_name = map[int32]string{ 0: "UNKNOWN", 1: "REGISTERING", 2: "REGISTERED", -1: "ERR_REGISTER", 3: "CHANGING", 4: "CHANGED", -3: "ERR_CHANGE", 5: "FREEZING", 6: "FROZEN", -5: "ERR_FREEZE", } BasicAsset_AssetStatus_value = map[string]int32{ "UNKNOWN": 0, "REGISTERING": 1, "REGISTERED": 2, "ERR_REGISTER": -1, "CHANGING": 3, "CHANGED": 4, "ERR_CHANGE": -3, "FREEZING": 5, "FROZEN": 6, "ERR_FREEZE": -5, } )
Enum value maps for BasicAsset_AssetStatus.
View Source
var File_asset_basic_asset_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type BasicAsset ¶
type BasicAsset struct { AssetId int64 `protobuf:"varint,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` AssetName string `protobuf:"bytes,2,opt,name=asset_name,json=assetName,proto3" json:"asset_name,omitempty"` AssetPrice int64 `protobuf:"varint,3,opt,name=asset_price,json=assetPrice,proto3" json:"asset_price,omitempty"` // 注意这里引用owner.proto中的Owner时,前面要加上它的包名owner AssetOwner *owner.Owner `protobuf:"bytes,4,opt,name=asset_owner,json=assetOwner,proto3" json:"asset_owner,omitempty"` AssetDesc string `protobuf:"bytes,16,opt,name=asset_desc,json=assetDesc,proto3" json:"asset_desc,omitempty"` // oneof,只有一个字段会被实际使用 // // Types that are assignable to AssetNum: // *BasicAsset_AssetNumStr // *BasicAsset_AssetNumInt AssetNum isBasicAsset_AssetNum `protobuf_oneof:"asset_num"` // 集合字段 Details []*anypb.Any `protobuf:"bytes,19,rep,name=details,proto3" json:"details,omitempty"` AssetStatus BasicAsset_AssetStatus `` /* 129-byte string literal not displayed */ // 资产构成 AssetComposition map[string]*BasicAsset `` /* 198-byte string literal not displayed */ // contains filtered or unexported fields }
BasicAsset 基础资产
func (*BasicAsset) Descriptor
deprecated
func (*BasicAsset) Descriptor() ([]byte, []int)
Deprecated: Use BasicAsset.ProtoReflect.Descriptor instead.
func (*BasicAsset) GetAssetComposition ¶
func (x *BasicAsset) GetAssetComposition() map[string]*BasicAsset
func (*BasicAsset) GetAssetDesc ¶
func (x *BasicAsset) GetAssetDesc() string
func (*BasicAsset) GetAssetId ¶
func (x *BasicAsset) GetAssetId() int64
func (*BasicAsset) GetAssetName ¶
func (x *BasicAsset) GetAssetName() string
func (*BasicAsset) GetAssetNum ¶
func (m *BasicAsset) GetAssetNum() isBasicAsset_AssetNum
func (*BasicAsset) GetAssetNumInt ¶
func (x *BasicAsset) GetAssetNumInt() int64
func (*BasicAsset) GetAssetNumStr ¶
func (x *BasicAsset) GetAssetNumStr() string
func (*BasicAsset) GetAssetOwner ¶
func (x *BasicAsset) GetAssetOwner() *owner.Owner
func (*BasicAsset) GetAssetPrice ¶
func (x *BasicAsset) GetAssetPrice() int64
func (*BasicAsset) GetAssetStatus ¶
func (x *BasicAsset) GetAssetStatus() BasicAsset_AssetStatus
func (*BasicAsset) GetDetails ¶
func (x *BasicAsset) GetDetails() []*anypb.Any
func (*BasicAsset) ProtoMessage ¶
func (*BasicAsset) ProtoMessage()
func (*BasicAsset) ProtoReflect ¶
func (x *BasicAsset) ProtoReflect() protoreflect.Message
func (*BasicAsset) Reset ¶
func (x *BasicAsset) Reset()
func (*BasicAsset) String ¶
func (x *BasicAsset) String() string
type BasicAsset_AssetNumInt ¶
type BasicAsset_AssetNumInt struct {
AssetNumInt int64 `protobuf:"varint,18,opt,name=asset_num_int,json=assetNumInt,proto3,oneof"`
}
type BasicAsset_AssetNumStr ¶
type BasicAsset_AssetNumStr struct {
AssetNumStr string `protobuf:"bytes,17,opt,name=asset_num_str,json=assetNumStr,proto3,oneof"`
}
type BasicAsset_AssetStatus ¶
type BasicAsset_AssetStatus int32
资产状态,枚举字段
const ( // 未知状态 BasicAsset_UNKNOWN BasicAsset_AssetStatus = 0 // 注册中 BasicAsset_REGISTERING BasicAsset_AssetStatus = 1 // 已注册 BasicAsset_REGISTERED BasicAsset_AssetStatus = 2 // 注册失败 BasicAsset_ERR_REGISTER BasicAsset_AssetStatus = -1 // 变更中 BasicAsset_CHANGING BasicAsset_AssetStatus = 3 // 已变更 BasicAsset_CHANGED BasicAsset_AssetStatus = 4 // 变更失败 BasicAsset_ERR_CHANGE BasicAsset_AssetStatus = -3 // 冻结中 BasicAsset_FREEZING BasicAsset_AssetStatus = 5 // 已冻结 BasicAsset_FROZEN BasicAsset_AssetStatus = 6 // 冻结失败 BasicAsset_ERR_FREEZE BasicAsset_AssetStatus = -5 )
func (BasicAsset_AssetStatus) Descriptor ¶
func (BasicAsset_AssetStatus) Descriptor() protoreflect.EnumDescriptor
func (BasicAsset_AssetStatus) Enum ¶
func (x BasicAsset_AssetStatus) Enum() *BasicAsset_AssetStatus
func (BasicAsset_AssetStatus) EnumDescriptor
deprecated
func (BasicAsset_AssetStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use BasicAsset_AssetStatus.Descriptor instead.
func (BasicAsset_AssetStatus) Number ¶
func (x BasicAsset_AssetStatus) Number() protoreflect.EnumNumber
func (BasicAsset_AssetStatus) String ¶
func (x BasicAsset_AssetStatus) String() string
func (BasicAsset_AssetStatus) Type ¶
func (BasicAsset_AssetStatus) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.