Skip to content

Commit

Permalink
refact(model): seperate model with different schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Matrix-X committed Oct 9, 2024
1 parent a57a94f commit 499de77
Show file tree
Hide file tree
Showing 14 changed files with 222 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ logs
*.log
.logs/
.var
.run
#.run
temp

resource/static
Expand Down
24 changes: 24 additions & 0 deletions .run/Test_EncodePassword in PowerX_pkg_securityx.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Test_EncodePassword in PowerX/pkg/securityx" type="GoTestRunConfiguration" factoryName="Go Test" nameIsGenerated="true">
<module name="PowerX" />
<working_directory value="$PROJECT_DIR$/pkg/securityx" />
<EXTENSION ID="net.ashald.envfile">
<option name="IS_ENABLED" value="false" />
<option name="IS_SUBST" value="false" />
<option name="IS_PATH_MACRO_SUPPORTED" value="false" />
<option name="IS_IGNORE_MISSING_FILES" value="false" />
<option name="IS_ENABLE_EXPERIMENTAL_INTEGRATIONS" value="false" />
<ENTRIES>
<ENTRY IS_ENABLED="true" PARSER="runconfig" IS_EXECUTABLE="false" />
</ENTRIES>
</EXTENSION>
<root_directory value="$PROJECT_DIR$" />
<kind value="PACKAGE" />
<package value="PowerX/pkg/securityx" />
<directory value="$PROJECT_DIR$" />
<filePath value="$PROJECT_DIR$" />
<framework value="gotest" />
<pattern value="^\QTest_EncodePassword\E$" />
<method v="2" />
</configuration>
</component>
24 changes: 24 additions & 0 deletions .run/Test_GenerateInviteCode in PowerX_pkg_securityx.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Test_GenerateInviteCode in PowerX/pkg/securityx" type="GoTestRunConfiguration" factoryName="Go Test" nameIsGenerated="true">
<module name="PowerX" />
<working_directory value="$PROJECT_DIR$/pkg/securityx" />
<EXTENSION ID="net.ashald.envfile">
<option name="IS_ENABLED" value="false" />
<option name="IS_SUBST" value="false" />
<option name="IS_PATH_MACRO_SUPPORTED" value="false" />
<option name="IS_IGNORE_MISSING_FILES" value="false" />
<option name="IS_ENABLE_EXPERIMENTAL_INTEGRATIONS" value="false" />
<ENTRIES>
<ENTRY IS_ENABLED="true" PARSER="runconfig" IS_EXECUTABLE="false" />
</ENTRIES>
</EXTENSION>
<root_directory value="$PROJECT_DIR$" />
<kind value="PACKAGE" />
<package value="PowerX/pkg/securityx" />
<directory value="$PROJECT_DIR$" />
<filePath value="$PROJECT_DIR$" />
<framework value="gotest" />
<pattern value="^\QTest_GenerateInviteCode\E$" />
<method v="2" />
</configuration>
</component>
24 changes: 24 additions & 0 deletions .run/Test_HashPlainPassword in PowerX_pkg_securityx.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Test_HashPlainPassword in PowerX/pkg/securityx" type="GoTestRunConfiguration" factoryName="Go Test" nameIsGenerated="true">
<module name="PowerX" />
<working_directory value="$PROJECT_DIR$/pkg/securityx" />
<EXTENSION ID="net.ashald.envfile">
<option name="IS_ENABLED" value="false" />
<option name="IS_SUBST" value="false" />
<option name="IS_PATH_MACRO_SUPPORTED" value="false" />
<option name="IS_IGNORE_MISSING_FILES" value="false" />
<option name="IS_ENABLE_EXPERIMENTAL_INTEGRATIONS" value="false" />
<ENTRIES>
<ENTRY IS_ENABLED="true" PARSER="runconfig" IS_EXECUTABLE="false" />
</ENTRIES>
</EXTENSION>
<root_directory value="$PROJECT_DIR$" />
<kind value="PACKAGE" />
<package value="PowerX/pkg/securityx" />
<directory value="$PROJECT_DIR$" />
<filePath value="$PROJECT_DIR$" />
<framework value="gotest" />
<pattern value="^\QTest_HashPlainPassword\E$" />
<method v="2" />
</configuration>
</component>
8 changes: 8 additions & 0 deletions .run/app-build-linux.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="app-build-linux" type="MAKEFILE_TARGET_RUN_CONFIGURATION" factoryName="Makefile">
<makefile filename="$PROJECT_DIR$/Makefile" target="app-build-linux" workingDirectory="" arguments="">
<envs />
</makefile>
<method v="2" />
</configuration>
</component>
8 changes: 8 additions & 0 deletions .run/app-build-windows.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="app-build-windows" type="MAKEFILE_TARGET_RUN_CONFIGURATION" factoryName="Makefile">
<makefile filename="$PROJECT_DIR$/Makefile" target="app-build-windows" workingDirectory="" arguments="">
<envs />
</makefile>
<method v="2" />
</configuration>
</component>
8 changes: 8 additions & 0 deletions .run/app-init-db.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="app-init-db" type="MAKEFILE_TARGET_RUN_CONFIGURATION" factoryName="Makefile">
<makefile filename="$PROJECT_DIR$/Makefile" target="app-init-db" workingDirectory="" arguments="">
<envs />
</makefile>
<method v="2" />
</configuration>
</component>
8 changes: 8 additions & 0 deletions .run/app-init.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="app-init" type="MAKEFILE_TARGET_RUN_CONFIGURATION" factoryName="Makefile">
<makefile filename="$PROJECT_DIR$/Makefile" target="app-init" workingDirectory="" arguments="">
<envs />
</makefile>
<method v="2" />
</configuration>
</component>
8 changes: 8 additions & 0 deletions .run/build-goctl-powerx-apis.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="build-goctl-powerx-apis" type="MAKEFILE_TARGET_RUN_CONFIGURATION" factoryName="Makefile">
<makefile filename="$PROJECT_DIR$/Makefile" target="build-goctl-powerx-apis" workingDirectory="" arguments="">
<envs />
</makefile>
<method v="2" />
</configuration>
</component>
21 changes: 21 additions & 0 deletions .run/go build powerx.go.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="go build powerx.go" type="GoApplicationRunConfiguration" factoryName="Go Application" nameIsGenerated="true">
<module name="PowerX" />
<working_directory value="$PROJECT_DIR$" />
<EXTENSION ID="net.ashald.envfile">
<option name="IS_ENABLED" value="false" />
<option name="IS_SUBST" value="false" />
<option name="IS_PATH_MACRO_SUPPORTED" value="false" />
<option name="IS_IGNORE_MISSING_FILES" value="false" />
<option name="IS_ENABLE_EXPERIMENTAL_INTEGRATIONS" value="false" />
<ENTRIES>
<ENTRY IS_ENABLED="true" PARSER="runconfig" IS_EXECUTABLE="false" />
</ENTRIES>
</EXTENSION>
<kind value="FILE" />
<package value="PowerX" />
<directory value="$PROJECT_DIR$" />
<filePath value="$PROJECT_DIR$/cmd/server/powerx.go" />
<method v="2" />
</configuration>
</component>
22 changes: 22 additions & 0 deletions .run/go build powerxctl.go api-gen.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="go build powerxctl.go api-gen" type="GoApplicationRunConfiguration" factoryName="Go Application">
<module name="PowerX" />
<working_directory value="$PROJECT_DIR$" />
<parameters value="api-gen" />
<EXTENSION ID="net.ashald.envfile">
<option name="IS_ENABLED" value="false" />
<option name="IS_SUBST" value="false" />
<option name="IS_PATH_MACRO_SUPPORTED" value="false" />
<option name="IS_IGNORE_MISSING_FILES" value="false" />
<option name="IS_ENABLE_EXPERIMENTAL_INTEGRATIONS" value="false" />
<ENTRIES>
<ENTRY IS_ENABLED="true" PARSER="runconfig" IS_EXECUTABLE="false" />
</ENTRIES>
</EXTENSION>
<kind value="FILE" />
<package value="PowerX" />
<directory value="$PROJECT_DIR$" />
<filePath value="$PROJECT_DIR$/cmd/ctl/powerxctl.go" />
<method v="2" />
</configuration>
</component>
22 changes: 22 additions & 0 deletions .run/go build powerxctl.go database migrate.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="go build powerxctl.go database migrate" type="GoApplicationRunConfiguration" factoryName="Go Application">
<module name="PowerX" />
<working_directory value="$PROJECT_DIR$" />
<parameters value="database migrate -f ./etc/powerx.yaml" />
<EXTENSION ID="net.ashald.envfile">
<option name="IS_ENABLED" value="false" />
<option name="IS_SUBST" value="false" />
<option name="IS_PATH_MACRO_SUPPORTED" value="false" />
<option name="IS_IGNORE_MISSING_FILES" value="false" />
<option name="IS_ENABLE_EXPERIMENTAL_INTEGRATIONS" value="false" />
<ENTRIES>
<ENTRY IS_ENABLED="true" PARSER="runconfig" IS_EXECUTABLE="false" />
</ENTRIES>
</EXTENSION>
<kind value="FILE" />
<package value="PowerX" />
<directory value="$PROJECT_DIR$" />
<filePath value="$PROJECT_DIR$/cmd/ctl/powerxctl.go" />
<method v="2" />
</configuration>
</component>
22 changes: 22 additions & 0 deletions .run/go build powerxctl.go database seed.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="go build powerxctl.go database seed" type="GoApplicationRunConfiguration" factoryName="Go Application">
<module name="PowerX" />
<working_directory value="$PROJECT_DIR$" />
<parameters value="database seed -f ./etc/powerx.yaml" />
<EXTENSION ID="net.ashald.envfile">
<option name="IS_ENABLED" value="false" />
<option name="IS_SUBST" value="false" />
<option name="IS_PATH_MACRO_SUPPORTED" value="false" />
<option name="IS_IGNORE_MISSING_FILES" value="false" />
<option name="IS_ENABLE_EXPERIMENTAL_INTEGRATIONS" value="false" />
<ENTRIES>
<ENTRY IS_ENABLED="true" PARSER="runconfig" IS_EXECUTABLE="false" />
</ENTRIES>
</EXTENSION>
<kind value="FILE" />
<package value="PowerX" />
<directory value="$PROJECT_DIR$" />
<filePath value="$PROJECT_DIR$/cmd/ctl/powerxctl.go" />
<method v="2" />
</configuration>
</component>
22 changes: 22 additions & 0 deletions .run/go test server.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="go test server" type="GoTestRunConfiguration" factoryName="Go Test" nameIsGenerated="true">
<module name="PowerX" />
<working_directory value="$PROJECT_DIR$" />
<EXTENSION ID="net.ashald.envfile">
<option name="IS_ENABLED" value="false" />
<option name="IS_SUBST" value="false" />
<option name="IS_PATH_MACRO_SUPPORTED" value="false" />
<option name="IS_IGNORE_MISSING_FILES" value="false" />
<option name="IS_ENABLE_EXPERIMENTAL_INTEGRATIONS" value="false" />
<ENTRIES>
<ENTRY IS_ENABLED="true" PARSER="runconfig" IS_EXECUTABLE="false" />
</ENTRIES>
</EXTENSION>
<kind value="DIRECTORY" />
<package value="PowerX" />
<directory value="$PROJECT_DIR$/cmd/server" />
<filePath value="$PROJECT_DIR$" />
<framework value="gotest" />
<method v="2" />
</configuration>
</component>

0 comments on commit 499de77

Please sign in to comment.