123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130 |
- package calc
- type CustomizePrice struct {
- Build float64 `json:"build"`
- BuildPrice CustomizeBuildPrice `json:"build_price"`
- Design float64 `json:"design"`
- MaterialAdd float64 `json:"material_add"`
- MaterialDel float64 `json:"material_del"`
- MaterialUpgrade float64 `json:"material_upgrade"`
- Manage float64 `json:"manage"`
- Transport float64 `json:"transport"`
- Sanitation float64 `json:"sanitation"`
- Cost float64 `json:"cost"`
- Total float64 `json:"total"`
- }
- type CustomizeBuildPrice struct {
- Direct float64 `json:"direct"`
- Manage float64 `json:"manage"`
- Transport float64 `json:"transport"`
- Sanitation float64 `json:"sanitation"`
- Total float64 `json:"total"`
- }
- type InclusivePrice struct {
- Diy float64 `json:"diy"`
- Furniture float64 `json:"furniture"`
- Lamp float64 `json:"lamp"`
- Curtain float64 `json:"curtain"`
- Discount float64 `json:"discount"`
- Total float64 `json:"total"`
- }
- type InclusiveCost struct {
- Diy float64 `json:"diy"`
- Furniture float64 `json:"furniture"`
- Lamp float64 `json:"lamp"`
- Curtain float64 `json:"curtain"`
- Prize float64 `json:"prize"`
- Deposit float64 `json:"deposit"`
- Appliances float64 `json:"appliances"`
- Total float64 `json:"total"`
- }
- type PackageBuildPrice struct {
- Direct float64 `json:"direct"`
- Manage float64 `json:"manage"`
- Transport float64 `json:"transport"`
- Sanitation float64 `json:"sanitation"`
- Design float64 `json:"design"`
- CementExtra float64 `json:"cement_extra"`
- TotalCost float64 `json:"total_cost"`
- Total float64 `json:"total"`
- }
- type PackagePrice struct {
- Material float64 `json:"material"`
- Build float64 `json:"build"`
- BuildPrice PackageBuildPrice `json:"build_price"`
- CostExtra float64 `json:"cost_extra"`
- FinishExtra float64 `json:"finish_extra"`
- Design float64 `json:"design"`
- Cost float64 `json:"cost"`
- Total float64 `json:"total"`
- }
- type PriceReturn struct {
- PackagePrice float64 `json:"package_price"`
- PackagePriceDetail string `json:"package_price_detail"`
- CustomizePrice float64 `json:"customize_price"`
- CustomizePriceDetail string `json:"customize_price_detail"`
- InclusivePrice float64 `json:"inclusive_price"`
- InclusivePriceDetail string `json:"inclusive_price_detail"`
- InclusiveCost float64 `json:"inclusive_cost"`
- InclusiveCostDetail string `json:"inclusive_cost_detail"`
- ToiletPrice float64 `json:"toilet_price"`
- ToiletPriceDetail string `json:"toilet_price_detail"`
- TotalPrice float64 `json:"total_price"`
- BaseDiscount float64 `json:"base_discount"`
- BaseInterestRate float64 `json:"base_interest_rate"`
- InterestRate float64 `json:"interest_rate"`
- HouseArea float64 `json:"house_area"`
- ProfitRate float64 `json:"ProfitRate"`
- Customize string `json:"content"`
- Param string `json:"param"`
- IsElevator int `json:"is_elevator"`
- FloorNum int `json:"floor_num"`
- TransportRate float64 `json:"transport_rate"`
- OutlinePrice OutlinePrice `json:"outline_price"`
- }
- type Outline struct {
- InsideScale float64 `json:"inside_scale" label:"面积比例"`
- AreaPrice []AreaPrice `json:"area_price" label:"面积单价" binding:"dive"`
- RoomNum float64 `json:"room_num" label:"基本房间数"`
- RoomPrice float64 `json:"room_price" label:"房间单价"`
- KitchenNum float64 `json:"kitchen_num" label:"基本厨房数"`
- KitchenPrice float64 `json:"kitchen_price" label:"厨房单价"`
- ToiletNum float64 `json:"toilet_num" label:"基本卫生间数"`
- ToiletPrice float64 `json:"toilet_price" label:"卫生间单价"`
- DiscountScale float64 `json:"discount_scale" label:"折扣比例"`
- ExtraItem []ExtraItem `json:"extra_item" label:"附加项目" binding:"dive"`
- }
- type AreaPrice struct {
- Area float64 `json:"area" label:"面积"`
- Price float64 `json:"price" label:"单价"`
- }
- type ExtraItem struct {
- Name string `json:"name" label:"名称"`
- Type int `json:"type" label:"类型"`
- Price float64 `json:"price" label:"单价"`
- }
- type ExtraItemPrice struct {
- Name string `json:"name" label:"名称"`
- Price float64 `json:"price" label:"价格"`
- }
- type OutlinePrice struct {
- Area float64 `json:"area" label:"计算面积"`
- AreaPrice float64 `json:"area_price" label:"面积价格"`
- RoomPrice float64 `json:"room_price" label:"房间价格"`
- KitchenPrice float64 `json:"kitchen_price" label:"厨房价格"`
- ToiletPrice float64 `json:"toilet_price" label:"卫生间价格"`
- ExtraItemPrice []ExtraItemPrice `json:"extra_item_price"`
- DiscountPrice float64 `json:"discount_price"`
- Total float64 `json:"total"`
- }
|