Versions in this module Expand all Collapse all v1 v1.0.0 Sep 7, 2022 Changes in this version + type IDeviceCategoryData interface + Add func(ctx context.Context, req *device.DeviceCategoryDataAddReq) (err error) + DeleteByIds func(ctx context.Context, ids []int) (err error) + Edit func(ctx context.Context, req *device.DeviceCategoryDataEditReq) error + Get func(ctx context.Context, id int) (info *entity.DeviceCategoryData, err error) + History func(ctx context.Context, req *device.DeviceCategoryDataHistoryReq, columns string) (total int, result []*device.DeviceCategoryDataComm, err error) + List func(ctx context.Context, req *device.DeviceCategoryDataSearchReq) (total, page int, list []*entity.DeviceCategoryData, err error) + New func(ctx context.Context, req *device.DeviceCategoryDataAddReq) (err error) + Recent func(ctx context.Context, req *device.DeviceCategoryDataRecentReq, columns string) (total int, result []*device.DeviceCategoryDataComm, err error) + func DeviceCategoryData() IDeviceCategoryData + type IDeviceCategoty interface + Add func(ctx context.Context, req *device.DeviceCategotyAddReq) (err error) + DeleteByIds func(ctx context.Context, ids []int) (err error) + Edit func(ctx context.Context, req *device.DeviceCategotyEditReq) error + Get func(ctx context.Context, id int) (info *entity.DeviceCategoty, err error) + KindGet func(ctx context.Context, kindId int) (list []*entity.DeviceCategoty, err error) + List func(ctx context.Context, req *device.DeviceCategotySearchReq) (total, page int, list []*entity.DeviceCategoty, err error) + func DeviceCategoty() IDeviceCategoty + type IDeviceGroup interface + Add func(ctx context.Context, req *device.DeviceGroupAddReq) (err error) + DeleteByIds func(ctx context.Context, ids []int) (err error) + Edit func(ctx context.Context, req *device.DeviceGroupEditReq) error + Get func(ctx context.Context, id int) (info *entity.DeviceGroup, err error) + List func(ctx context.Context, req *device.DeviceGroupSearchReq) (total, page int, list []*entity.DeviceGroup, err error) + func DeviceGroup() IDeviceGroup + type IDeviceInfo interface + Add func(ctx context.Context, req *device.DeviceInfoAddReq) (err error) + Auth func(ctx context.Context, sn, pwd string) (status bool, err error) + DeleteByIds func(ctx context.Context, ids []int) (err error) + Edit func(ctx context.Context, req *device.DeviceInfoEditReq) error + Get func(ctx context.Context, id int) (info *model.DeviceInfoExtern, err error) + GetAllInfo func(ctx context.Context, id int, sn string) (info *model.DeviceAllInfo, err error) + List func(ctx context.Context, req *device.DeviceInfoSearchReq) (total, page int, list []*model.DeviceInfoExtern, err error) + UpdateStatus func(ctx context.Context, sn string, status int) (err error) + func DeviceInfo() IDeviceInfo + type IDeviceKind interface + Add func(ctx context.Context, req *device.DeviceKindAddReq) (err error) + DeleteByIds func(ctx context.Context, ids []int) (err error) + Edit func(ctx context.Context, req *device.DeviceKindEditReq) error + Get func(ctx context.Context, id int) (info *entity.DeviceKind, err error) + List func(ctx context.Context, req *device.DeviceKindSearchReq) (total, page int, list []*entity.DeviceKind, err error) + func DeviceKind() IDeviceKind + type IDeviceLabel interface + Add func(ctx context.Context, req *device.DeviceLabelAddReq) (err error) + DeleteByIds func(ctx context.Context, ids []int) (err error) + Edit func(ctx context.Context, req *device.DeviceLabelEditReq) error + Get func(ctx context.Context, id int) (info *entity.DeviceLabel, err error) + List func(ctx context.Context, req *device.DeviceLabelSearchReq) (total, page int, list []*entity.DeviceLabel, err error) + func DeviceLabel() IDeviceLabel + type IDeviceLabelData interface + Add func(ctx context.Context, req *device.DeviceLabelDataAddReq) (err error) + DeleteByIds func(ctx context.Context, ids []int) (err error) + Edit func(ctx context.Context, req *device.DeviceLabelDataEditReq) error + Get func(ctx context.Context, id int) (info *entity.DeviceLabelData, err error) + List func(ctx context.Context, req *device.DeviceLabelDataSearchReq) (total, page int, list []*entity.DeviceLabelData, err error) + func DeviceLabelData() IDeviceLabelData + type IDeviceStatus interface + Add func(ctx context.Context, req *device.DeviceStatusAddReq) (err error) + ChangeStatus func(ctx context.Context, deviceId int, status int) error + DeleteByIds func(ctx context.Context, ids []int) (err error) + Edit func(ctx context.Context, req *device.DeviceStatusEditReq) error + Get func(ctx context.Context, id int) (info *entity.DeviceStatus, err error) + List func(ctx context.Context, req *device.DeviceStatusSearchReq) (total, page int, list []*entity.DeviceStatus, err error) + func DeviceStatus() IDeviceStatus