package budget2 import ( "zhiyuan/services/budget2/pkg2024" "github.com/gin-gonic/gin" ) type Pkg interface { Content() ([]byte, error) Init(int64, float64, []int) error Load(int64, []byte) error Handle(*gin.Context, string) error ReturnResult([]string) interface{} Export(int64) (string, error) UpdateAmount(map[string]interface{}) map[string]interface{} ManagerPrice() map[string]float64 BuildControl() map[string]float64 AuxiliaryControl() map[string]float64 Materials() map[int64]float64 Statistics() string } type PkgInfo struct { Name string AreaId int64 Pkg Pkg } var Pkgs = map[int64]PkgInfo{ 3: { Name: "一房一价A10套餐", AreaId: 1, Pkg: &pkg2024.PkgForm{}, }, 4: { Name: "一房一价A8套餐", AreaId: 1, Pkg: &pkg2024.PkgForm{}, }, 5: { Name: "一房一价A5套餐", AreaId: 1, Pkg: &pkg2024.PkgForm{}, }, 16: { Name: "2024年整装1.0", AreaId: 1, Pkg: &pkg2024.PkgForm{}, }, }