Skip to content

Commit 27f3190

Browse files
authored
Merge pull request #7 from dung13890/generate_project
Fix lint after generate
2 parents a642a4a + 031b7f9 commit 27f3190

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,7 @@ go-base-gen domain --name <domain-name> --project <project-name> --module <modul
8282
└── pkg
8383
```
8484

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+

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
)
1010

1111
var (
12-
version string = "v1.0.1"
12+
version string = "v1.0.2"
1313
)
1414

1515
func main() {

template/tmpl/internal/modules/name/delivery/http/domain_dto.go.tmpl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,13 @@ type {{.Domain | capitalize}}Response struct {
2222
UpdatedAt time.Time `json:"updated_at"`
2323
}
2424

25+
// {{.Domain | capitalize}}StatusResponse is struct when success
26+
type {{.Domain | capitalize}}StatusResponse struct {
27+
Status bool `json:"status"`
28+
}
29+
2530
// 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}} {
2732
return &domain.{{.Domain | capitalize}}{}
2833
}
2934

template/tmpl/internal/modules/name/repository/domain_dao.go.tmpl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ Mit License (MIT)
77

88
import (
99
"{{.Project}}/internal/domain"
10-
"{{.Project}}/pkg/utils"
1110

1211
"gorm.io/gorm"
1312
)

0 commit comments

Comments
 (0)