- Hyperledger Cookbook
- Xun (Brian) Wu Chuanfeng Zhang Andrew Zhang
- 150字
- 2021-06-24 14:59:38
The OrgAsset entity
All assets should have an Id field to identify them. Each device also has a physical device ID (DeviceId) that indicates the type of device, such as iPhone, iPad, or macOS. During the IT asset management flow process, the device is transferred from one entity to another, and the Location of the device keeps changing. Each processor may want to enter Comment to provide additional information at each step. Based on this, we can define the OrgAsset entity as follows:
type OrgAsset struct {
Id string `json:"id"` //the assetId
AssetType string `json:"assetType"` //type of device
Status string `json:"status"` //status of asset
Location string `json:"location"` //device location
DeviceId string `json:"deviceId"` //DeviceId
Comment string `json:"comment"` //comment
From string `json:"from"` //from
To string `json:"to"` //to
}
After we have defined the OrgAsset entity, we will take a look at the implementation of the Init function.
推薦閱讀
- 矩陣決策:如何鎖定關(guān)鍵點(diǎn)做出制勝策略
- 仿真模型可移植性規(guī)范及其應(yīng)用
- 模式識(shí)別與人工智能(基于MATLAB)
- 好玩的數(shù)學(xué)符號(hào)
- 數(shù)學(xué)也可以這樣學(xué):自然、空間和時(shí)間里的數(shù)學(xué)
- 老師沒(méi)教的數(shù)學(xué)
- 數(shù)學(xué)與決策:數(shù)學(xué)教你做決定
- Hands-On Blockchain with Hyperledger
- 數(shù)字乾坤
- 2頁(yè)紙圖解數(shù)學(xué):以極聰明的方式,讓你三步讀懂?dāng)?shù)學(xué)
- 數(shù)學(xué)女孩5:伽羅瓦理論
- 燒腦的邏輯題
- 微積分Ⅱ
- 自然哲學(xué)的數(shù)學(xué)原理(漢譯世界學(xué)術(shù)名著叢書(shū))
- 心中有數(shù):生活中的數(shù)學(xué)思維