Documentation ¶
Index ¶
- func ToMuitlSharePb(in *types.UserDeviceShareMultiInfo) *dm.UserDeviceShareMultiInfo
- func ToMultiShareTypes(in *dm.UserDeviceShareMultiInfo) *types.UserDeviceShareMultiIndexResp
- func ToSharePb(in *types.UserDeviceShareInfo) *dm.UserDeviceShareInfo
- func ToShareTypes(in *dm.UserDeviceShareInfo) *types.UserDeviceShareInfo
- func ToSharesDevices(in []*types.DeviceCore) (ret []*dm.DeviceCore)
- func ToSharesTypes(in []*dm.UserDeviceShareInfo) (ret []*types.UserDeviceShareInfo)
- type CreateLogic
- type DeleteLogic
- type IndexLogic
- type MultiAcceptLogic
- type MultiCreateLogic
- type MultiDeleteLogic
- type MultiIndexLogic
- type ReadLogic
- type UpdateLogic
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToMuitlSharePb ¶ added in v1.0.2
func ToMuitlSharePb(in *types.UserDeviceShareMultiInfo) *dm.UserDeviceShareMultiInfo
func ToMultiShareTypes ¶ added in v1.0.2
func ToMultiShareTypes(in *dm.UserDeviceShareMultiInfo) *types.UserDeviceShareMultiIndexResp
func ToSharePb ¶
func ToSharePb(in *types.UserDeviceShareInfo) *dm.UserDeviceShareInfo
func ToShareTypes ¶
func ToShareTypes(in *dm.UserDeviceShareInfo) *types.UserDeviceShareInfo
func ToSharesDevices ¶ added in v1.0.2
func ToSharesDevices(in []*types.DeviceCore) (ret []*dm.DeviceCore)
func ToSharesTypes ¶
func ToSharesTypes(in []*dm.UserDeviceShareInfo) (ret []*types.UserDeviceShareInfo)
Types ¶
type CreateLogic ¶
func NewCreateLogic ¶
func NewCreateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CreateLogic
func (*CreateLogic) Create ¶
func (l *CreateLogic) Create(req *types.UserDeviceShareInfo) (*types.WithID, error)
type DeleteLogic ¶
func NewDeleteLogic ¶
func NewDeleteLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteLogic
func (*DeleteLogic) Delete ¶
func (l *DeleteLogic) Delete(req *types.UserDeviceShareReadReq) error
type IndexLogic ¶
func NewIndexLogic ¶
func NewIndexLogic(ctx context.Context, svcCtx *svc.ServiceContext) *IndexLogic
func (*IndexLogic) Index ¶
func (l *IndexLogic) Index(req *types.UserDeviceShareIndexReq) (resp *types.UserDeviceShareIndexResp, err error)
type MultiAcceptLogic ¶ added in v1.0.2
func NewMultiAcceptLogic ¶ added in v1.0.2
func NewMultiAcceptLogic(ctx context.Context, svcCtx *svc.ServiceContext) *MultiAcceptLogic
接受批量分享设备
func (*MultiAcceptLogic) MultiAccept ¶ added in v1.0.2
func (l *MultiAcceptLogic) MultiAccept(req *types.UserDeviceShareMultiAcceptInfo) error
type MultiCreateLogic ¶ added in v1.0.2
func NewMultiCreateLogic ¶ added in v1.0.2
func NewMultiCreateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *MultiCreateLogic
生成批量分享设备二维码
func (*MultiCreateLogic) MultiCreate ¶ added in v1.0.2
func (l *MultiCreateLogic) MultiCreate(req *types.UserDeviceShareMultiInfo) (resp *types.UserDeviceShareMultiToken, err error)
type MultiDeleteLogic ¶
func NewMultiDeleteLogic ¶
func NewMultiDeleteLogic(ctx context.Context, svcCtx *svc.ServiceContext) *MultiDeleteLogic
func (*MultiDeleteLogic) MultiDelete ¶
func (l *MultiDeleteLogic) MultiDelete(req *types.UserDeviceShareMultiDeleteReq) error
type MultiIndexLogic ¶ added in v1.0.2
func NewMultiIndexLogic ¶ added in v1.0.2
func NewMultiIndexLogic(ctx context.Context, svcCtx *svc.ServiceContext) *MultiIndexLogic
获取批量分享的设备列表
func (*MultiIndexLogic) MultiIndex ¶ added in v1.0.2
func (l *MultiIndexLogic) MultiIndex(req *types.UserDeviceShareMultiToken) (resp *types.UserDeviceShareMultiIndexResp, err error)
type ReadLogic ¶
func NewReadLogic ¶
func NewReadLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ReadLogic
func (*ReadLogic) Read ¶
func (l *ReadLogic) Read(req *types.UserDeviceShareReadReq) (resp *types.UserDeviceShareInfo, err error)
type UpdateLogic ¶
func NewUpdateLogic ¶
func NewUpdateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateLogic
func (*UpdateLogic) Update ¶
func (l *UpdateLogic) Update(req *types.UserDeviceShareInfo) error
Click to show internal directories.
Click to hide internal directories.