开放 生成系统凭证 接口

This commit is contained in:
caozehui
2026-04-20 19:55:21 +08:00
parent 8c2f5a0e17
commit 9be824777b
2 changed files with 3 additions and 1 deletions

View File

@@ -6,6 +6,7 @@ import com.njcn.msgpush.module.push.dal.dataobject.credential.dto.CredentialResp
import com.njcn.msgpush.module.push.service.credential.ICredentialService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.security.PermitAll;
import jakarta.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
@@ -26,6 +27,7 @@ public class CredentialController {
@Autowired
private ICredentialService credentialService;
@PermitAll
@PostMapping("/generate")
@Operation(summary = "生成系统凭证")
public CommonResult<CredentialRespDTO> generateCredential(@Valid @RequestBody CredentialReqDTO reqDTO) {

View File

@@ -230,7 +230,7 @@ public class MessageRetryQueueServiceImpl extends ServiceImpl<MessageRetryQueueM
if (CollUtil.isEmpty(messageIds)) {
return false;
}
return remove(new LambdaQueryWrapper<MessageRetryQueueDO>().in(MessageRetryQueueDO::getMessageId, messageIds));
return this.baseMapper.delete(new LambdaQueryWrapper<MessageRetryQueueDO>().in(MessageRetryQueueDO::getMessageId, messageIds)) > 0;
}
@Override