Skip to content

Commit

Permalink
add code
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanvc committed Jan 18, 2024
1 parent 41cff7a commit 3c8da76
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions examples/metricapp/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func newRedisClient() *rediscli.RedisClient {
// DTO对象,用于传输和对外输出实体属性

type QueryUserReq struct {
Uid int64
Uid int64 `json:"uid"`
}

type Gender int
Expand All @@ -79,12 +79,12 @@ const (
)

type UserDto struct {
Uid int64
Gender Gender
Status UserStatus
CreateTime int64
UpdateTime int64
Name string
Uid int64 `json:"uid"`
Gender Gender `json:"gender"`
Status UserStatus `json:"status"`
CreateTime int64 `json:"create_time"`
UpdateTime int64 `json:"update_time"`
Name string `json:"name"`
}

func (u *UserDto) TableName() string {
Expand Down

0 comments on commit 3c8da76

Please sign in to comment.