更新密码找回uniapp
This commit is contained in:
1 parent
7f9a66da0f
commit
3fdda89833
1304 files changed
+3503
-26132
No files matched your search
@@ -10,14 +10,9 @@ type StorageMigrationController struct {
|
||||
beego.Controller
|
||||
}
|
||||
|
||||
// MigrateToQiniu 迁移文件到七牛云
|
||||
// POST /platform/storage/migrateToQiniu
|
||||
func (c *StorageMigrationController) MigrateToQiniu() {
|
||||
// 这里简化处理,实际应该使用异步任务
|
||||
// 可以使用 goroutine + 进度查询接口实现
|
||||
|
||||
// 获取租户ID(从token或参数)
|
||||
tid := uint64(1) // 示例,实际应从认证信息获取
|
||||
tid := uint64(1)
|
||||
|
||||
progress, err := services.MigrateLocalToQiniu(tid)
|
||||
if err != nil {
|
||||
@@ -43,11 +38,7 @@ func (c *StorageMigrationController) MigrateToQiniu() {
|
||||
_ = c.ServeJSON()
|
||||
}
|
||||
|
||||
// GetMigrationProgress 获取迁移进度
|
||||
// GET /platform/storage/migrationProgress
|
||||
func (c *StorageMigrationController) GetMigrationProgress() {
|
||||
// 这里需要实现进度查询逻辑
|
||||
// 可以使用全局变量或Redis存储进度信息
|
||||
c.Data["json"] = map[string]interface{}{
|
||||
"code": 200,
|
||||
"msg": "success",
|
||||
|
||||
Reference in new issue
Block a user