fix: api descript

This commit is contained in:
wwweww
2026-02-28 05:33:16 +08:00
parent 5930fb0dde
commit d2f33b4b96
243 changed files with 37065 additions and 780 deletions
@@ -1,13 +1,22 @@
package svc
import "juwan-backend/app/objectstory/rpc/internal/config"
import (
"context"
"juwan-backend/app/objectstory/rpc/internal/config"
"github.com/aws/aws-sdk-go-v2/service/s3"
)
type ServiceContext struct {
Config config.Config
S3 *s3.Client
}
func NewServiceContext(c config.Config) *ServiceContext {
s3obj := NewObjectStorage(c.S3Conf)
return &ServiceContext{
Config: c,
S3: s3obj.MustNews3Client(context.Background()),
}
}