forked from free-lancers/electricity_bill_calc_service
		
	fix(#16):修复商户入驻时间为指定日期,并非当前日期
This commit is contained in:
		| @@ -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, | ||||
| 		}..., | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
| @@ -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 { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user