@be-link/cs-cli-nodejs 0.0.66 → 0.0.67
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.
|
@@ -2,7 +2,13 @@ import BaseService from '../baseService';
|
|
|
2
2
|
import { BizTag } from './type';
|
|
3
3
|
declare class BizTagService extends BaseService implements BizTag.Controller {
|
|
4
4
|
prefixUrl: string;
|
|
5
|
+
mget(request: BizTag.Request.IMGet): Promise<BizTag.Response.IMGet>;
|
|
5
6
|
mgetByItem(request: BizTag.Request.IMGetByItem): Promise<BizTag.Response.IMGetByItem>;
|
|
7
|
+
create(request: BizTag.Request.ICreate): Promise<void>;
|
|
8
|
+
update(request: BizTag.Request.IUpdate): Promise<void>;
|
|
9
|
+
upsertBizTagRelation(request: BizTag.Request.IUpsertBizTagRelation): Promise<void>;
|
|
10
|
+
delete(request: BizTag.Request.IDelete): Promise<void>;
|
|
11
|
+
deleteByItem(request: BizTag.Request.IDeleteByItem): Promise<void>;
|
|
6
12
|
}
|
|
7
13
|
declare const bizTagService: BizTagService;
|
|
8
14
|
export default bizTagService;
|
|
@@ -10,9 +10,27 @@ class BizTagService extends baseService_1.default {
|
|
|
10
10
|
super(...arguments);
|
|
11
11
|
this.prefixUrl = '/biz-tag';
|
|
12
12
|
}
|
|
13
|
+
mget(request) {
|
|
14
|
+
return (0, http_1.callApi)(this.getApiUrl(this.mget), request);
|
|
15
|
+
}
|
|
13
16
|
mgetByItem(request) {
|
|
14
17
|
return (0, http_1.callApi)(this.getApiUrl(this.mgetByItem), request);
|
|
15
18
|
}
|
|
19
|
+
create(request) {
|
|
20
|
+
return (0, http_1.callApi)(this.getApiUrl(this.create), request);
|
|
21
|
+
}
|
|
22
|
+
update(request) {
|
|
23
|
+
return (0, http_1.callApi)(this.getApiUrl(this.update), request);
|
|
24
|
+
}
|
|
25
|
+
upsertBizTagRelation(request) {
|
|
26
|
+
return (0, http_1.callApi)(this.getApiUrl(this.upsertBizTagRelation), request);
|
|
27
|
+
}
|
|
28
|
+
delete(request) {
|
|
29
|
+
return (0, http_1.callApi)(this.getApiUrl(this.delete), request);
|
|
30
|
+
}
|
|
31
|
+
deleteByItem(request) {
|
|
32
|
+
return (0, http_1.callApi)(this.getApiUrl(this.deleteByItem), request);
|
|
33
|
+
}
|
|
16
34
|
}
|
|
17
35
|
const bizTagService = new BizTagService();
|
|
18
36
|
exports.default = bizTagService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../src/cs/modules/bizTag/service.ts"],"names":[],"mappings":";;;;;AAAA,qCAAoC;AACpC,iEAAwC;AAGxC,MAAM,aAAc,SAAQ,qBAAW;IAAvC;;QACE,cAAS,GAAW,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../src/cs/modules/bizTag/service.ts"],"names":[],"mappings":";;;;;AAAA,qCAAoC;AACpC,iEAAwC;AAGxC,MAAM,aAAc,SAAQ,qBAAW;IAAvC;;QACE,cAAS,GAAW,UAAU,CAAA;IAgChC,CAAC;IA9BC,IAAI,CAAC,OAA6B;QAChC,OAAO,IAAA,cAAO,EAA4B,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,CAAA;IAC/E,CAAC;IAED,UAAU,CAAC,OAAmC;QAC5C,OAAO,IAAA,cAAO,EAAkC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC,CAAA;IAC3F,CAAC;IAED,MAAM,CAAC,OAA+B;QACpC,OAAO,IAAA,cAAO,EAA8B,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,CAAA;IACnF,CAAC;IAED,MAAM,CAAC,OAA+B;QACpC,OAAO,IAAA,cAAO,EAA8B,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,CAAA;IACnF,CAAC;IAED,oBAAoB,CAAC,OAA6C;QAChE,OAAO,IAAA,cAAO,EACZ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,oBAAoB,CAAC,EACzC,OAAO,CACR,CAAA;IACH,CAAC;IAED,MAAM,CAAC,OAA+B;QACpC,OAAO,IAAA,cAAO,EAA8B,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,CAAA;IACnF,CAAC;IAED,YAAY,CAAC,OAAqC;QAChD,OAAO,IAAA,cAAO,EAAoC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,YAAY,CAAC,EAAE,OAAO,CAAC,CAAA;IAC/F,CAAC;CACF;AAED,MAAM,aAAa,GAAG,IAAI,aAAa,EAAE,CAAA;AACzC,kBAAe,aAAa,CAAA"}
|
|
@@ -24,10 +24,11 @@ export declare namespace BizTag {
|
|
|
24
24
|
tagId: string;
|
|
25
25
|
name: string;
|
|
26
26
|
}
|
|
27
|
-
interface
|
|
27
|
+
interface IMGet {
|
|
28
28
|
name: string;
|
|
29
29
|
tagType: CommodityEnums.CommodityBizTagType[];
|
|
30
30
|
createUser: string;
|
|
31
|
+
tagStatus?: CommodityEnums.CommonStatus;
|
|
31
32
|
pageIndex: number;
|
|
32
33
|
pageSize: number;
|
|
33
34
|
}
|
|
@@ -36,13 +37,31 @@ export declare namespace BizTag {
|
|
|
36
37
|
tagType?: CommodityEnums.CommodityBizTagType;
|
|
37
38
|
tagStatus?: CommodityEnums.CommonStatus;
|
|
38
39
|
}
|
|
40
|
+
interface IUpsertBizTagRelation {
|
|
41
|
+
type: 'byTag' | 'byItem';
|
|
42
|
+
id: string;
|
|
43
|
+
list: string[];
|
|
44
|
+
}
|
|
45
|
+
interface IDelete {
|
|
46
|
+
tagId: string;
|
|
47
|
+
}
|
|
48
|
+
interface IDeleteByItem {
|
|
49
|
+
itemId: string;
|
|
50
|
+
tagId: string;
|
|
51
|
+
}
|
|
39
52
|
}
|
|
40
53
|
namespace Response {
|
|
41
|
-
interface
|
|
54
|
+
interface IMGet {
|
|
42
55
|
}
|
|
43
56
|
type IMGetByItem = DTO.IBizTag[];
|
|
44
57
|
}
|
|
45
58
|
interface Controller {
|
|
59
|
+
mget(request: Request.IMGet): Promise<Response.IMGet>;
|
|
46
60
|
mgetByItem(request: Request.IMGetByItem): Promise<Response.IMGetByItem>;
|
|
61
|
+
create(request: Request.ICreate): Promise<void>;
|
|
62
|
+
update(request: Request.IUpdate): Promise<void>;
|
|
63
|
+
upsertBizTagRelation(request: Request.IUpsertBizTagRelation): Promise<void>;
|
|
64
|
+
delete(request: Request.IDelete): Promise<void>;
|
|
65
|
+
deleteByItem(request: Request.IDeleteByItem): Promise<void>;
|
|
47
66
|
}
|
|
48
67
|
}
|