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

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.

主站蜘蛛池模板: 富蕴县| 义乌市| 吉林市| 始兴县| 武义县| 长沙县| 佛山市| 梁山县| 确山县| 汝南县| 平泉县| 淮安市| 太原市| 西宁市| 芒康县| 霍城县| 南郑县| 耿马| 广南县| 河南省| 清徐县| 思南县| 福建省| 松桃| 成都市| 上虞市| 高雄县| 荔波县| 常山县| 大新县| 阜平县| 桑植县| 桦川县| 夏邑县| 桃源县| 镇坪县| 苏尼特左旗| 西城区| 沂源县| 永胜县| 彰化县|