Documentation
¶
Index ¶
- func ToDeviceInfo(di *mysql.DeviceInfo) *dm.DeviceInfo
- type DeviceInfoCreateLogic
- func (l *DeviceInfoCreateLogic) CheckDevice(in *dm.DeviceInfo) (bool, error)
- func (l *DeviceInfoCreateLogic) CheckProduct(in *dm.DeviceInfo) (bool, error)
- func (l *DeviceInfoCreateLogic) DeviceInfoCreate(in *dm.DeviceInfo) (*dm.Response, error)
- func (l *DeviceInfoCreateLogic) InitDevice(in *dm.DeviceInfo) error
- type DeviceInfoDeleteLogic
- type DeviceInfoIndexLogic
- type DeviceInfoReadLogic
- type DeviceInfoUpdateLogic
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToDeviceInfo ¶
func ToDeviceInfo(di *mysql.DeviceInfo) *dm.DeviceInfo
Types ¶
type DeviceInfoCreateLogic ¶
func NewDeviceInfoCreateLogic ¶
func NewDeviceInfoCreateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeviceInfoCreateLogic
func (*DeviceInfoCreateLogic) CheckDevice ¶
func (l *DeviceInfoCreateLogic) CheckDevice(in *dm.DeviceInfo) (bool, error)
发现返回true 没有返回false
func (*DeviceInfoCreateLogic) CheckProduct ¶
func (l *DeviceInfoCreateLogic) CheckProduct(in *dm.DeviceInfo) (bool, error)
发现返回true 没有返回false
func (*DeviceInfoCreateLogic) DeviceInfoCreate ¶
func (l *DeviceInfoCreateLogic) DeviceInfoCreate(in *dm.DeviceInfo) (*dm.Response, error)
新增设备
func (*DeviceInfoCreateLogic) InitDevice ¶
func (l *DeviceInfoCreateLogic) InitDevice(in *dm.DeviceInfo) error
type DeviceInfoDeleteLogic ¶
func NewDeviceInfoDeleteLogic ¶
func NewDeviceInfoDeleteLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeviceInfoDeleteLogic
func (*DeviceInfoDeleteLogic) DeviceInfoDelete ¶
func (l *DeviceInfoDeleteLogic) DeviceInfoDelete(in *dm.DeviceInfoDeleteReq) (*dm.Response, error)
删除设备
type DeviceInfoIndexLogic ¶
func NewDeviceInfoIndexLogic ¶
func NewDeviceInfoIndexLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeviceInfoIndexLogic
func (*DeviceInfoIndexLogic) DeviceInfoIndex ¶
func (l *DeviceInfoIndexLogic) DeviceInfoIndex(in *dm.DeviceInfoIndexReq) (*dm.DeviceInfoIndexResp, error)
获取设备信息列表
type DeviceInfoReadLogic ¶
func NewDeviceInfoReadLogic ¶
func NewDeviceInfoReadLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeviceInfoReadLogic
func (*DeviceInfoReadLogic) DeviceInfoRead ¶
func (l *DeviceInfoReadLogic) DeviceInfoRead(in *dm.DeviceInfoReadReq) (*dm.DeviceInfo, error)
获取设备信息详情
type DeviceInfoUpdateLogic ¶
func NewDeviceInfoUpdateLogic ¶
func NewDeviceInfoUpdateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeviceInfoUpdateLogic
func (*DeviceInfoUpdateLogic) ChangeDevice ¶
func (l *DeviceInfoUpdateLogic) ChangeDevice(old *mysql.DeviceInfo, data *dm.DeviceInfo)
func (*DeviceInfoUpdateLogic) DeviceInfoUpdate ¶
func (l *DeviceInfoUpdateLogic) DeviceInfoUpdate(in *dm.DeviceInfo) (*dm.Response, error)
更新设备
Click to show internal directories.
Click to hide internal directories.