-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refact(model): seperate model with different schema
- Loading branch information
Showing
14 changed files
with
222 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ logs | |
*.log | ||
.logs/ | ||
.var | ||
.run | ||
#.run | ||
temp | ||
|
||
resource/static | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
24
.run/Test_GenerateInviteCode in PowerX_pkg_securityx.run.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
24
.run/Test_HashPlainPassword in PowerX_pkg_securityx.run.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |