public class Comment extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
CreateCommentResp |
create(CreateCommentReq req)
创建评论,为一个任务创建评论,或者回复该任务的某个评论。
|
CreateCommentResp |
create(CreateCommentReq req,
RequestOptions reqOptions)
创建评论,为一个任务创建评论,或者回复该任务的某个评论。
|
DeleteCommentResp |
delete(DeleteCommentReq req)
删除评论,删除一条评论。
|
DeleteCommentResp |
delete(DeleteCommentReq req,
RequestOptions reqOptions)
删除评论,删除一条评论。
|
GetCommentResp |
get(GetCommentReq req)
获取评论详情,给定一个评论的ID,返回评论的详情,包括内容,创建人,创建时间和更新时间等信息。
|
GetCommentResp |
get(GetCommentReq req,
RequestOptions reqOptions)
获取评论详情,给定一个评论的ID,返回评论的详情,包括内容,创建人,创建时间和更新时间等信息。
|
ListCommentResp |
list(ListCommentReq req)
获取评论列表,给定一个资源,返回该资源的评论列表。
|
ListCommentResp |
list(ListCommentReq req,
RequestOptions reqOptions)
获取评论列表,给定一个资源,返回该资源的评论列表。
|
PatchCommentResp |
patch(PatchCommentReq req)
更新评论,更新一条评论。
|
PatchCommentResp |
patch(PatchCommentReq req,
RequestOptions reqOptions)
更新评论,更新一条评论。
|
public Comment(Config config)
public CreateCommentResp create(CreateCommentReq req, RequestOptions reqOptions) throws Exception
对任务进行评论时需要评论的读取权限。详情见[清单功能概述](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/task-v2/tasklist/overview)中的“清单是如何鉴权的?“章节。 ;
官网API文档链接:https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=task&resource=comment&version=v2 ;
Exceptionpublic CreateCommentResp create(CreateCommentReq req) throws Exception
对任务进行评论时需要评论的读取权限。详情见[清单功能概述](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/task-v2/tasklist/overview)中的“清单是如何鉴权的?“章节。 ;
官网API文档链接:https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=task&resource=comment&version=v2 ;
Exceptionpublic DeleteCommentResp delete(DeleteCommentReq req, RequestOptions reqOptions) throws Exception
需要评论归属任务的读取权限,并且只能删除自己发送的评论。详情见[任务功能概述](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/task-v2/task/overview)中的“任务是如何鉴权的?”章节。 ;
官网API文档链接:https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=task&resource=comment&version=v2 ;
Exceptionpublic DeleteCommentResp delete(DeleteCommentReq req) throws Exception
需要评论归属任务的读取权限,并且只能删除自己发送的评论。详情见[任务功能概述](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/task-v2/task/overview)中的“任务是如何鉴权的?”章节。 ;
官网API文档链接:https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=task&resource=comment&version=v2 ;
Exceptionpublic GetCommentResp get(GetCommentReq req, RequestOptions reqOptions) throws Exception
获取任务的评论详情需要评论归属任务的读取权限,详情见[任务功能概述](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/task-v2/task/overview)中的“任务是如何鉴权的?”章节。 ;
官网API文档链接:https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=task&resource=comment&version=v2 ;
Exceptionpublic GetCommentResp get(GetCommentReq req) throws Exception
获取任务的评论详情需要评论归属任务的读取权限,详情见[任务功能概述](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/task-v2/task/overview)中的“任务是如何鉴权的?”章节。 ;
官网API文档链接:https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=task&resource=comment&version=v2 ;
Exceptionpublic ListCommentResp list(ListCommentReq req, RequestOptions reqOptions) throws Exception
获取任务的评论列表需要任务的读取权限,详见[任务是如何鉴权的?](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/task-v2/faq) ;
官网API文档链接:https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=task&resource=comment&version=v2 ;
Exceptionpublic ListCommentResp list(ListCommentReq req) throws Exception
获取任务的评论列表需要任务的读取权限,详见[任务是如何鉴权的?](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/task-v2/faq) ;
官网API文档链接:https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=task&resource=comment&version=v2 ;
Exceptionpublic PatchCommentResp patch(PatchCommentReq req, RequestOptions reqOptions) throws Exception
更新评论需要评论归属任务的读取权限,并且只能更新自己创建的评论。详情见[任务功能概述](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/task-v2/task/overview)中的“任务是如何鉴权的?”章节。 ;
官网API文档链接:https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=task&resource=comment&version=v2 ;
Exceptionpublic PatchCommentResp patch(PatchCommentReq req) throws Exception
更新评论需要评论归属任务的读取权限,并且只能更新自己创建的评论。详情见[任务功能概述](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/task-v2/task/overview)中的“任务是如何鉴权的?”章节。 ;
官网API文档链接:https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=task&resource=comment&version=v2 ;
ExceptionCopyright © 2026. All rights reserved.