service

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IDeviceCategoryData

type IDeviceCategoryData interface {
	List(ctx context.Context, req *device.DeviceCategoryDataSearchReq) (total, page int, list []*entity.DeviceCategoryData, err error)
	Get(ctx context.Context, id int) (info *entity.DeviceCategoryData, err error)
	Recent(ctx context.Context, req *device.DeviceCategoryDataRecentReq, columns string) (total int, result []*device.DeviceCategoryDataComm, err error)
	History(ctx context.Context, req *device.DeviceCategoryDataHistoryReq, columns string) (total int, result []*device.DeviceCategoryDataComm, err error)
	Add(ctx context.Context, req *device.DeviceCategoryDataAddReq) (err error)
	New(ctx context.Context, req *device.DeviceCategoryDataAddReq) (err error)
	Edit(ctx context.Context, req *device.DeviceCategoryDataEditReq) error
	DeleteByIds(ctx context.Context, ids []int) (err error)
}

type deviceCategoryData struct { } var DeviceCategoryData = new(deviceCategoryData)

func DeviceCategoryData

func DeviceCategoryData() IDeviceCategoryData

type IDeviceCategoty

type IDeviceCategoty interface {
	List(ctx context.Context, req *device.DeviceCategotySearchReq) (total, page int, list []*entity.DeviceCategoty, err error)
	Get(ctx context.Context, id int) (info *entity.DeviceCategoty, err error)
	KindGet(ctx context.Context, kindId int) (list []*entity.DeviceCategoty, err error)
	Add(ctx context.Context, req *device.DeviceCategotyAddReq) (err error)
	Edit(ctx context.Context, req *device.DeviceCategotyEditReq) error
	DeleteByIds(ctx context.Context, ids []int) (err error)
}

type deviceCategoty struct { } var DeviceCategoty = new(deviceCategoty)

func DeviceCategoty

func DeviceCategoty() IDeviceCategoty

type IDeviceGroup

type IDeviceGroup interface {
	List(ctx context.Context, req *device.DeviceGroupSearchReq) (total, page int, list []*entity.DeviceGroup, err error)
	Get(ctx context.Context, id int) (info *entity.DeviceGroup, err error)
	Add(ctx context.Context, req *device.DeviceGroupAddReq) (err error)
	Edit(ctx context.Context, req *device.DeviceGroupEditReq) error
	DeleteByIds(ctx context.Context, ids []int) (err error)
}

type deviceGroup struct { } var DeviceGroup = new(deviceGroup)

func DeviceGroup

func DeviceGroup() IDeviceGroup

type IDeviceInfo

type IDeviceInfo interface {
	List(ctx context.Context, req *device.DeviceInfoSearchReq) (total, page int, list []*model.DeviceInfoExtern, err error)
	Get(ctx context.Context, id int) (info *model.DeviceInfoExtern, err error)
	GetAllInfo(ctx context.Context, id int, sn string) (info *model.DeviceAllInfo, err error)
	Add(ctx context.Context, req *device.DeviceInfoAddReq) (err error)
	Edit(ctx context.Context, req *device.DeviceInfoEditReq) error
	Auth(ctx context.Context, sn, pwd string) (status bool, err error)
	UpdateStatus(ctx context.Context, sn string, status int) (err error)
	DeleteByIds(ctx context.Context, ids []int) (err error)
}

type deviceInfo struct { } var DeviceInfo = new(deviceInfo)

func DeviceInfo

func DeviceInfo() IDeviceInfo

type IDeviceKind

type IDeviceKind interface {
	List(ctx context.Context, req *device.DeviceKindSearchReq) (total, page int, list []*entity.DeviceKind, err error)
	Get(ctx context.Context, id int) (info *entity.DeviceKind, err error)
	Add(ctx context.Context, req *device.DeviceKindAddReq) (err error)
	Edit(ctx context.Context, req *device.DeviceKindEditReq) error
	DeleteByIds(ctx context.Context, ids []int) (err error)
}

type deviceKind struct { } var DeviceKind = new(deviceKind)

func DeviceKind

func DeviceKind() IDeviceKind

type IDeviceLabel

type IDeviceLabel interface {
	List(ctx context.Context, req *device.DeviceLabelSearchReq) (total, page int, list []*entity.DeviceLabel, err error)
	Get(ctx context.Context, id int) (info *entity.DeviceLabel, err error)
	Add(ctx context.Context, req *device.DeviceLabelAddReq) (err error)
	Edit(ctx context.Context, req *device.DeviceLabelEditReq) error
	DeleteByIds(ctx context.Context, ids []int) (err error)
}

type deviceLabel struct { } var DeviceLabel = new(deviceLabel)

func DeviceLabel

func DeviceLabel() IDeviceLabel

type IDeviceLabelData

type IDeviceLabelData interface {
	List(ctx context.Context, req *device.DeviceLabelDataSearchReq) (total, page int, list []*entity.DeviceLabelData, err error)
	Get(ctx context.Context, id int) (info *entity.DeviceLabelData, err error)
	Add(ctx context.Context, req *device.DeviceLabelDataAddReq) (err error)
	Edit(ctx context.Context, req *device.DeviceLabelDataEditReq) error
	DeleteByIds(ctx context.Context, ids []int) (err error)
}

type deviceLabelData struct { } var DeviceLabelData = new(deviceLabelData)

func DeviceLabelData

func DeviceLabelData() IDeviceLabelData

type IDeviceStatus

type IDeviceStatus interface {
	List(ctx context.Context, req *device.DeviceStatusSearchReq) (total, page int, list []*entity.DeviceStatus, err error)
	Get(ctx context.Context, id int) (info *entity.DeviceStatus, err error)
	Add(ctx context.Context, req *device.DeviceStatusAddReq) (err error)
	Edit(ctx context.Context, req *device.DeviceStatusEditReq) error
	DeleteByIds(ctx context.Context, ids []int) (err error)
	ChangeStatus(ctx context.Context, deviceId int, status int) error
}

type deviceStatus struct { } var DeviceStatus = new(deviceStatus)

func DeviceStatus

func DeviceStatus() IDeviceStatus

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL