package structs import "zhiyuan/services/structs/calc" type MaterialItemCalcParam struct { Name string `json:"name" label:"变量名称"` Value float64 `json:"value" label:"变量值"` HoleHeight float64 `json:"hole_height" label:"门洞高度"` WallHeight float64 `json:"wall_height" label:"墙面高度"` WindowHeight float64 `json:"window_height" label:"窗户高度"` LossRate float64 `json:"loss_rate" label:"损耗系数"` FixNum float64 `json:"fix_num" label:"固定数"` RoomNum int `json:"room_num"` ToiletNum int `json:"toilet_num"` KitchenNum int `json:"kitchen_num"` RestaurantNum int `json:"restaurant_num"` BaseMoney float64 `json:"base_money"` AddRoomMoney float64 `json:"add_room_money"` AddToiletMoney float64 `json:"add_toilet_money"` AddKitchenMoney float64 `json:"add_kitchen_money"` AddRestaurantMoney float64 `json:"add_restaurant__money"` } type MaterialBidCalcSetting struct { RoomNum int `json:"roomNum"` ToiletNum int `json:"toilet_num"` KitchenNum int `json:"kitchen_num"` RestaurantNum int `json:"restaurant_num"` KitchenHole float64 `json:"kitchen_hole"` BalconyArea float64 `json:"balcony_area"` BalconyHole float64 `json:"balcony_hole"` BalconyRound float64 `json:"balcony_round"` BalconyWindow float64 `json:"balcony_window"` KitchenWallArea float64 `json:"kitchen_wall_area"` ToiletWallArea float64 `json:"toilet_wall_area"` } type MaterialBidOrderItem struct { ID int `json:"id"` BidName string `json:"bid_name"` Price float64 `json:"price"` } type MaterialBidOrderParam struct { RoomType int `json:"room_type" label:"房屋类型" binding:"gt=0"` RoomName string `json:"room_name" label:"房屋" binding:"required"` Area float64 `json:"area" label:"面积" binding:"gt=0"` Round float64 `json:"round" label:"周长" binding:"gt=0"` Hole float64 `json:"hole" label:"门洞" binding:"gte=0"` Window float64 `json:"window" label:"窗宽" binding:"gte=0"` Items []MaterialBidOrderItem `json:"items"` } type MaterialPkgList struct { ID int `json:"id"` PkgName string `json:"pkg_name"` TransportRate float64 `json:"transport_rate"` ManageRate float64 `json:"manage_rate"` DesignFee float64 `json:"design_fee"` SanitationRate float64 `json:"sanitation_rate"` PackageRate float64 `json:"package_rate"` ProfitRate float64 `json:"profit_rate"` BuildCustomizeRate float64 `json:"build_customize_rate"` MaterialCustomizeRate float64 `json:"material_customize_rate"` MinDiscount float64 `json:"min_discount"` DiscountRate float64 `json:"discount_rate"` DiscountRate100 float64 `json:"discount_rate100"` ToiletRate float64 `json:"toilet_rate"` RoomPics string `json:"room_pics"` ShowHome int `json:"show_home"` RoomPicsDecode map[int]string `json:"room_pics_decode"` Outline string `json:"outline"` OutlineDecode calc.Outline `json:"outline_decode"` CreatedAt string `json:"created_at"` } type MaterialBidList struct { ID int `json:"id"` Category int `json:"category"` CategoryName string `json:"category_name"` PkgID int `json:"pkg_id"` BidName string `json:"bid_name"` CalcType int `json:"calc_type"` CalcTypeName string `json:"calc_type_name"` TypeID int `json:"type_id"` TypeIDs string `json:"type_ids"` TypeNames string `json:"type_names"` CalcParam string `json:"calc_param"` Unit int `json:"unit"` UnitName string `json:"unit_name"` Level int `json:"level"` Price float64 `json:"price"` CalcParamDecode MaterialItemCalcParam `json:"calc_param_decode"` RoomType int `json:"room_type"` RoomTypeName string `json:"room_type_name"` Description string `json:"description"` } type MaterialBidCustomize struct { ID int `json:"id"` Num float64 `json:"num"` Price float64 `json:"price"` Total float64 `json:"total"` RoomTypeName string `json:"room_type_name"` CategoryName string `json:"category_name"` BidName string `json:"bid_name"` UnitName string `json:"unit_name"` } type HouseStyle struct { Num int `json:"num"` Type int `json:"type"` } type MaterialBidOrderAuth struct { Finish bool `json:"finish"` Edit bool `json:"edit"` } type MaterialBidOrderList struct { ID int `json:"id"` Type int `json:"type"` PkgID int `json:"pkg_id"` PkgName string `json:"pkg_name"` CustomerName string `json:"customer_name"` CustomerPhone string `json:"customer_phone"` HouseAddress string `json:"house_address"` HouseArea float64 `json:"house_area"` HouseStyle string `json:"house_style"` HouseStyleDecode []HouseStyle `json:"house_style_decode"` RoomText string `json:"room_text"` Param string `json:"param"` ParamDecode []MaterialBidOrderParam `json:"param_decode"` Customize string `json:"customize"` CustomizeDecode map[int][]MaterialBidCustomize `json:"customize_decode"` PackagePrice float64 `json:"package_price"` PackagePriceDetail string `json:"package_price_detail"` PackagePriceDecode calc.PackagePrice `json:"package_price_decode"` CustomizePrice float64 `json:"customize_price"` CustomizePriceDetail string `json:"customize_price_detail"` CustomizePriceDecode calc.CustomizePrice `json:"customize_price_decode"` InclusivePrice float64 `json:"inclusive_price"` InclusivePriceDetail string `json:"inclusive_price_detail"` InclusivePriceDecode calc.InclusivePrice `json:"inclusive_price_decode"` InclusiveCost float64 `json:"inclusive_cost"` InclusiveCostDetail string `json:"inclusive_cost_detail"` InclusiveCostDecode calc.InclusiveCost `json:"inclusive_cost_decode"` ToiletPrice float64 `json:"toilet_price"` ToiletPriceDetail string `json:"toilet_price_detail"` ToiletPriceDecode calc.PackagePrice `json:"toilet_price_decode"` OutlinePriceDecode calc.OutlinePrice `json:"outline_price_decode"` TotalPrice float64 `json:"total_price"` BaseDiscount float64 `json:"base_discount"` BaseInterestRate float64 `json:"base_interest_rate"` InterestRate float64 `json:"interest_rate"` ProfitRate float64 `json:"profit_rate"` State int `json:"state"` StateName string `json:"state_name"` StateColor string `json:"state_color"` IsElevator int `json:"is_elevator"` FloorNum int `json:"floor_num"` InclusiveArea int `json:"inclusive_area"` TransportRate float64 `json:"transport_rate"` AdminID int `json:"admin_id"` AdminName string `json:"admin_name"` Remarks string `json:"remarks"` Auth MaterialBidOrderAuth `json:"auth"` CreatedAt string `json:"created_at"` UpdatedAt string `json:"updated_at"` DeletedAt string `json:"deleted_at"` } type MatPickWorkList struct { ID int `json:"id"` RoomType int `json:"room_type"` ItemType int `json:"item_type"` ItemTypeName string `json:"item_type_name"` Standard string `json:"standard"` Cycle string `json:"cycle"` ConfirmType string `json:"confirm_type"` PickName string `json:"pick_name"` } type MaterialPickList struct { ID int `json:"id"` RoomType int `json:"room_type"` ItemType int `json:"item_type"` ItemTypeName string `json:"item_type_name"` Standard string `json:"standard"` Cycle string `json:"cycle"` ConfirmType string `json:"confirm_type"` Level int `json:"level"` PickName string `json:"pick_name"` } type MaterialPickOrderContent struct { RoomType int `json:"room_type"` RoomName string `json:"room_name"` Picks []struct { PickID int `json:"pick_id"` PickName string `json:"pick_name"` ItemID int `json:"item_id"` ItemName string `json:"item_name"` BrandID int `json:"brand_id"` BrandName string `json:"brand_name"` UnitName string `json:"unit_name"` Level int `json:"level"` Remarks string `json:"remarks"` Color string `json:"color"` Num int `json:"num"` } `json:"picks"` } type PackageCostExtra struct { Direct float64 `json:"direct"` Valve float64 `json:"value"` Hole float64 `json:"hole"` HoleBase float64 `json:"hole_base"` HoleExtra float64 `json:"hole_extra"` KitchenPipe float64 `json:"kitchen_pipe"` ToiletTopPipe float64 `json:"toilet_pipe"` ToiletWaterPipe float64 `json:"toilet_water_pipe"` } type HouseList struct { ID int `json:"id"` UserID int `json:"user_id"` District int `json:"district"` DistrictName string `json:"district_name"` Address string `json:"address"` PkgID int `json:"pkg_id"` LinkName string `json:"link_name"` LinkPhone string `json:"link_phone"` ShopID int `json:"shop_id"` Designer int `json:"designer"` DesignerName string `json:"designer_name"` Supervisor int `json:"supervisor"` SupervisorName string `json:"supervisor_name"` Salesman int `json:"salesman"` ProjectManager int `json:"project_manager"` ProjectManagerName string `json:"project_manager_name"` ProjectLeader int `json:"project_leader"` ProjectLeaderName string `json:"project_leader_name"` ProjectStart string `json:"project_start"` ProjectEnd string `json:"project_end"` WarrantyStart string `json:"warranty_start"` WarrantyMark string `json:"warranty_mark"` CreatedAt string `json:"created_at"` WarrantyType []*WarrantyType `json:"warranty_type"` WarrantyPeriodBase int `json:"warranty_period_base"` WarrantyPeriodMaterial int `json:"warranty_period_material"` WarrantyPeriodElectric int `json:"warranty_period_electric"` WarrantyPeriodBaseAddDate int `json:"warranty_period_base_adddate"` WarrantyPeriodMaterialAddDate int `json:"warranty_period_material_adddate"` WarrantyPeriodElectricAddDate int `json:"warranty_period_electric_adddate"` Pictures string `json:"pictures"` Mark string `json:"mark"` } type WarrantyType struct { ID int `json:"id"` Name string `json:"type_name"` LeftDate int `json:"left_date"` InWarranty int `json:"in_warranty"` WarrantyEnd int `json:"warranty_end"` WarrantyPeriod int `json:"warranty_period"` WarrantyPeriodAddDate int `json:"warranty_period_adddate"` } type QuoteOrderItemReturn struct { ID int64 `json:"id"` Category int64 `json:"category"` Name string `json:"name"` Price float64 `json:"price"` Description string `json:"description"` Total float64 `json:"total"` } type QuoteOrderReturn struct { RoomType int64 `json:"room_type" label:"房屋类型"` RoomName string `json:"room_name" label:"房屋"` Categorys map[int64]float64 `json:"categorys"` Total float64 `json:"total"` Items []QuoteOrderItemReturn `json:"items"` } type QuoteReturn struct { Rooms []QuoteOrderReturn `json:"rooms"` Categorys map[int64]float64 `json:"categorys"` Total float64 `json:"total"` }