Documentation ¶
Index ¶
- type UserDeviceServer
- func (s *UserDeviceServer) UserDeviceCollectIndex(ctx context.Context, in *dm.Empty) (*dm.UserDeviceCollectSave, error)
- func (s *UserDeviceServer) UserDeviceCollectMultiCreate(ctx context.Context, in *dm.UserDeviceCollectSave) (*dm.Empty, error)
- func (s *UserDeviceServer) UserDeviceCollectMultiDelete(ctx context.Context, in *dm.UserDeviceCollectSave) (*dm.Empty, error)
- func (s *UserDeviceServer) UserDeviceShareCreate(ctx context.Context, in *dm.UserDeviceShareInfo) (*dm.WithID, error)
- func (s *UserDeviceServer) UserDeviceShareDelete(ctx context.Context, in *dm.UserDeviceShareReadReq) (*dm.Empty, error)
- func (s *UserDeviceServer) UserDeviceShareIndex(ctx context.Context, in *dm.UserDeviceShareIndexReq) (*dm.UserDeviceShareIndexResp, error)
- func (s *UserDeviceServer) UserDeviceShareMultiDelete(ctx context.Context, in *dm.UserDeviceShareMultiDeleteReq) (*dm.Empty, error)
- func (s *UserDeviceServer) UserDeviceShareRead(ctx context.Context, in *dm.UserDeviceShareReadReq) (*dm.UserDeviceShareInfo, error)
- func (s *UserDeviceServer) UserDeviceShareUpdate(ctx context.Context, in *dm.UserDeviceShareInfo) (*dm.Empty, error)
- func (s *UserDeviceServer) UserDeviceTransfer(ctx context.Context, in *dm.DeviceTransferReq) (*dm.Empty, error)
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 (s *UserDeviceServer) UserDeviceShareIndex(ctx context.Context, in *dm.UserDeviceShareIndexReq) (*dm.UserDeviceShareIndexResp, error)
获取设备分享列表(只有设备的所有者才能获取)
func (*UserDeviceServer) UserDeviceShareMultiDelete ¶
func (s *UserDeviceServer) UserDeviceShareMultiDelete(ctx context.Context, in *dm.UserDeviceShareMultiDeleteReq) (*dm.Empty, error)
取消分享设备
func (*UserDeviceServer) UserDeviceShareRead ¶
func (s *UserDeviceServer) UserDeviceShareRead(ctx context.Context, in *dm.UserDeviceShareReadReq) (*dm.UserDeviceShareInfo, error)
获取设备分享的详情
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)
转让设备
Click to show internal directories.
Click to hide internal directories.