forked from free-lancers/electricity_bill_calc_service
enhance(tenement):基本完成商户相关借口,待测。
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
package vo
|
||||
|
||||
import (
|
||||
"electricity_bill_calc/model"
|
||||
"electricity_bill_calc/types"
|
||||
)
|
||||
|
||||
type TenementCreationForm struct {
|
||||
Name string `json:"name"`
|
||||
ShortName *string `json:"shortName"`
|
||||
@@ -14,3 +19,43 @@ type TenementCreationForm struct {
|
||||
Bank *string `json:"bank"`
|
||||
Account *string `json:"bankAccount"`
|
||||
}
|
||||
|
||||
type TenementQueryResponse struct {
|
||||
Id string `json:"id"`
|
||||
Name string `json:"name"`
|
||||
ShortName *string `json:"shortName"`
|
||||
Address *string `json:"address"`
|
||||
Contact *string `json:"contact"`
|
||||
Phone *string `json:"phone"`
|
||||
Building *string `json:"building"`
|
||||
BuildingName *string `json:"buildingName"`
|
||||
OnFloor *string `json:"onFloor"`
|
||||
MovedInAt *types.Date `json:"movedInAt"`
|
||||
MovedOutAt *types.Date `json:"movedOutAt"`
|
||||
CreatedAt types.DateTime `json:"createdAt"`
|
||||
LastModifiedAt *types.DateTime `json:"lastModifiedAt"`
|
||||
}
|
||||
|
||||
type SimplifiedTenementResponse struct {
|
||||
Id string `json:"id"`
|
||||
FullName string `json:"fullName"`
|
||||
ShortName *string `json:"shortName"`
|
||||
Park string `json:"park"`
|
||||
}
|
||||
|
||||
type TenementDetailResponse struct {
|
||||
Id string `json:"id"`
|
||||
FullName string `json:"fullName"`
|
||||
ShortName *string `json:"shortName"`
|
||||
Address string `json:"address"`
|
||||
Contact string `json:"contact" copier:"ContactName"`
|
||||
Phone string `json:"phone" copier:"ContactPhone"`
|
||||
Building string `json:"building"`
|
||||
BuildingName *string `json:"buildingName"`
|
||||
OnFloor *string `json:"onFloor"`
|
||||
InvoiceInfo *model.InvoiceTitle `json:"invoiceInfo"`
|
||||
MovedInAt *types.Date `json:"movedInAt"`
|
||||
MovedOutAt *types.Date `json:"movedOutAt"`
|
||||
CreatedAt types.DateTime `json:"createdAt"`
|
||||
LastModifiedAt *types.DateTime `json:"lastModifiedAt"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user