logic

package
v0.0.0-...-592b0ac Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNullVal

func GetNullVal(val *wrappers.StringValue) *string

func RPCToApiFmt

func RPCToApiFmt(rpc interface{}) interface{}

Types

type GetDeviceInfoLogic

type GetDeviceInfoLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewGetDeviceInfoLogic

func NewGetDeviceInfoLogic(ctx context.Context, svcCtx *svc.ServiceContext) GetDeviceInfoLogic

func (*GetDeviceInfoLogic) GetDeviceInfo

type GetProductInfoLogic

type GetProductInfoLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewGetProductInfoLogic

func NewGetProductInfoLogic(ctx context.Context, svcCtx *svc.ServiceContext) GetProductInfoLogic

func (*GetProductInfoLogic) GetProductInfo

type LoginAuthLogic

type LoginAuthLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewLoginAuthLogic

func NewLoginAuthLogic(ctx context.Context, svcCtx *svc.ServiceContext) LoginAuthLogic

func (*LoginAuthLogic) LoginAuth

func (l *LoginAuthLogic) LoginAuth(req types.LoginAuthReq) (err error)

type ManageDeviceLogic

type ManageDeviceLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewManageDeviceLogic

func NewManageDeviceLogic(ctx context.Context, svcCtx *svc.ServiceContext) ManageDeviceLogic

func (*ManageDeviceLogic) ManageDevice

func (l *ManageDeviceLogic) ManageDevice(req types.ManageDeviceReq) (*types.DeviceInfo, error)

type ManageProductLogic

type ManageProductLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewManageProductLogic

func NewManageProductLogic(ctx context.Context, svcCtx *svc.ServiceContext) ManageProductLogic

func (*ManageProductLogic) ManageProduct

func (l *ManageProductLogic) ManageProduct(req types.ManageProductReq) (*types.ProductInfo, error)

Jump to

Keyboard shortcuts

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