Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToModuleInfoApi ¶
func ToModuleInfoApi(in *sys.ModuleInfo) *types.ModuleInfo
func ToModuleInfoRpc ¶
func ToModuleInfoRpc(in *types.ModuleInfo) *sys.ModuleInfo
func ToModuleInfosApi ¶
func ToModuleInfosApi(in []*sys.ModuleInfo) (ret []*types.ModuleInfo)
Types ¶
type CreateLogic ¶
func NewCreateLogic ¶
func NewCreateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CreateLogic
func (*CreateLogic) Create ¶
func (l *CreateLogic) Create(req *types.ModuleInfo) (resp *types.WithID, err error)
type DeleteLogic ¶
func NewDeleteLogic ¶
func NewDeleteLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteLogic
func (*DeleteLogic) Delete ¶
func (l *DeleteLogic) Delete(req *types.WithIDOrCode) error
type IndexLogic ¶
func NewIndexLogic ¶
func NewIndexLogic(ctx context.Context, svcCtx *svc.ServiceContext) *IndexLogic
func (*IndexLogic) Index ¶
func (l *IndexLogic) Index(req *types.ModuleInfoIndexReq) (resp *types.ModuleInfoIndexResp, err error)
type ReadLogic ¶
func NewReadLogic ¶
func NewReadLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ReadLogic
func (*ReadLogic) Read ¶
func (l *ReadLogic) Read(req *types.WithIDOrCode) (resp *types.ModuleInfo, err error)
type UpdateLogic ¶
func NewUpdateLogic ¶
func NewUpdateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateLogic
func (*UpdateLogic) Update ¶
func (l *UpdateLogic) Update(req *types.ModuleInfo) error
Click to show internal directories.
Click to hide internal directories.