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

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.

主站蜘蛛池模板: 华宁县| 驻马店市| 大余县| 台南市| 酒泉市| 岳阳市| 大安市| 碌曲县| 长垣县| 大兴区| 镇平县| 怀仁县| 莱西市| 米脂县| 赤城县| 荆门市| 惠来县| 江津市| 新闻| 平泉县| 武城县| 宜阳县| 宣恩县| 柳江县| 饶平县| 乌审旗| 政和县| 鄂伦春自治旗| 寻甸| 马边| 平凉市| 白玉县| 新乡市| 霍邱县| 和田县| 永平县| 德保县| 哈尔滨市| 通州区| 犍为县| 罗平县|