Skip to content

Commit

Permalink
[fix]订阅无法导入
Browse files Browse the repository at this point in the history
  • Loading branch information
yajuhua committed Jun 29, 2024
1 parent 018b2bc commit bc45f3f
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import io.github.yajuhua.podcast2.pojo.dto.UserLoginDTO;
import io.github.yajuhua.podcast2.pojo.entity.*;
import io.github.yajuhua.podcast2.pojo.vo.UserLoginVO;
import io.github.yajuhua.podcast2.service.ExtendService;
import io.github.yajuhua.podcast2.service.UserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
Expand Down Expand Up @@ -60,6 +61,8 @@ public class UserController {
private Gson gson;
@Autowired
private Alist alist;
@Autowired
private ExtendService extendService;

/**
* 用户登录
Expand Down Expand Up @@ -187,7 +190,7 @@ public Result dataImport(@RequestBody List<DataExport> dataExportList){
//添加到数据库
for (DataExport export : dataExportList) {
subMapper.addSub(export.getSub());
extendMapper.batchExtend(export.getExtendList());
extendService.batchExtend(export.getExtendList());
}
return Result.success();
}
Expand Down

0 comments on commit bc45f3f

Please sign in to comment.