Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 72d5f93a30 |
@@ -1,4 +1,4 @@
|
||||
package dto
|
||||
package catalog
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package entity
|
||||
package catalog
|
||||
|
||||
import "github.com/jackc/pgtype"
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package model
|
||||
package catalog
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package dto
|
||||
package common
|
||||
|
||||
type ErrorResponseDTO struct {
|
||||
Error string `json:"error"`
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package dto
|
||||
package common
|
||||
|
||||
type HealthResponseDTO struct {
|
||||
Status string `json:"status"`
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package vo
|
||||
package common
|
||||
|
||||
import "strings"
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package vo
|
||||
package common
|
||||
|
||||
type Money struct {
|
||||
}
|
||||
|
||||
18
identity/entity/user.go
Normal file
18
identity/entity/user.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package identity
|
||||
|
||||
import "time"
|
||||
|
||||
type User struct {
|
||||
ID int `json:"id"`
|
||||
Username string `json:"username"`
|
||||
Password string `json:"password"`
|
||||
CreateDate time.Time `json:"create_date"`
|
||||
ModifyDate time.Time `json:"modify_date"` // FIXME: zero-value issue
|
||||
}
|
||||
|
||||
var TestUser = &User{
|
||||
ID: 1,
|
||||
Username: "test",
|
||||
Password: "test",
|
||||
CreateDate: time.Now(),
|
||||
}
|
||||
Reference in New Issue
Block a user