server

package
v0.10.7 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 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) 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) 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