server

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserDeviceServer

type UserDeviceServer struct {
	dm.UnimplementedUserDeviceServer
	// contains filtered or unexported fields
}

func NewUserDeviceServer

func NewUserDeviceServer(svcCtx *svc.ServiceContext) *UserDeviceServer

func (*UserDeviceServer) UserDeivceShareMultiAccept added in v1.0.2

func (s *UserDeviceServer) UserDeivceShareMultiAccept(ctx context.Context, in *dm.UserDeviceShareMultiAcceptReq) (*dm.Empty, error)

接受批量分享的设备

func (*UserDeviceServer) UserDeivceShareMultiIndex added in v1.0.2

func (s *UserDeviceServer) UserDeivceShareMultiIndex(ctx context.Context, in *dm.UserDeviceShareMultiToken) (*dm.UserDeviceShareMultiInfo, error)

扫码后获取设备列表

func (*UserDeviceServer) UserDeviceCollectIndex

func (s *UserDeviceServer) UserDeviceCollectIndex(ctx context.Context, in *dm.Empty) (*dm.UserDeviceCollectSave, error)

func (*UserDeviceServer) UserDeviceCollectMultiCreate

func (s *UserDeviceServer) UserDeviceCollectMultiCreate(ctx context.Context, in *dm.UserDeviceCollectSave) (*dm.Empty, error)

用户收藏的设备

func (*UserDeviceServer) UserDeviceCollectMultiDelete

func (s *UserDeviceServer) UserDeviceCollectMultiDelete(ctx context.Context, in *dm.UserDeviceCollectSave) (*dm.Empty, error)

func (*UserDeviceServer) UserDeviceShareCreate

func (s *UserDeviceServer) UserDeviceShareCreate(ctx context.Context, in *dm.UserDeviceShareInfo) (*dm.WithID, error)

分享设备

func (*UserDeviceServer) UserDeviceShareDelete

func (s *UserDeviceServer) UserDeviceShareDelete(ctx context.Context, in *dm.UserDeviceShareReadReq) (*dm.Empty, error)

取消分享设备

func (*UserDeviceServer) UserDeviceShareIndex

获取设备分享列表(只有设备的所有者才能获取)

func (*UserDeviceServer) UserDeviceShareMultiCreate added in v1.0.2

func (s *UserDeviceServer) UserDeviceShareMultiCreate(ctx context.Context, in *dm.UserDeviceShareMultiInfo) (*dm.UserDeviceShareMultiToken, error)

rpc userDeviceOtaGetVersion(UserDeviceOtaGetVersionReq)returns(userDeviceOtaGetVersionResp);

func (*UserDeviceServer) UserDeviceShareMultiDelete

func (s *UserDeviceServer) UserDeviceShareMultiDelete(ctx context.Context, in *dm.UserDeviceShareMultiDeleteReq) (*dm.Empty, error)

取消分享设备

func (*UserDeviceServer) UserDeviceShareRead

获取设备分享的详情

func (*UserDeviceServer) UserDeviceShareUpdate

func (s *UserDeviceServer) UserDeviceShareUpdate(ctx context.Context, in *dm.UserDeviceShareInfo) (*dm.Empty, error)

更新权限

func (*UserDeviceServer) UserDeviceTransfer

func (s *UserDeviceServer) UserDeviceTransfer(ctx context.Context, in *dm.DeviceTransferReq) (*dm.Empty, error)

转让设备

Jump to

Keyboard shortcuts

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