@jx3box/jx3box-common-ui 9.2.5 → 9.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -2,18 +2,18 @@ import { $next } from "@jx3box/jx3box-common/js/https";
|
|
|
2
2
|
|
|
3
3
|
// 获取提交记录
|
|
4
4
|
export function getCommitHistories(id, params) {
|
|
5
|
-
return $next(
|
|
5
|
+
return $next().get(`/api/next2/userdata/commit-history/content-meta/${id}/commit/history`, {
|
|
6
6
|
params,
|
|
7
7
|
});
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
// 通过hash获取提交记录
|
|
11
11
|
export function getCommitByHash(id, hash) {
|
|
12
|
-
return $next(
|
|
12
|
+
return $next().get(`/api/next2/userdata/commit-history/content-meta/${id}/commit/by-hash/${hash}`);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
// 提交
|
|
16
16
|
export function commitHistory(id, data) {
|
|
17
17
|
// { domain: "https://dev.next2.jx3box.com" }
|
|
18
|
-
return $next(
|
|
18
|
+
return $next().post(`/api/next2/userdata/commit-history/content-meta/${id}/commit`, data);
|
|
19
19
|
}
|