package
Version:
v0.0.23
Opens a new window with list of versions in this module.
Published: Nov 15, 2023
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Gogen Service
Call gogen service PublishOrder RunOrderCreate
will
-
Create service PublishOrderService
(if not exist)
└── domain_yourdomainname
└── model
└── service
└── service.go
-
Inject code into Outport
type Outport interface {
service.PublishOrderService
}
-
Inject code into Interactor. It will replace the //!
flag
func (r *runOrderCreateInteractor) Execute(ctx context.Context, req InportRequest) (*InportResponse, error) {
res := &InportResponse{}
// code your usecase definition here ...
publishOrderResponse, err := r.outport.PublishOrder(ctx, service.PublishOrderServiceRequest{})
if err != nil {
return nil, err
}
_ = publishOrderResponse
//!
return res, nil
}
Documentation
¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.