开放 生成系统凭证 接口
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user