getInstall接口:添加bot公私有字段isPublic
This commit is contained in:
parent
0ab120db9c
commit
be845024ab
|
|
@ -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())
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue