Files
xk-of-api/internal/controller/pricing/pricing_v1.go
2026-07-18 05:58:41 +08:00

22 lines
562 B
Go

package pricing
import (
"context"
"xk-of-api/api/pricing/v1"
"xk-of-api/internal/response"
"xk-of-api/internal/service"
)
// Plans 获取官网可展示套餐。
func (c *ControllerV1) Plans(ctx context.Context, req *v1.PlansReq) (res *v1.PlansRes, err error) {
response.Success(ctx, service.Pricing.Plans())
return nil, nil
}
// AdminPlans 获取后台套餐列表。
func (c *ControllerV1) AdminPlans(ctx context.Context, req *v1.AdminPlansReq) (res *v1.AdminPlansRes, err error) {
response.Success(ctx, service.Pricing.Plans())
return nil, nil
}