cloudcc-cli 2.0.8 → 2.0.9

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,10 @@
1
+ # ReleaseV2.0.9
2
+ #### Release Date: 2025-5-16
3
+ #### Release Scope: Full
4
+ #### Release Content
5
+ * Optimization
6
+ * create triggers add ccobject。
7
+
1
8
  # ReleaseV2.0.8
2
9
  #### Release Date: 2025-5-16
3
10
  #### 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.0.9",
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>
@@ -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