23 lines
580 B
JavaScript
23 lines
580 B
JavaScript
import {get, post} from "metersphere-frontend/src/plugins/request"
|
|
const BASE_URL = "/test/case/comment/";
|
|
|
|
export function testCaseCommentList(id) {
|
|
return get(BASE_URL + `list/${id}`);
|
|
}
|
|
|
|
export function testCaseCommentListByType(id, type) {
|
|
if (type) {
|
|
return get(BASE_URL + `list/${id}/${type}`);
|
|
}
|
|
return get(BASE_URL + `list/${id}`);
|
|
}
|
|
|
|
export function testCaseCommentListByTypeAndBelongId(id, type, belongId) {
|
|
return get(BASE_URL + `list/${id}/${type}/${belongId}`);
|
|
}
|
|
|
|
export function testCaseCommentAdd(param) {
|
|
return post(BASE_URL + 'save', param);
|
|
}
|
|
|