mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-05 15:26:36 +08:00
refactor(architecture): eliminate internal package and complete cordis single-owner model and repository migration
- Physically purged all legacy internal/ packages, centralized pkg/model/ and pkg/repository/ - Migrated domain models and database repositories into self-contained owner plugins (user, auth, message_gateway, admin, upload, risk_control) - Decoupled cross-plugin interactions via pure core/contracts and typed EventBus - Ensured 100% test coverage pass, zero data races (-race clean), and 0 lint issues in make code-check
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
// Copyright 2026 Arctel.net
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Package upload 提供上传域的门面与类型重导出。
|
||||
package upload
|
||||
|
||||
import (
|
||||
"github.com/Rain-kl/Wavelet/plugins/domain/upload/models"
|
||||
)
|
||||
|
||||
// UploadStatus 上传状态类型别名
|
||||
//
|
||||
//nolint:revive
|
||||
type UploadStatus = models.UploadStatus
|
||||
|
||||
// UploadMetadata 上传元数据类型别名
|
||||
//
|
||||
//nolint:revive
|
||||
type UploadMetadata = models.UploadMetadata
|
||||
|
||||
// Upload 上传实体类型别名
|
||||
type Upload = models.Upload
|
||||
|
||||
// UploadStat 上传统计实体类型别名
|
||||
//
|
||||
//nolint:revive
|
||||
type UploadStat = models.UploadStat
|
||||
|
||||
// 上传状态常量别名
|
||||
const (
|
||||
UploadStatusPending = models.UploadStatusPending
|
||||
UploadStatusUsed = models.UploadStatusUsed
|
||||
UploadStatusDeleted = models.UploadStatusDeleted
|
||||
)
|
||||
Reference in New Issue
Block a user