配置安装的Bot接口:加入仓库拥有者参数

This commit is contained in:
wanjia 2023-03-29 16:26:18 +08:00
parent 647f0b5dea
commit 065f82d46f
2 changed files with 3 additions and 1 deletions

View File

@ -782,7 +782,7 @@ public class UserService extends AbstractUserBot implements IUserService {
installBot.setStoreId(storeId);
installBot.setInstallerLogin(updateInstallBotRequest.getLogin());
installBot.setStoreRepo(updateInstallBotRequest.getRepoMap().get(storeId));
installBot.setRepoOwner(updateInstallBotRequest.getRepoMap().get(storeId));
installBot.setRepoOwner(updateInstallBotRequest.getRepoOwnerMap().get(storeId));
//TODO 如果bot生效通过平台该bot
installBot.setState(updateInstallBotRequest.getState());
return installBot;

View File

@ -31,4 +31,6 @@ public class UpdateInstallBotRequest implements Serializable {
private List<Integer> storeList;
//前端修改 storeId-repo
private Map<Integer,String> repoMap;
private Map<Integer, String> repoOwnerMap;
}