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

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.

主站蜘蛛池模板: 米泉市| 普兰店市| 巴青县| 龙口市| 陈巴尔虎旗| 衡东县| 峨眉山市| 甘南县| 正阳县| 莎车县| 汉寿县| 时尚| 襄樊市| 奎屯市| 汨罗市| 金沙县| 新昌县| 龙里县| 新河县| 石家庄市| 四平市| 台湾省| 昌平区| 无极县| 商洛市| 盐山县| 丰原市| 岳普湖县| 沙田区| 清流县| 浦东新区| 高清| 淳安县| 河源市| 宁武县| 武胜县| 长乐市| 青海省| 集安市| 高青县| 舟山市|