23 lines
496 B
Go
23 lines
496 B
Go
// Code scaffolded by goctl. Safe to edit.
|
|
// goctl 1.9.2
|
|
|
|
package svc
|
|
|
|
import (
|
|
"github.com/zeromicro/go-zero/rest"
|
|
"juwan-backend/app/objectstory/api/internal/config"
|
|
"juwan-backend/app/objectstory/api/internal/middleware"
|
|
)
|
|
|
|
type ServiceContext struct {
|
|
Config config.Config
|
|
FileSizeLimit rest.Middleware
|
|
}
|
|
|
|
func NewServiceContext(c config.Config) *ServiceContext {
|
|
return &ServiceContext{
|
|
Config: c,
|
|
FileSizeLimit: middleware.NewFileSizeLimitMiddleware().Handle,
|
|
}
|
|
}
|