This repository has been archived by the owner on May 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from jacexh/hotfix/0.2.1
hotfix-0.2.1
- Loading branch information
Showing
9 changed files
with
55 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
package user | ||
|
||
import "time" | ||
|
||
type UserEntity struct { | ||
ID string `ddb:"id"` | ||
Name string `ddb:"name"` | ||
Email string `ddb:"email"` | ||
CTime time.Time `ddb:"ctime"` | ||
MTime time.Time `ddb:"mtime"` | ||
ID string | ||
Name string | ||
Password string | ||
Email string | ||
} |
2 changes: 1 addition & 1 deletion
2
infrastructure/repository/database.go → infrastructure/persistence/database.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package repository | ||
package persistence | ||
|
||
import ( | ||
"database/sql" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package do | ||
|
||
import "time" | ||
|
||
type UserDo struct { | ||
ID string `ddb:"id"` | ||
Name string `ddb:"name"` | ||
Password string `ddb:"password"` | ||
Email string `ddb:"email"` | ||
Version int `ddb:"version"` | ||
CTime time.Time `ddb:"ctime"` | ||
MTime time.Time `ddb:"mtime"` | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package dto | ||
|
||
type ( | ||
// UserDTO use的dto定义,用于api层 | ||
UserDTO struct { | ||
ID string `json:"id"` | ||
Name string `json:"name"` | ||
Email string `json:"email"` | ||
Version string `json:"version"` | ||
CTime string `json:"ctime"` | ||
MTime string `json:"mtime"` | ||
} | ||
) |