Skip to content

Commit

Permalink
feat-平台模块不采用懒加载
Browse files Browse the repository at this point in the history
  • Loading branch information
aruis committed Oct 4, 2024
1 parent 1def0e4 commit 3c22bdc
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import net.ximatai.muyun.database.builder.TableBase;
import net.ximatai.muyun.database.builder.TableWrapper;

@Startup
@Startup(1000)
@Singleton
public class BaseBusinessTable extends Scaffold implements ITableCreateAbility {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package net.ximatai.muyun.platform.controller;

import io.quarkus.runtime.Startup;
import jakarta.inject.Inject;
import jakarta.inject.Provider;
import jakarta.ws.rs.Path;
Expand All @@ -22,6 +23,7 @@

import static net.ximatai.muyun.platform.PlatformConst.BASE_PATH;

@Startup
@Path(BASE_PATH + "/department")
public class DepartmentController extends ScaffoldForPlatform implements ITreeAbility, IChildAbility, IReferableAbility, IReferenceAbility, IDataCheckAbility, IQueryAbility {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package net.ximatai.muyun.platform.controller;

import io.quarkus.runtime.Startup;
import jakarta.enterprise.context.ApplicationScoped;
import jakarta.inject.Inject;
import net.ximatai.muyun.ability.IChildAbility;
Expand All @@ -12,6 +13,7 @@

import java.util.List;

@Startup
@ApplicationScoped
public class ModuleActionController extends ScaffoldForPlatform implements IChildAbility, IChildrenAbility {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

import static net.ximatai.muyun.platform.PlatformConst.BASE_PATH;

@Startup
@Path(BASE_PATH + "/module")
public class ModuleController extends ScaffoldForPlatform implements ITreeAbility, IChildrenAbility, IReferableAbility {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package net.ximatai.muyun.platform.controller;

import io.quarkus.runtime.Startup;
import jakarta.inject.Inject;
import jakarta.ws.rs.Path;
import net.ximatai.muyun.ability.IChildrenAbility;
Expand All @@ -22,6 +23,7 @@

import static net.ximatai.muyun.platform.PlatformConst.BASE_PATH;

@Startup
@Path(BASE_PATH + "/organization")
public class OrganizationController extends ScaffoldForPlatform implements ITreeAbility, IChildrenAbility, IReferableAbility, IReferenceAbility, IDataBroadcastAbility, IQueryAbility {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package net.ximatai.muyun.platform.controller;

import io.quarkus.runtime.Startup;
import jakarta.inject.Inject;
import jakarta.ws.rs.Path;
import net.ximatai.muyun.ability.IChildAbility;
Expand All @@ -16,6 +17,7 @@

import static net.ximatai.muyun.platform.PlatformConst.BASE_PATH;

@Startup
@Path(BASE_PATH + "/roleAction")
public class RoleActionController extends ScaffoldForPlatform implements IChildAbility, IQueryAbility {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package net.ximatai.muyun.platform.controller;

import io.quarkus.runtime.Startup;
import jakarta.inject.Inject;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.Path;
Expand All @@ -18,6 +19,7 @@

import static net.ximatai.muyun.platform.PlatformConst.BASE_PATH;

@Startup
@Path(BASE_PATH + "/role")
public class RoleController extends ScaffoldForPlatform implements ITreeAbility, IChildrenAbility {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package net.ximatai.muyun.platform.controller;

import io.quarkus.runtime.Startup;
import jakarta.enterprise.context.ApplicationScoped;
import jakarta.inject.Inject;
import net.ximatai.muyun.ability.IChildrenAbility;
Expand All @@ -16,6 +17,7 @@

import java.util.List;

@Startup
@ApplicationScoped
public class UserController extends ScaffoldForPlatform implements IQueryAbility, ISecurityAbility, IReferableAbility, IChildrenAbility {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package net.ximatai.muyun.platform.controller;

import io.quarkus.runtime.Startup;
import jakarta.inject.Inject;
import jakarta.transaction.Transactional;
import jakarta.ws.rs.GET;
Expand Down Expand Up @@ -27,6 +28,7 @@

import static net.ximatai.muyun.platform.PlatformConst.BASE_PATH;

@Startup
@Path(BASE_PATH + "/userinfo")
public class UserInfoController extends ScaffoldForPlatform implements IReferableAbility, IReferenceAbility, ISoftDeleteAbility, IQueryAbility {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package net.ximatai.muyun.platform.controller;

import io.quarkus.runtime.Startup;
import jakarta.enterprise.context.ApplicationScoped;
import net.ximatai.muyun.ability.IChildAbility;
import net.ximatai.muyun.ability.curd.std.IQueryAbility;
Expand All @@ -10,6 +11,7 @@

import java.util.List;

@Startup
@ApplicationScoped
public class UserRoleController extends ScaffoldForPlatform implements IChildAbility, IQueryAbility {

Expand Down

0 comments on commit 3c22bdc

Please sign in to comment.