forked from free-lancers/electricity_bill_calc_service
		
	enhance(tenement):基本完成商户部分功能的数据库交互。
This commit is contained in:
		
							
								
								
									
										10
									
								
								model/invoice.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								model/invoice.go
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,10 @@ | ||||
| package model | ||||
|  | ||||
| type InvoiceTitle struct { | ||||
| 	Name    string `json:"name"` | ||||
| 	USCI    string `json:"usci"` | ||||
| 	Address string `json:"address"` | ||||
| 	Phone   string `json:"phone"` | ||||
| 	Bank    string `json:"bank"` | ||||
| 	Account string `json:"account"` | ||||
| } | ||||
							
								
								
									
										22
									
								
								model/tenement.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								model/tenement.go
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,22 @@ | ||||
| package model | ||||
|  | ||||
| import "electricity_bill_calc/types" | ||||
|  | ||||
| type Tenement struct { | ||||
| 	Id             string          `json:"id"` | ||||
| 	Park           string          `json:"parkId" db:"park_id"` | ||||
| 	FullName       string          `json:"fullName" db:"full_name"` | ||||
| 	ShortName      *string         `json:"shortName" db:"short_name"` | ||||
| 	Address        string          `json:"address"` | ||||
| 	ContactName    string          `json:"contactName" db:"contact_name"` | ||||
| 	ContactPhone   string          `json:"contactPhone" db:"contact_phone"` | ||||
| 	Building       string          `json:"building"` | ||||
| 	BuildingName   *string         `json:"buildingName" db:"building_name"` | ||||
| 	OnFloor        *string         `json:"onFloor" db:"on_floor"` | ||||
| 	InvoiceInfo    *InvoiceTitle   `json:"invoiceInfo" db:"invoice_info"` | ||||
| 	MovedInAt      *types.DateTime `json:"movedInAt" db:"moved_in_at"` | ||||
| 	MovedOutAt     *types.DateTime `json:"movedOutAt" db:"moved_out_at"` | ||||
| 	CreatedAt      types.DateTime  `json:"createdAt" db:"created_at"` | ||||
| 	LastModifiedAt types.DateTime  `json:"lastModifiedAt" db:"last_modified_at"` | ||||
| 	DeletedAt      *types.DateTime `json:"deletedAt" db:"deleted_at"` | ||||
| } | ||||
		Reference in New Issue
	
	Block a user