import Api from './Api'; export interface IComment { issueId: string; commentText: string; } export interface UComment { commentId: string; objectVersionNumber: number; commentText: string; } export interface IReplyCreate { issueId: string; parentId: string; replyToUserId: string; commentText: string; } declare class IssueCommentApi extends Api { get prefix(): string; /** * 创建issue评论 * @param commitObj */ create(commitObj: IComment): any; /** * 更新issue的评论 * @param commitObj */ update(commitUpdateObj: UComment, isSelf: boolean): any; /** * 根据commitId删除评论, 单条 * @param commitId */ delete(commitId: string, isSelf: boolean): any; deleteWithReply(commentId: string, isSelf: boolean): any; createReply(data: IReplyCreate): any; getReplys(commentId: string): any; } declare const issueCommentApi: IssueCommentApi; export { issueCommentApi };