diff --git a/repository/tenement.go b/repository/tenement.go index 88780de..ef0bf2c 100644 --- a/repository/tenement.go +++ b/repository/tenement.go @@ -226,7 +226,7 @@ func (tr _TenementRepository) AddTenement(tx pgx.Tx, ctx context.Context, pid st Bank: tools.DefaultOrEmptyStr(tenement.Bank, ""), Account: tools.DefaultOrEmptyStr(tenement.Account, ""), }, - currentTime, + tenement.MoveIn, currentTime, currentTime, }..., diff --git a/settings.yaml b/settings.yaml index 7620533..84db9ed 100644 --- a/settings.yaml +++ b/settings.yaml @@ -12,9 +12,9 @@ Server: ReadTimeout: 60 WriteTimeout: 60 Redis: - Host: 127.0.0.1 + Host: 192.168.88.129 Port: 6379 - Password: + Password: 123456 DB: 1 Service: MaxSessionLife: 2h diff --git a/vo/tenement.go b/vo/tenement.go index 1cc743f..9dda5ff 100644 --- a/vo/tenement.go +++ b/vo/tenement.go @@ -18,6 +18,7 @@ type TenementCreationForm struct { InvoicePhone *string `json:"invoicePhone"` Bank *string `json:"bank"` Account *string `json:"bankAccount"` + MoveIn *string `json:"moveIn"` } type TenementQueryResponse struct {