ide-assi 0.149.0 → 0.152.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/dist/bundle.cjs.js +10 -5
- package/dist/bundle.esm.js +10 -5
- package/dist/components/ideAi.js +10 -5
- package/package.json +1 -1
- package/src/components/ideAi.js +10 -5
package/dist/bundle.cjs.js
CHANGED
|
@@ -193613,19 +193613,23 @@ class IdeAi
|
|
|
193613
193613
|
|
|
193614
193614
|
const columnInfo = await this.#getColumnInfo(where.table);
|
|
193615
193615
|
|
|
193616
|
+
const namespace = where.package;
|
|
193617
|
+
const classPackage = "ide.assi.be." + where.package.split(".").slice(0, -1).join(".");
|
|
193618
|
+
|
|
193616
193619
|
//const mybatisXmlSource = await this.#generateMyBatis(userPrompt, where.package, columnInfo);
|
|
193617
193620
|
const mybatisXmlSource = await this.#generateTmplFile("/prompts/meta/BuildMyBatisMapper.txt", "mybatis.xml", {
|
|
193618
193621
|
"userPrompt": userPrompt,
|
|
193619
|
-
"namespace":
|
|
193622
|
+
"namespace": namespace,
|
|
193620
193623
|
"tableDefinitions": columnInfo
|
|
193621
193624
|
});
|
|
193622
193625
|
this.#parent.addMessage("MyBatis 소스파일을 생성했습니다.");
|
|
193623
193626
|
|
|
193627
|
+
|
|
193624
193628
|
const serviceSrc = await this.#generateTmplFile("/prompts/meta/BuildService.txt", "service.java", {
|
|
193625
193629
|
userPrompt: userPrompt,
|
|
193626
193630
|
menuUrl: where.menu.url,
|
|
193627
|
-
classPackage:
|
|
193628
|
-
namespace:
|
|
193631
|
+
classPackage: classPackage + ".service",
|
|
193632
|
+
namespace: namespace,
|
|
193629
193633
|
mybatisXmlSource: mybatisXmlSource,
|
|
193630
193634
|
});
|
|
193631
193635
|
this.#parent.addMessage("Java(Service) 소스파일을 생성했습니다.");
|
|
@@ -193633,8 +193637,8 @@ class IdeAi
|
|
|
193633
193637
|
const controllerSrc = await this.#generateTmplFile("/prompts/meta/BuildController.txt", "controller.java", {
|
|
193634
193638
|
userPrompt: userPrompt,
|
|
193635
193639
|
menuUrl: where.menu.url,
|
|
193636
|
-
classPackage:
|
|
193637
|
-
namespace:
|
|
193640
|
+
classPackage: classPackage + ".controller",
|
|
193641
|
+
namespace: namespace,
|
|
193638
193642
|
serviceSource: serviceSrc,
|
|
193639
193643
|
});
|
|
193640
193644
|
this.#parent.addMessage("Java(Controller) 소스파일을 생성했습니다.");
|
|
@@ -193643,6 +193647,7 @@ class IdeAi
|
|
|
193643
193647
|
userPrompt: userPrompt,
|
|
193644
193648
|
menuUrl: where.menu.url,
|
|
193645
193649
|
controllerSource: controllerSrc,
|
|
193650
|
+
mybatisXmlSource: mybatisXmlSource,
|
|
193646
193651
|
});
|
|
193647
193652
|
this.#parent.addMessage("Jsx(React) 소스파일을 생성했습니다.");
|
|
193648
193653
|
|
package/dist/bundle.esm.js
CHANGED
|
@@ -193609,19 +193609,23 @@ class IdeAi
|
|
|
193609
193609
|
|
|
193610
193610
|
const columnInfo = await this.#getColumnInfo(where.table);
|
|
193611
193611
|
|
|
193612
|
+
const namespace = where.package;
|
|
193613
|
+
const classPackage = "ide.assi.be." + where.package.split(".").slice(0, -1).join(".");
|
|
193614
|
+
|
|
193612
193615
|
//const mybatisXmlSource = await this.#generateMyBatis(userPrompt, where.package, columnInfo);
|
|
193613
193616
|
const mybatisXmlSource = await this.#generateTmplFile("/prompts/meta/BuildMyBatisMapper.txt", "mybatis.xml", {
|
|
193614
193617
|
"userPrompt": userPrompt,
|
|
193615
|
-
"namespace":
|
|
193618
|
+
"namespace": namespace,
|
|
193616
193619
|
"tableDefinitions": columnInfo
|
|
193617
193620
|
});
|
|
193618
193621
|
this.#parent.addMessage("MyBatis 소스파일을 생성했습니다.");
|
|
193619
193622
|
|
|
193623
|
+
|
|
193620
193624
|
const serviceSrc = await this.#generateTmplFile("/prompts/meta/BuildService.txt", "service.java", {
|
|
193621
193625
|
userPrompt: userPrompt,
|
|
193622
193626
|
menuUrl: where.menu.url,
|
|
193623
|
-
classPackage:
|
|
193624
|
-
namespace:
|
|
193627
|
+
classPackage: classPackage + ".service",
|
|
193628
|
+
namespace: namespace,
|
|
193625
193629
|
mybatisXmlSource: mybatisXmlSource,
|
|
193626
193630
|
});
|
|
193627
193631
|
this.#parent.addMessage("Java(Service) 소스파일을 생성했습니다.");
|
|
@@ -193629,8 +193633,8 @@ class IdeAi
|
|
|
193629
193633
|
const controllerSrc = await this.#generateTmplFile("/prompts/meta/BuildController.txt", "controller.java", {
|
|
193630
193634
|
userPrompt: userPrompt,
|
|
193631
193635
|
menuUrl: where.menu.url,
|
|
193632
|
-
classPackage:
|
|
193633
|
-
namespace:
|
|
193636
|
+
classPackage: classPackage + ".controller",
|
|
193637
|
+
namespace: namespace,
|
|
193634
193638
|
serviceSource: serviceSrc,
|
|
193635
193639
|
});
|
|
193636
193640
|
this.#parent.addMessage("Java(Controller) 소스파일을 생성했습니다.");
|
|
@@ -193639,6 +193643,7 @@ class IdeAi
|
|
|
193639
193643
|
userPrompt: userPrompt,
|
|
193640
193644
|
menuUrl: where.menu.url,
|
|
193641
193645
|
controllerSource: controllerSrc,
|
|
193646
|
+
mybatisXmlSource: mybatisXmlSource,
|
|
193642
193647
|
});
|
|
193643
193648
|
this.#parent.addMessage("Jsx(React) 소스파일을 생성했습니다.");
|
|
193644
193649
|
|
package/dist/components/ideAi.js
CHANGED
|
@@ -279,19 +279,23 @@ export class IdeAi
|
|
|
279
279
|
|
|
280
280
|
const columnInfo = await this.#getColumnInfo(where.table);
|
|
281
281
|
|
|
282
|
+
const namespace = where.package;
|
|
283
|
+
const classPackage = "ide.assi.be." + where.package.split(".").slice(0, -1).join(".");
|
|
284
|
+
|
|
282
285
|
//const mybatisXmlSource = await this.#generateMyBatis(userPrompt, where.package, columnInfo);
|
|
283
286
|
const mybatisXmlSource = await this.#generateTmplFile("/prompts/meta/BuildMyBatisMapper.txt", "mybatis.xml", {
|
|
284
287
|
"userPrompt": userPrompt,
|
|
285
|
-
"namespace":
|
|
288
|
+
"namespace": namespace,
|
|
286
289
|
"tableDefinitions": columnInfo
|
|
287
290
|
});
|
|
288
291
|
this.#parent.addMessage("MyBatis 소스파일을 생성했습니다.");
|
|
289
292
|
|
|
293
|
+
|
|
290
294
|
const serviceSrc = await this.#generateTmplFile("/prompts/meta/BuildService.txt", "service.java", {
|
|
291
295
|
userPrompt: userPrompt,
|
|
292
296
|
menuUrl: where.menu.url,
|
|
293
|
-
classPackage:
|
|
294
|
-
namespace:
|
|
297
|
+
classPackage: classPackage + ".service",
|
|
298
|
+
namespace: namespace,
|
|
295
299
|
mybatisXmlSource: mybatisXmlSource,
|
|
296
300
|
});
|
|
297
301
|
this.#parent.addMessage("Java(Service) 소스파일을 생성했습니다.");
|
|
@@ -299,8 +303,8 @@ export class IdeAi
|
|
|
299
303
|
const controllerSrc = await this.#generateTmplFile("/prompts/meta/BuildController.txt", "controller.java", {
|
|
300
304
|
userPrompt: userPrompt,
|
|
301
305
|
menuUrl: where.menu.url,
|
|
302
|
-
classPackage:
|
|
303
|
-
namespace:
|
|
306
|
+
classPackage: classPackage + ".controller",
|
|
307
|
+
namespace: namespace,
|
|
304
308
|
serviceSource: serviceSrc,
|
|
305
309
|
});
|
|
306
310
|
this.#parent.addMessage("Java(Controller) 소스파일을 생성했습니다.");
|
|
@@ -309,6 +313,7 @@ export class IdeAi
|
|
|
309
313
|
userPrompt: userPrompt,
|
|
310
314
|
menuUrl: where.menu.url,
|
|
311
315
|
controllerSource: controllerSrc,
|
|
316
|
+
mybatisXmlSource: mybatisXmlSource,
|
|
312
317
|
});
|
|
313
318
|
this.#parent.addMessage("Jsx(React) 소스파일을 생성했습니다.");
|
|
314
319
|
|
package/package.json
CHANGED
package/src/components/ideAi.js
CHANGED
|
@@ -279,19 +279,23 @@ export class IdeAi
|
|
|
279
279
|
|
|
280
280
|
const columnInfo = await this.#getColumnInfo(where.table);
|
|
281
281
|
|
|
282
|
+
const namespace = where.package;
|
|
283
|
+
const classPackage = "ide.assi.be." + where.package.split(".").slice(0, -1).join(".");
|
|
284
|
+
|
|
282
285
|
//const mybatisXmlSource = await this.#generateMyBatis(userPrompt, where.package, columnInfo);
|
|
283
286
|
const mybatisXmlSource = await this.#generateTmplFile("/prompts/meta/BuildMyBatisMapper.txt", "mybatis.xml", {
|
|
284
287
|
"userPrompt": userPrompt,
|
|
285
|
-
"namespace":
|
|
288
|
+
"namespace": namespace,
|
|
286
289
|
"tableDefinitions": columnInfo
|
|
287
290
|
});
|
|
288
291
|
this.#parent.addMessage("MyBatis 소스파일을 생성했습니다.");
|
|
289
292
|
|
|
293
|
+
|
|
290
294
|
const serviceSrc = await this.#generateTmplFile("/prompts/meta/BuildService.txt", "service.java", {
|
|
291
295
|
userPrompt: userPrompt,
|
|
292
296
|
menuUrl: where.menu.url,
|
|
293
|
-
classPackage:
|
|
294
|
-
namespace:
|
|
297
|
+
classPackage: classPackage + ".service",
|
|
298
|
+
namespace: namespace,
|
|
295
299
|
mybatisXmlSource: mybatisXmlSource,
|
|
296
300
|
});
|
|
297
301
|
this.#parent.addMessage("Java(Service) 소스파일을 생성했습니다.");
|
|
@@ -299,8 +303,8 @@ export class IdeAi
|
|
|
299
303
|
const controllerSrc = await this.#generateTmplFile("/prompts/meta/BuildController.txt", "controller.java", {
|
|
300
304
|
userPrompt: userPrompt,
|
|
301
305
|
menuUrl: where.menu.url,
|
|
302
|
-
classPackage:
|
|
303
|
-
namespace:
|
|
306
|
+
classPackage: classPackage + ".controller",
|
|
307
|
+
namespace: namespace,
|
|
304
308
|
serviceSource: serviceSrc,
|
|
305
309
|
});
|
|
306
310
|
this.#parent.addMessage("Java(Controller) 소스파일을 생성했습니다.");
|
|
@@ -309,6 +313,7 @@ export class IdeAi
|
|
|
309
313
|
userPrompt: userPrompt,
|
|
310
314
|
menuUrl: where.menu.url,
|
|
311
315
|
controllerSource: controllerSrc,
|
|
316
|
+
mybatisXmlSource: mybatisXmlSource,
|
|
312
317
|
});
|
|
313
318
|
this.#parent.addMessage("Jsx(React) 소스파일을 생성했습니다.");
|
|
314
319
|
|