Documentation ¶
Index ¶
- type UserDeviceServer
- func (s *UserDeviceServer) UserDeivceShareMultiAccept(ctx context.Context, in *dm.UserDeviceShareMultiAcceptReq) (*dm.Empty, error)
- func (s *UserDeviceServer) UserDeivceShareMultiIndex(ctx context.Context, in *dm.UserDeviceShareMultiToken) (*dm.UserDeviceShareMultiInfo, error)
- 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) UserDeviceShareMultiCreate(ctx context.Context, in *dm.UserDeviceShareMultiInfo) (*dm.UserDeviceShareMultiToken, 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) 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 (s *UserDeviceServer) UserDeviceShareIndex(ctx context.Context, in *dm.UserDeviceShareIndexReq) (*dm.UserDeviceShareIndexResp, error)
获取设备分享列表(只有设备的所有者才能获取)
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 (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.