官术网_书友最值得收藏!

  • 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.

主站蜘蛛池模板: 高碑店市| 新余市| 昌都县| 娄底市| 英吉沙县| 孙吴县| 台中市| 庆元县| 休宁县| 尚志市| 宜昌市| 怀宁县| 佛坪县| 安达市| 温宿县| 连云港市| 洛浦县| 平顺县| 松原市| 连平县| 大英县| 永年县| 乌什县| 资溪县| 乌鲁木齐县| 鄂托克前旗| 革吉县| 广宁县| 宝清县| 延安市| 黔江区| 云安县| 田东县| 禹城市| 马鞍山市| 乐平市| 扎兰屯市| 阿鲁科尔沁旗| 庆阳市| 通城县| 图们市|