getInstall接口:添加bot公私有字段isPublic

This commit is contained in:
wanjia 2023-04-03 09:47:03 +08:00
parent 0ab120db9c
commit be845024ab
2 changed files with 4 additions and 0 deletions

View File

@ -893,14 +893,17 @@ public class UserService extends AbstractUserBot implements IUserService {
String name = "";
String logo = "";
int isPublic;
if (bot!=null){
name = bot.getBotName();
logo = bot.getLogo();
isPublic = bot.getIsPublic();
}else {
throw new BotException("不存在该bot");
}
getInstallBotResponse.setLogo(logo);
getInstallBotResponse.setMarketName(name);
getInstallBotResponse.setIsPublic(isPublic);
//2.到install_bot表中查看state
List<InstallBot> installBots = installMapper.selectList(new QueryWrapper<InstallBot>()
.eq("bot_id",getInstallBotRequest.getBotId())

View File

@ -25,6 +25,7 @@ public class GetInstallBotResponse implements Serializable {
private String marketName;
private Integer state;
private String logo;
private Integer isPublic;
private Integer registerId;
private String registerLogin;
private String registerName;