genusecase

package
v0.0.23 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: MIT Imports: 3 Imported by: 0

README

Gogen Usecase

Call gogen usecase RunProductCreate will

  • Create file Inport, Interactor and Outport

    └── domain_yourdomainname
        └── usecase
            └── runordercreate
                ├── README.md
                ├── inport.go
                ├── interactor.go
                └── outport.go
    
  • There are specialization for Inport.

    if using prefix GetAll then InportRequest and InportResponse will have

    type InportRequest struct {
      Page int
      Size int
    }
    
    type InportResponse struct {
      Count int64
      Items []any
    } 
    

    otherwise it will be empty

    type InportRequest struct {
    
    }
    
    type InportResponse struct {
    
    } 
    

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(inputs ...string) error

Types

type ObjTemplate

type ObjTemplate struct {
	PackagePath string
	UsecaseName string
}

ObjTemplate ...

Jump to

Keyboard shortcuts

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