Files
assets/controller/enum/enum_controller.go
2026-03-18 10:18:03 +08:00

32 lines
835 B
Go

package controller
import (
"assets/model/dto/enum"
"assets/service/enum"
"context"
)
type enum struct{}
// Enum 枚举控制器
var Enum = new(enum)
// init 初始化表单配置
func init() {
}
// GetAssetType 获取资产类型
func (c *enum) GetAssetType(ctx context.Context, req *dto.GetAssetTypeReq) (res *dto.GetAssetTypeRes, err error) {
return service.Enum.GetAssetType(ctx, req)
}
// GetCategoryAttrType 获取分类属性类型
func (c *enum) GetCategoryAttrType(ctx context.Context, req *dto.GetCategoryAttrTypeReq) (res *dto.GetCategoryAttrTypeRes, err error) {
return service.Enum.GetCategoryAttrType(ctx, req)
}
// GetSpecsUnit 获取规格单位
func (c *enum) GetSpecsUnit(ctx context.Context, req *dto.GetSpecsUnitReq) (res *dto.GetSpecsUnitRes, err error) {
return service.Enum.GetSpecsUnit(ctx, req)
}