File tree Expand file tree Collapse file tree 4 files changed +11
-4
lines changed
template/tmpl/internal/modules/name Expand file tree Collapse file tree 4 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -82,4 +82,7 @@ go-base-gen domain --name <domain-name> --project <project-name> --module <modul
82
82
└── pkg
83
83
```
84
84
85
- You can see more detail in [ Base Project] ( https://github.com/dung13890/go-clean-architecture )
85
+ You can see more detail in [ go-clean-architecture] ( https://github.com/dung13890/go-clean-architecture )
86
+
87
+ [ ![ "Buy Me A Coffee"] ( https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png )] ( https://www.buymeacoffee.com/dung13890 )
88
+
Original file line number Diff line number Diff line change 9
9
)
10
10
11
11
var (
12
- version string = "v1.0.1 "
12
+ version string = "v1.0.2 "
13
13
)
14
14
15
15
func main () {
Original file line number Diff line number Diff line change @@ -22,8 +22,13 @@ type {{.Domain | capitalize}}Response struct {
22
22
UpdatedAt time.Time `json:"updated_at"`
23
23
}
24
24
25
+ // {{.Domain | capitalize}}StatusResponse is struct when success
26
+ type {{.Domain | capitalize}}StatusResponse struct {
27
+ Status bool `json:"status"`
28
+ }
29
+
25
30
// convert{{.Domain | capitalize}}RequestToEntity DTO
26
- func convert{{.Domain | capitalize}}RequestToEntity(request *{{.Domain | capitalize}}Request) *domain.{{.Domain | capitalize}} {
31
+ func convert{{.Domain | capitalize}}RequestToEntity(*{{.Domain | capitalize}}Request) *domain.{{.Domain | capitalize}} {
27
32
return &domain.{{.Domain | capitalize}}{}
28
33
}
29
34
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ Mit License (MIT)
7
7
8
8
import (
9
9
"{{.Project}}/internal/domain"
10
- "{{.Project}}/pkg/utils"
11
10
12
11
"gorm.io/gorm"
13
12
)
You can’t perform that action at this time.
0 commit comments