cloudcc-cli 2.0.8 → 2.1.0

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/README.md CHANGED
@@ -1,3 +1,17 @@
1
+ # ReleaseV2.1.0
2
+ #### Release Date: 2025-5-21
3
+ #### Release Scope: Full
4
+ #### Release Content
5
+ * Optimization
6
+ * publish add ()
7
+
8
+ # ReleaseV2.0.9
9
+ #### Release Date: 2025-5-16
10
+ #### Release Scope: Full
11
+ #### Release Content
12
+ * Optimization
13
+ * create triggers add ccobject。
14
+
1
15
  # ReleaseV2.0.8
2
16
  #### Release Date: 2025-5-16
3
17
  #### Release Scope: Full
@@ -1,6 +1,15 @@
1
1
  package com.cloudcc.core;
2
2
 
3
- public class CCTrigger {
3
+ import java.util.HashMap;
4
+
5
+ public class CCTrigger extends CCService {
6
+ public HashMap<String, Object> record_new = new HashMap<String, Object>();
7
+ public HashMap<String, Object> record_old = new HashMap<String, Object>();;
8
+ public ServiceResult trigger = new ServiceResult();
9
+
10
+ public CCTrigger(UserInfo uinfo) {
11
+ super(uinfo);
12
+ }
4
13
 
5
14
  public void do_insert_before() throws Exception {
6
15
  }
@@ -54,4 +54,8 @@ public class UserInfo extends CCObject {
54
54
  public String getUserName() {
55
55
  return (String) this.get("name");
56
56
  }
57
+
58
+ public Boolean isIspartner() {
59
+ return false;
60
+ }
57
61
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloudcc-cli",
3
- "version": "2.0.8",
3
+ "version": "2.1.0",
4
4
  "description": "cloudcc-cli",
5
5
  "keywords": [
6
6
  "cloudcc",
package/pom.xml CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  <groupId>com.cloudcc.core</groupId>
6
6
  <artifactId>ccopenapi</artifactId>
7
- <version>0.0.2</version>
7
+ <version>0.0.3</version>
8
8
  <packaging>jar</packaging>
9
9
  <name>ccopenapi</name>
10
10
  <dependencies>
@@ -68,7 +68,7 @@ class Builder {
68
68
  }
69
69
 
70
70
  async getToken(devConsoleConfig) {
71
- let res = await post(this.options.devConsoleConfig.baseUrl || BaseUrl + "/sysconfig/auth/pc/1.0/post/tokenInfo", devConsoleConfig);
71
+ let res = await post((this.options.devConsoleConfig.baseUrl || BaseUrl) + "/sysconfig/auth/pc/1.0/post/tokenInfo", devConsoleConfig);
72
72
  if (res.returnCode == 200) {
73
73
  return res.data.accessToken;
74
74
  } else {
@@ -20,9 +20,9 @@ async function create(argvs) {
20
20
  `package triggers.${body.schemetableName.toLowerCase()}.${body.name};
21
21
 
22
22
  import com.cloudcc.core.*;
23
- import java.util.HashMap;
23
+
24
24
  public class ${body.name} extends CCTrigger {
25
- public ${body.name}(HashMap<String, Object> record_new, HashMap<String, Object> record_old) {
25
+ public ${body.name}() {
26
26
  // @SOURCE_CONTENT_START
27
27
  System.out.print("hello World");
28
28
  // @SOURCE_CONTENT_END