add supply_chain chaincode

parent 8c84d3e5
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="de83b181-e854-4be8-81f5-73a2fdb02762" name="Default Changelist" comment=""> <list default="true" id="de83b181-e854-4be8-81f5-73a2fdb02762" name="Default Changelist" comment="">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/github.com/gongxianghui_auth/gongxianghui.go" beforeDir="false" afterPath="$PROJECT_DIR$/src/github.com/gongxianghui_auth/gongxianghui.go" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/retrospect_chain/restropect_test.go" beforeDir="false" afterPath="$PROJECT_DIR$/src/retrospect_chain/restropect_test.go" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/github.com/gongxianghui_auth/gongxianghui_test.go" beforeDir="false" afterPath="$PROJECT_DIR$/src/github.com/gongxianghui_auth/gongxianghui_test.go" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/retrospect_chain/retrospect.go" beforeDir="false" afterPath="$PROJECT_DIR$/src/retrospect_chain/retrospect.go" afterDir="false" />
</list> </list>
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" /> <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
...@@ -15,91 +15,149 @@ ...@@ -15,91 +15,149 @@
<component name="FileEditorManager"> <component name="FileEditorManager">
<leaf SIDE_TABS_SIZE_LIMIT_KEY="300"> <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
<file pinned="false" current-in-tab="false"> <file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/github.com/gongxianghui/gongxianghui.go"> <entry file="file://$PROJECT_DIR$/README.md">
<provider selected="true" editor-type-id="text-editor" /> <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
<state split_layout="SPLIT">
<first_editor />
<second_editor />
</state>
</provider>
</entry> </entry>
</file> </file>
<file pinned="false" current-in-tab="true"> <file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/github.com/gongxianghui_auth/gongxianghui.go"> <entry file="file://$PROJECT_DIR$/src/medical_chain/medical.go">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="575"> <state relative-caret-position="3276">
<caret line="399" column="9" lean-forward="true" selection-start-line="399" selection-start-column="9" selection-end-line="399" selection-end-column="9" /> <caret line="189" column="14" selection-start-line="189" selection-start-column="14" selection-end-line="189" selection-end-column="14" />
<folding>
<element signature="e#14#170#0" expanded="true" />
</folding>
</state> </state>
</provider> </provider>
</entry> </entry>
</file> </file>
<file pinned="false" current-in-tab="false"> <file pinned="false" current-in-tab="false">
<entry file="file:///usr/local/go/src/testing/testing.go"> <entry file="file://$PROJECT_DIR$/src/retrospect_chain/retrospect.go">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="272"> <state relative-caret-position="10080">
<caret line="846" selection-start-line="846" selection-end-line="846" /> <caret line="567" column="51" selection-start-line="567" selection-start-column="51" selection-end-line="567" selection-end-column="51" />
</state> </state>
</provider> </provider>
</entry> </entry>
</file> </file>
<file pinned="false" current-in-tab="false"> <file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/README.md"> <entry file="file://$PROJECT_DIR$/src/medical_chain/medical_test.go">
<provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]"> <provider selected="true" editor-type-id="text-editor">
<state split_layout="SPLIT"> <state relative-caret-position="450">
<first_editor /> <caret line="30" column="25" selection-start-line="30" selection-start-column="25" selection-end-line="30" selection-end-column="25" />
<second_editor /> <folding>
<element signature="e#14#112#0" expanded="true" />
</folding>
</state> </state>
</provider> </provider>
</entry> </entry>
</file> </file>
<file pinned="false" current-in-tab="false"> <file pinned="false" current-in-tab="true">
<entry file="file:///usr/local/go/src/builtin/builtin.go"> <entry file="file://$PROJECT_DIR$/src/retrospect_chain/restropect_test.go">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="664"> <state relative-caret-position="396">
<caret line="188" column="5" selection-start-line="188" selection-start-column="5" selection-end-line="188" selection-end-column="5" /> <caret line="27" column="144" selection-start-line="27" selection-start-column="144" selection-end-line="27" selection-end-column="144" />
</state> </state>
</provider> </provider>
</entry> </entry>
</file> </file>
<file pinned="false" current-in-tab="false"> <file pinned="false" current-in-tab="false">
<entry file="file:///usr/local/go/src/fmt/errors.go"> <entry file="file://$PROJECT_DIR$/src/medical_chain/README.md">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
<state relative-caret-position="448"> <state split_layout="SPLIT">
<caret line="16" column="5" selection-start-line="16" selection-start-column="5" selection-end-line="16" selection-end-column="5" /> <first_editor relative-caret-position="126">
<caret line="7" selection-start-line="7" selection-end-line="7" />
</first_editor>
<second_editor />
</state> </state>
</provider> </provider>
</entry> </entry>
</file> </file>
<file pinned="false" current-in-tab="false"> <file pinned="false" current-in-tab="false">
<entry file="file:///usr/local/go/src/encoding/json/decode.go"> <entry file="file://$PROJECT_DIR$/src/retrospect_chain/README.md">
<provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
<state split_layout="SPLIT">
<first_editor relative-caret-position="18">
<caret line="1" selection-start-line="1" selection-end-line="7" />
</first_editor>
<second_editor />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file:///usr/local/go/src/builtin/builtin.go">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="2352"> <state relative-caret-position="4680">
<caret line="94" column="5" selection-start-line="94" selection-start-column="5" selection-end-line="94" selection-end-column="5" /> <caret line="260" column="4" selection-start-line="260" selection-start-column="4" selection-end-line="260" selection-end-column="4" />
</state> </state>
</provider> </provider>
</entry> </entry>
</file> </file>
<file pinned="false" current-in-tab="false"> <file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/github.com/gongxianghui_auth/gongxianghui_test.go"> <entry file="file://$PROJECT_DIR$/src/github.com/gongxianghui_framework/leadger.go">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="159"> <state relative-caret-position="162">
<caret line="98" column="130" selection-start-line="98" selection-start-column="130" selection-end-line="98" selection-end-column="130" /> <caret line="9" selection-start-line="9" selection-end-line="9" />
</state> </state>
</provider> </provider>
</entry> </entry>
</file> </file>
<file pinned="false" current-in-tab="false"> <file pinned="false" current-in-tab="false">
<entry file="file:///usr/local/go/src/time/time.go"> <entry file="file:///usr/local/go/src/testing/testing.go">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="32116"> <state relative-caret-position="14940">
<caret line="1150" column="14" selection-start-line="1150" selection-start-column="14" selection-end-line="1150" selection-end-column="14" /> <caret line="846" selection-start-line="846" selection-end-line="846" />
</state> </state>
</provider> </provider>
</entry> </entry>
</file> </file>
</leaf> </leaf>
</component> </component>
<component name="FileTemplateManagerImpl">
<option name="RECENT_TEMPLATES">
<list>
<option value="Go File" />
</list>
</option>
</component>
<component name="FindInProjectRecents"> <component name="FindInProjectRecents">
<findStrings> <findStrings>
<find>user</find>
<find>stub.GetState</find>
<find>stub.PutState</find> <find>stub.PutState</find>
<find>authorityCheck</find> <find>authorityCheck</find>
<find>GetStateByRangeWithPagination</find>
<find>switch</find>
<find>2006</find>
<find>2006-01-02 15:04:05</find>
<find>alibusi</find>
<find>6</find>
<find>profit</find>
<find>bookmark</find>
<find>CompositeKey</find>
<find>alibusiCompositeKey</find>
<find>Unsupported table name of</find>
<find>fields type not string</find>
<find>null</find>
<find>fields</find>
<find>schema</find>
<find>amob</find>
<find>atype</find>
<find>abail</find>
<find>Deassign</find>
<find>already</find>
<find>warmline</find>
<find>adiscounts</find>
<find>id</find>
<find>regular</find>
<find>float64</find>
<find>alinkman</find>
<find>schemaCache.Get err</find>
<find>Println</find>
</findStrings> </findStrings>
</component> </component>
<component name="GOROOT" path="/usr/local/go" /> <component name="GOROOT" path="/usr/local/go" />
...@@ -117,16 +175,41 @@ ...@@ -117,16 +175,41 @@
<option value="$PROJECT_DIR$/github.com/gongxianghui_test/gongxianghui_test.go" /> <option value="$PROJECT_DIR$/github.com/gongxianghui_test/gongxianghui_test.go" />
<option value="$PROJECT_DIR$/github.com/gongxianghui/gongxianghui.go" /> <option value="$PROJECT_DIR$/github.com/gongxianghui/gongxianghui.go" />
<option value="$PROJECT_DIR$/github.com/gongxianghui_test/gongxianghui.go" /> <option value="$PROJECT_DIR$/github.com/gongxianghui_test/gongxianghui.go" />
<option value="$PROJECT_DIR$/src/github.com/gongxianghui_auth/gongxianghui_test.go" /> <option value="$PROJECT_DIR$/src/github.com/gongxianghui_three/gongxianghui_test.go" />
<option value="$APPLICATION_CONFIG_DIR$/goland64.vmoptions" />
<option value="$PROJECT_DIR$/src/github.com/gongxianghui_three/gongxinghuileadger_test.go" />
<option value="$PROJECT_DIR$/src/github.com/gongxianghui_three/gongxianghui.go" />
<option value="$PROJECT_DIR$/src/github.com/gongxianghui_auth/gongxianghuicache_test.go" />
<option value="$PROJECT_DIR$/src/github.com/testcc/testcc_cc.go" />
<option value="$PROJECT_DIR$/src/github.com/testcc/testcc.go" />
<option value="$PROJECT_DIR$/src/github.com/testcc/testcc_test.go" />
<option value="$PROJECT_DIR$/src/github.com/gongxianghui/gongxianghui_test.go" />
<option value="$PROJECT_DIR$/src/github.com/gongxianghui/gongxianghui.go" />
<option value="$PROJECT_DIR$/src/github.com/gongxianghui_user/gongxianghui.go" />
<option value="$PROJECT_DIR$/src/github.com/gongxianghui_user/gongxianghui_test.go" />
<option value="$PROJECT_DIR$/src/github.com/gongxianghui_auth/gongxianghui.go" /> <option value="$PROJECT_DIR$/src/github.com/gongxianghui_auth/gongxianghui.go" />
<option value="$PROJECT_DIR$/src/github.com/gongxianghui_auth/gongxianghui_test.go" />
<option value="$PROJECT_DIR$/src/github.com/gongxianghui2.0/gongxianghui_test.go" />
<option value="$PROJECT_DIR$/src/github.com/gongxianghui2.0/gongxianghui2.0_test.go" />
<option value="$PROJECT_DIR$/src/github.com/gongxianghui2.0/gongxianghui.go" />
<option value="$PROJECT_DIR$/src/github.com/gongxianghui_framework/gongxianghui_test.go" />
<option value="$PROJECT_DIR$/src/github.com/gongxianghui_framework/storageData.go" />
<option value="$PROJECT_DIR$/src/github.com/gongxianghui_framework/dataobject.go" />
<option value="$PROJECT_DIR$/src/github.com/gongxianghui_framework/schema.go" />
<option value="$PROJECT_DIR$/src/github.com/gongxianghui_framework/leadger.go" />
<option value="$PROJECT_DIR$/src/github.com/gongxianghui_framework/gongxianghui.go" />
<option value="$PROJECT_DIR$/src/retrospect_chain/README.md" />
<option value="$PROJECT_DIR$/src/medical_chain/README.md" />
<option value="$PROJECT_DIR$/src/retrospect_chain/restropect_test.go" />
<option value="$PROJECT_DIR$/src/retrospect_chain/retrospect.go" />
</list> </list>
</option> </option>
</component> </component>
<component name="ProjectFrameBounds" extendedState="6"> <component name="ProjectFrameBounds" extendedState="6">
<option name="x" value="1" /> <option name="x" value="71" />
<option name="y" value="25" /> <option name="y" value="33" />
<option name="width" value="639" /> <option name="width" value="629" />
<option name="height" value="455" /> <option name="height" value="450" />
</component> </component>
<component name="ProjectLevelVcsManager" settingsEditedManually="true" /> <component name="ProjectLevelVcsManager" settingsEditedManually="true" />
<component name="ProjectView"> <component name="ProjectView">
...@@ -134,6 +217,7 @@ ...@@ -134,6 +217,7 @@
<foldersAlwaysOnTop value="true" /> <foldersAlwaysOnTop value="true" />
</navigator> </navigator>
<panes> <panes>
<pane id="Scope" />
<pane id="ProjectPane"> <pane id="ProjectPane">
<subPane> <subPane>
<expand> <expand>
...@@ -150,44 +234,39 @@ ...@@ -150,44 +234,39 @@
<item name="chaincode" type="b2602c69:ProjectViewProjectNode" /> <item name="chaincode" type="b2602c69:ProjectViewProjectNode" />
<item name="chaincode" type="462c0819:PsiDirectoryNode" /> <item name="chaincode" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" /> <item name="src" type="462c0819:PsiDirectoryNode" />
<item name="github.com" type="462c0819:PsiDirectoryNode" /> <item name="medical_chain" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="chaincode" type="b2602c69:ProjectViewProjectNode" />
<item name="chaincode" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="github.com" type="462c0819:PsiDirectoryNode" />
<item name="gongxianghui" type="462c0819:PsiDirectoryNode" />
</path> </path>
<path> <path>
<item name="chaincode" type="b2602c69:ProjectViewProjectNode" /> <item name="chaincode" type="b2602c69:ProjectViewProjectNode" />
<item name="chaincode" type="462c0819:PsiDirectoryNode" /> <item name="chaincode" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" /> <item name="src" type="462c0819:PsiDirectoryNode" />
<item name="github.com" type="462c0819:PsiDirectoryNode" /> <item name="retrospect_chain" type="462c0819:PsiDirectoryNode" />
<item name="gongxianghui_auth" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="chaincode" type="b2602c69:ProjectViewProjectNode" />
<item name="External Libraries" type="cb654da1:ExternalLibrariesNode" />
</path> </path>
</expand> </expand>
<select /> <select />
</subPane> </subPane>
</pane> </pane>
<pane id="Scope" />
</panes> </panes>
</component> </component>
<component name="PropertiesComponent"> <component name="PropertiesComponent">
<property name="DefaultGoTemplateProperty" value="Go File" />
<property name="SHARE_PROJECT_CONFIGURATION_FILES" value="true" /> <property name="SHARE_PROJECT_CONFIGURATION_FILES" value="true" />
<property name="WebServerToolWindowFactoryState" value="false" /> <property name="WebServerToolWindowFactoryState" value="false" />
<property name="go.gopath.indexing.explicitly.defined" value="true" /> <property name="go.gopath.indexing.explicitly.defined" value="true" />
<property name="go.import.settings.migrated" value="true" /> <property name="go.import.settings.migrated" value="true" />
<property name="go.sdk.automatically.set" value="true" /> <property name="go.sdk.automatically.set" value="true" />
<property name="last_opened_file_path" value="$PROJECT_DIR$" /> <property name="last_opened_file_path" value="$PROJECT_DIR$/src/retrospect_chain" />
<property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" /> <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
<property name="nodejs_npm_path_reset_for_default_project" value="true" /> <property name="nodejs_npm_path_reset_for_default_project" value="true" />
<property name="nodejs_package_manager_path" value="npm" />
<property name="settings.editor.selected.configurable" value="editor.preferences.fonts.default" /> <property name="settings.editor.selected.configurable" value="editor.preferences.fonts.default" />
</component> </component>
<component name="RecentsManager">
<key name="CopyFile.RECENT_KEYS">
<recent name="$PROJECT_DIR$/src/retrospect_chain" />
<recent name="$PROJECT_DIR$/src/medical_chain" />
</key>
</component>
<component name="RunDashboard"> <component name="RunDashboard">
<option name="ruleStates"> <option name="ruleStates">
<list> <list>
...@@ -200,123 +279,84 @@ ...@@ -200,123 +279,84 @@
</list> </list>
</option> </option>
</component> </component>
<component name="RunManager" selected="Go Test.TestGXHSchemaAuthBytable in github.com/hyperledger/chaincode/src/github.com/gongxianghui_auth"> <component name="RunManager">
<configuration name="TestGXHDataPutAuth in github.com/hyperledger/chaincode/github.com/gongxianghui_test" type="GoTestRunConfiguration" factoryName="Go Test" temporary="true" nameIsGenerated="true"> <configuration name="TestAddActivityInfo in github.com/hyperledger/chaincode/src/retrospect_chain" type="GoTestRunConfiguration" factoryName="Go Test" temporary="true" nameIsGenerated="true">
<module name="chaincode" /> <module name="chaincode" />
<working_directory value="$PROJECT_DIR$/github.com/gongxianghui_test" /> <working_directory value="$PROJECT_DIR$/src/retrospect_chain" />
<framework value="gotest" /> <framework value="gotest" />
<kind value="PACKAGE" /> <kind value="PACKAGE" />
<package value="github.com/hyperledger/chaincode/github.com/gongxianghui_test" /> <package value="github.com/hyperledger/chaincode/src/retrospect_chain" />
<directory value="$PROJECT_DIR$/" /> <directory value="$PROJECT_DIR$/" />
<filePath value="$PROJECT_DIR$/" /> <filePath value="$PROJECT_DIR$/" />
<pattern value="^TestGXHDataPutAuth$" /> <pattern value="^TestAddActivityInfo$" />
<method v="2" />
</configuration>
<configuration name="TestGXHDataPutAuth in github.com/hyperledger/chaincode/src/github.com/gongxianghui_auth" type="GoTestRunConfiguration" factoryName="Go Test" temporary="true" nameIsGenerated="true">
<module name="chaincode" />
<working_directory value="$PROJECT_DIR$/src/github.com/gongxianghui_auth" />
<framework value="gotest" />
<kind value="PACKAGE" />
<package value="github.com/hyperledger/chaincode/src/github.com/gongxianghui_auth" />
<directory value="$PROJECT_DIR$/" />
<filePath value="$PROJECT_DIR$/" />
<pattern value="^TestGXHDataPutAuth$" />
<method v="2" />
</configuration>
<configuration name="TestGXHSchemaAuth in github.com/hyperledger/chaincode/github.com/gongxianghui_test" type="GoTestRunConfiguration" factoryName="Go Test" temporary="true" nameIsGenerated="true">
<module name="chaincode" />
<working_directory value="$PROJECT_DIR$/github.com/gongxianghui_test" />
<framework value="gotest" />
<kind value="PACKAGE" />
<package value="github.com/hyperledger/chaincode/github.com/gongxianghui_test" />
<directory value="$PROJECT_DIR$/" />
<filePath value="$PROJECT_DIR$/" />
<pattern value="^TestGXHSchemaAuth$" />
<method v="2" />
</configuration>
<configuration name="TestGXHSchemaAuth in github.com/hyperledger/chaincode/src/github.com/gongxianghui_auth" type="GoTestRunConfiguration" factoryName="Go Test" temporary="true" nameIsGenerated="true">
<module name="chaincode" />
<working_directory value="$PROJECT_DIR$/src/github.com/gongxianghui_auth" />
<framework value="gotest" />
<kind value="PACKAGE" />
<package value="github.com/hyperledger/chaincode/src/github.com/gongxianghui_auth" />
<directory value="$PROJECT_DIR$/" />
<filePath value="$PROJECT_DIR$/" />
<pattern value="^TestGXHSchemaAuth$" />
<method v="2" />
</configuration>
<configuration name="TestGXHSchemaAuthBytable in github.com/hyperledger/chaincode/src/github.com/gongxianghui_auth" type="GoTestRunConfiguration" factoryName="Go Test" temporary="true" nameIsGenerated="true">
<module name="chaincode" />
<working_directory value="$PROJECT_DIR$/src/github.com/gongxianghui_auth" />
<framework value="gotest" />
<kind value="PACKAGE" />
<package value="github.com/hyperledger/chaincode/src/github.com/gongxianghui_auth" />
<directory value="$PROJECT_DIR$/" />
<filePath value="$PROJECT_DIR$/" />
<pattern value="^TestGXHSchemaAuthBytable$" />
<method v="2" /> <method v="2" />
</configuration> </configuration>
<recent_temporary> <recent_temporary>
<list> <list>
<item itemvalue="Go Test.TestGXHSchemaAuthBytable in github.com/hyperledger/chaincode/src/github.com/gongxianghui_auth" /> <item itemvalue="Go Test.TestAddActivityInfo in github.com/hyperledger/chaincode/src/retrospect_chain" />
<item itemvalue="Go Test.TestGXHSchemaAuth in github.com/hyperledger/chaincode/src/github.com/gongxianghui_auth" />
<item itemvalue="Go Test.TestGXHDataPutAuth in github.com/hyperledger/chaincode/src/github.com/gongxianghui_auth" />
<item itemvalue="Go Test.TestGXHDataPutAuth in github.com/hyperledger/chaincode/github.com/gongxianghui_test" />
<item itemvalue="Go Test.TestGXHSchemaAuth in github.com/hyperledger/chaincode/github.com/gongxianghui_test" />
</list> </list>
</recent_temporary> </recent_temporary>
</component> </component>
<component name="TestHistory"> <component name="TestHistory">
<history-entry file="TestGXHDataPutAuth_in_github_com_hyperledger_chaincode_src_github_com_gongxianghui_auth - 2020.02.29 at 22h 50m 19s.xml"> <history-entry file="TestBackUpCheck_in_github_com_hyperledger_chaincode_src_github_com_gongxianghui2_0 - 2020.04.01 at 16h 41m 47s.xml">
<configuration name="TestGXHDataPutAuth in github.com/hyperledger/chaincode/src/github.com/gongxianghui_auth" configurationId="GoTestRunConfiguration" /> <configuration name="TestBackUpCheck in github.com/hyperledger/chaincode/src/github.com/gongxianghui2.0" configurationId="GoTestRunConfiguration" />
</history-entry> </history-entry>
<history-entry file="TestGXHSchemaAuth_in_github_com_hyperledger_chaincode_src_github_com_gongxianghui_auth - 2020.03.01 at 18h 51m 18s.xml"> <history-entry file="TestFieldCheck_in_github_com_hyperledger_chaincode_src_github_com_gongxianghui_framework - 2020.04.03 at 16h 28m 41s.xml">
<configuration name="TestGXHSchemaAuth in github.com/hyperledger/chaincode/src/github.com/gongxianghui_auth" configurationId="GoTestRunConfiguration" /> <configuration name="TestFieldCheck in github.com/hyperledger/chaincode/src/github.com/gongxianghui_framework" configurationId="GoTestRunConfiguration" />
</history-entry> </history-entry>
<history-entry file="TestGXHSchemaAuth_in_github_com_hyperledger_chaincode_src_github_com_gongxianghui_auth - 2020.03.01 at 18h 54m 15s.xml"> <history-entry file="TestFieldCheck_in_github_com_hyperledger_chaincode_src_github_com_gongxianghui_framework - 2020.04.03 at 16h 29m 34s.xml">
<configuration name="TestGXHSchemaAuth in github.com/hyperledger/chaincode/src/github.com/gongxianghui_auth" configurationId="GoTestRunConfiguration" /> <configuration name="TestFieldCheck in github.com/hyperledger/chaincode/src/github.com/gongxianghui_framework" configurationId="GoTestRunConfiguration" />
</history-entry> </history-entry>
<history-entry file="TestGXHSchemaAuth_in_github_com_hyperledger_chaincode_src_github_com_gongxianghui_auth - 2020.03.01 at 18h 55m 53s.xml"> <history-entry file="TestFieldCheck_in_github_com_hyperledger_chaincode_src_github_com_gongxianghui_framework - 2020.04.03 at 16h 29m 59s.xml">
<configuration name="TestGXHSchemaAuth in github.com/hyperledger/chaincode/src/github.com/gongxianghui_auth" configurationId="GoTestRunConfiguration" /> <configuration name="TestFieldCheck in github.com/hyperledger/chaincode/src/github.com/gongxianghui_framework" configurationId="GoTestRunConfiguration" />
</history-entry> </history-entry>
<history-entry file="TestGXHSchemaAuth_in_github_com_hyperledger_chaincode_src_github_com_gongxianghui_auth - 2020.03.01 at 18h 56m 42s.xml"> <history-entry file="TestFieldCheck_in_github_com_hyperledger_chaincode_src_github_com_gongxianghui_framework - 2020.04.03 at 16h 32m 30s.xml">
<configuration name="TestGXHSchemaAuth in github.com/hyperledger/chaincode/src/github.com/gongxianghui_auth" configurationId="GoTestRunConfiguration" /> <configuration name="TestFieldCheck in github.com/hyperledger/chaincode/src/github.com/gongxianghui_framework" configurationId="GoTestRunConfiguration" />
</history-entry> </history-entry>
<history-entry file="TestGXHSchemaAuth_in_github_com_hyperledger_chaincode_src_github_com_gongxianghui_auth - 2020.03.01 at 18h 58m 06s.xml"> <history-entry file="TestFieldCheck_in_github_com_hyperledger_chaincode_src_github_com_gongxianghui_framework - 2020.04.03 at 16h 33m 07s.xml">
<configuration name="TestGXHSchemaAuth in github.com/hyperledger/chaincode/src/github.com/gongxianghui_auth" configurationId="GoTestRunConfiguration" /> <configuration name="TestFieldCheck in github.com/hyperledger/chaincode/src/github.com/gongxianghui_framework" configurationId="GoTestRunConfiguration" />
</history-entry> </history-entry>
<history-entry file="TestGXHSchemaAuth_in_github_com_hyperledger_chaincode_src_github_com_gongxianghui_auth - 2020.03.01 at 18h 58m 53s.xml"> <history-entry file="TestFieldCheck_in_github_com_hyperledger_chaincode_src_github_com_gongxianghui_framework - 2020.04.03 at 16h 34m 49s.xml">
<configuration name="TestGXHSchemaAuth in github.com/hyperledger/chaincode/src/github.com/gongxianghui_auth" configurationId="GoTestRunConfiguration" /> <configuration name="TestFieldCheck in github.com/hyperledger/chaincode/src/github.com/gongxianghui_framework" configurationId="GoTestRunConfiguration" />
</history-entry> </history-entry>
<history-entry file="TestGXHSchemaAuth_in_github_com_hyperledger_chaincode_src_github_com_gongxianghui_auth - 2020.03.01 at 19h 00m 11s.xml"> <history-entry file="TestFieldCheck_in_github_com_hyperledger_chaincode_src_github_com_gongxianghui_framework - 2020.04.03 at 16h 36m 16s.xml">
<configuration name="TestGXHSchemaAuth in github.com/hyperledger/chaincode/src/github.com/gongxianghui_auth" configurationId="GoTestRunConfiguration" /> <configuration name="TestFieldCheck in github.com/hyperledger/chaincode/src/github.com/gongxianghui_framework" configurationId="GoTestRunConfiguration" />
</history-entry> </history-entry>
<history-entry file="TestGXHSchemaAuth_in_github_com_hyperledger_chaincode_src_github_com_gongxianghui_auth - 2020.03.01 at 19h 02m 07s.xml"> <history-entry file="TestFieldCheck_in_github_com_hyperledger_chaincode_src_github_com_gongxianghui_framework - 2020.04.03 at 16h 36m 22s.xml">
<configuration name="TestGXHSchemaAuth in github.com/hyperledger/chaincode/src/github.com/gongxianghui_auth" configurationId="GoTestRunConfiguration" /> <configuration name="TestFieldCheck in github.com/hyperledger/chaincode/src/github.com/gongxianghui_framework" configurationId="GoTestRunConfiguration" />
</history-entry> </history-entry>
<history-entry file="TestGXHSchemaAuthBytable_in_github_com_hyperledger_chaincode_src_github_com_gongxianghui_auth - 2020.03.01 at 19h 03m 06s.xml"> <history-entry file="TestAddActivityInfo_in_github_com_hyperledger_chaincode_src_retrospect_chain - 2020.12.03 at 10h 23m 01s.xml">
<configuration name="TestGXHSchemaAuthBytable in github.com/hyperledger/chaincode/src/github.com/gongxianghui_auth" configurationId="GoTestRunConfiguration" /> <configuration name="TestAddActivityInfo in github.com/hyperledger/chaincode/src/retrospect_chain" configurationId="GoTestRunConfiguration" />
</history-entry> </history-entry>
</component> </component>
<component name="TodoView">
<todo-panel id="selected-file">
<is-autoscroll-to-source value="true" />
</todo-panel>
<todo-panel id="all">
<are-packages-shown value="true" />
<is-autoscroll-to-source value="true" />
</todo-panel>
</component>
<component name="ToolWindowManager"> <component name="ToolWindowManager">
<frame x="71" y="31" width="2489" height="1569" extended-state="6" /> <frame x="71" y="31" width="2489" height="1279" extended-state="6" />
<editor active="true" /> <editor active="true" />
<layout> <layout>
<window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.21948212" /> <window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.17673653" />
<window_info id="Structure" order="1" side_tool="true" weight="0.25" /> <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
<window_info id="Favorites" order="2" side_tool="true" /> <window_info id="Favorites" order="2" side_tool="true" />
<window_info anchor="bottom" id="Message" order="0" /> <window_info anchor="bottom" id="Message" order="0" />
<window_info anchor="bottom" id="Find" order="1" /> <window_info anchor="bottom" id="Find" order="1" weight="0.3294849" />
<window_info anchor="bottom" id="Run" order="2" visible="true" weight="0.32909605" /> <window_info anchor="bottom" id="Run" order="2" weight="0.39786857" />
<window_info anchor="bottom" id="Debug" order="3" weight="0.3997175" /> <window_info anchor="bottom" id="Debug" order="3" weight="0.39875665" />
<window_info anchor="bottom" id="Cvs" order="4" weight="0.25" /> <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
<window_info anchor="bottom" id="Inspection" order="5" weight="0.4" /> <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
<window_info anchor="bottom" id="TODO" order="6" /> <window_info anchor="bottom" id="TODO" order="6" weight="0.32980227" />
<window_info anchor="bottom" id="Docker" order="7" show_stripe_button="false" /> <window_info anchor="bottom" id="Docker" order="7" show_stripe_button="false" />
<window_info anchor="bottom" id="Version Control" order="8" /> <window_info anchor="bottom" id="Version Control" order="8" />
<window_info anchor="bottom" id="Database Changes" order="9" /> <window_info anchor="bottom" id="Database Changes" order="9" />
<window_info anchor="bottom" id="Statistic" order="10" /> <window_info anchor="bottom" id="Statistic" order="10" />
<window_info anchor="bottom" id="Terminal" order="11" weight="0.3119266" /> <window_info active="true" anchor="bottom" id="Terminal" order="11" visible="true" weight="0.29307282" />
<window_info anchor="bottom" id="Event Log" order="12" side_tool="true" /> <window_info anchor="bottom" id="Event Log" order="12" side_tool="true" />
<window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" /> <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
<window_info anchor="right" id="Ant Build" order="1" weight="0.25" /> <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
...@@ -332,112 +372,212 @@ ...@@ -332,112 +372,212 @@
<breakpoint-manager> <breakpoint-manager>
<breakpoints> <breakpoints>
<line-breakpoint enabled="true" type="DlvLineBreakpoint"> <line-breakpoint enabled="true" type="DlvLineBreakpoint">
<url>file://$PROJECT_DIR$/src/github.com/gongxianghui_auth/gongxianghui.go</url> <url>file://$PROJECT_DIR$/src/github.com/gongxianghui_three/gongxianghui.go</url>
<line>347</line> <line>155</line>
<properties /> <option name="timeStamp" value="6" />
<option name="timeStamp" value="1" />
</line-breakpoint>
<line-breakpoint enabled="true" type="DlvLineBreakpoint">
<url>file://$PROJECT_DIR$/src/github.com/gongxianghui_auth/gongxianghui.go</url>
<line>558</line>
<properties />
<option name="timeStamp" value="2" />
</line-breakpoint> </line-breakpoint>
<line-breakpoint enabled="true" type="DlvLineBreakpoint"> <line-breakpoint enabled="true" type="DlvLineBreakpoint">
<url>file://$PROJECT_DIR$/src/github.com/gongxianghui_auth/gongxianghui.go</url> <url>file://$PROJECT_DIR$/src/github.com/gongxianghui_user/gongxianghui.go</url>
<line>386</line> <line>384</line>
<properties /> <option name="timeStamp" value="9" />
<option name="timeStamp" value="3" />
</line-breakpoint> </line-breakpoint>
</breakpoints> </breakpoints>
</breakpoint-manager> </breakpoint-manager>
</component> </component>
<component name="editorHistoryManager"> <component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/gongxianghui/schema.go" /> <entry file="file://$PROJECT_DIR$/../fabric/protos/peer/chaincode_event.pb.go" />
<entry file="file://$PROJECT_DIR$/gongxianghui/deposit.go" /> <entry file="file://$PROJECT_DIR$/../fabric/protos/peer/chaincode_shim.pb.go" />
<entry file="file://$PROJECT_DIR$/gongxianghui/gongxianghui_test.go" /> <entry file="file://$PROJECT_DIR$/../fabric/core/chaincode/shim/handler.go" />
<entry file="file://$PROJECT_DIR$/gongxianghui/gongxianghui.go" /> <entry file="file://$PROJECT_DIR$/../fabric/core/chaincode/shim/chaincode.go" />
<entry file="file:///usr/local/go/src/crypto/x509/x509.go"> <entry file="file://$PROJECT_DIR$/../fabric/core/chaincode/lib/cid/interfaces.go" />
<entry file="file://$PROJECT_DIR$/../fabric/core/chaincode/shim/ext/cid/interfaces.go" />
<entry file="file://$PROJECT_DIR$/../fabric/protos/peer/proposal.pb.go" />
<entry file="file://$PROJECT_DIR$/../fabric/core/endorser/mocks/support.go" />
<entry file="file://$PROJECT_DIR$/../fabric/core/endorser/endorser.go">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state> <state relative-caret-position="5886">
<caret line="676" column="4" selection-start-line="676" selection-start-column="4" selection-end-line="676" selection-end-column="4" /> <caret line="350" column="57" selection-start-line="350" selection-start-column="57" selection-end-line="350" selection-end-column="57" />
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file:///usr/local/go/src/bytes/bytes.go"> <entry file="file://$PROJECT_DIR$/../fabric/core/common/validation/msgvalidation.go">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="3306"> <state relative-caret-position="1098">
<caret line="178" column="43" selection-start-line="178" selection-start-column="43" selection-end-line="178" selection-end-column="43" /> <caret line="73" column="31" selection-start-line="73" selection-start-column="25" selection-end-line="73" selection-end-column="31" />
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/../fabric/core/chaincode/shim/mockstub.go"> <entry file="file://$PROJECT_DIR$/../fabric/protos/utils/proputils.go" />
<entry file="file://$PROJECT_DIR$/../fabric/protos/common/common.pb.go" />
<entry file="file://$PROJECT_DIR$/../fabric/core/common/ccprovider/ccprovider.go">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state> <state relative-caret-position="8802">
<caret line="141" column="1" selection-start-line="141" selection-start-column="1" selection-end-line="141" selection-end-column="1" /> <caret line="505" column="5" selection-start-line="505" selection-start-column="5" selection-end-line="505" selection-end-column="5" />
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file:///usr/local/go/src/crypto/x509/pkix/pkix.go"> <entry file="file://$PROJECT_DIR$/../fabric/vendor/github.com/golang/protobuf/ptypes/timestamp/timestamp.pb.go">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state> <state relative-caret-position="667">
<caret line="126" column="18" selection-start-line="126" selection-start-column="18" selection-end-line="126" selection-end-column="18" /> <caret line="140" column="24" lean-forward="true" selection-start-line="140" selection-start-column="24" selection-end-line="140" selection-end-column="24" />
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file:///usr/local/go/src/encoding/asn1/asn1.go"> <entry file="file:///usr/local/go/src/math/big/intconv.go">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state> <state relative-caret-position="612">
<caret line="220" column="5" selection-start-line="220" selection-start-column="5" selection-end-line="220" selection-end-column="5" /> <caret line="38" column="14" selection-start-line="38" selection-start-column="14" selection-end-line="38" selection-end-column="14" />
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/../fabric/core/chaincode/shim/response.go"> <entry file="file:///usr/local/go/src/strings/strings.go">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="541"> <state relative-caret-position="5454">
<caret line="34" column="16" selection-start-line="34" selection-start-column="16" selection-end-line="34" selection-end-column="16" /> <caret line="307" column="17" selection-start-line="307" selection-start-column="14" selection-end-line="307" selection-end-column="17" />
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/../fabric/protos/peer/proposal_response.pb.go"> <entry file="file://$PROJECT_DIR$/../fabric/protos/ledger/queryresult/kv_query_result.pb.go" />
<entry file="file://$PROJECT_DIR$/src/github.com/gongxianghui/gongxianghui_test.go">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state> <state relative-caret-position="-159">
<caret line="109" column="5" selection-start-line="109" selection-start-column="5" selection-end-line="109" selection-end-column="5" /> <caret line="26" column="33" selection-start-line="26" selection-start-column="32" selection-end-line="26" selection-end-column="33" />
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/github.com/gongxianghui_auth/gongxianghui_test.go" /> <entry file="file://$PROJECT_DIR$/src/github.com/gongxianghui2.0/gongxinghuileadger_test.go">
<entry file="file://$PROJECT_DIR$/github.com/gongxianghui/gongxianghui_test.go" /> <provider selected="true" editor-type-id="text-editor" />
<entry file="file://$PROJECT_DIR$/github.com/gongxianghui/gongxianghui.go" /> </entry>
<entry file="file://$PROJECT_DIR$/github.com/gongxianghui_auth/gongxianghui.go" /> <entry file="file:///usr/local/go/src/testing/benchmark.go">
<entry file="file://$PROJECT_DIR$/../fabric/core/chaincode/shim/interfaces.go">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="880"> <state relative-caret-position="3870">
<caret line="44" column="4" selection-start-line="44" selection-start-column="4" selection-end-line="44" selection-end-column="4" /> <caret line="230" selection-start-line="230" selection-end-line="230" />
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/src/github.com/gongxianghui/gongxianghui.go"> <entry file="file:///usr/local/go/src/runtime/asm_amd64.s">
<provider selected="true" editor-type-id="text-editor" /> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="24426">
<caret line="1357" selection-start-line="1357" selection-end-line="1357" />
</state>
</provider>
</entry>
<entry file="file:///usr/local/go/src/time/time.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="20646">
<caret line="1150" column="14" selection-start-line="1150" selection-start-column="14" selection-end-line="1150" selection-end-column="14" />
</state>
</provider>
</entry>
<entry file="file:///usr/local/go/src/math/big/int.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="2358">
<caret line="136" column="14" selection-start-line="136" selection-start-column="14" selection-end-line="136" selection-end-column="14" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/github.com/gongxianghui_auth/gongxianghui_test.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="3078">
<caret line="176" column="18" selection-start-line="176" selection-start-column="18" selection-end-line="176" selection-end-column="18" />
</state>
</provider>
</entry> </entry>
<entry file="file:///usr/local/go/src/fmt/errors.go"> <entry file="file:///usr/local/go/src/fmt/errors.go">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="448"> <state relative-caret-position="288">
<caret line="16" column="5" selection-start-line="16" selection-start-column="5" selection-end-line="16" selection-end-column="5" /> <caret line="16" column="5" selection-start-line="16" selection-start-column="5" selection-end-line="16" selection-end-column="5" />
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file:///usr/local/go/src/encoding/json/decode.go"> <entry file="file://$PROJECT_DIR$/../fabric/core/chaincode/shim/mockstub.go" />
<entry file="file://$PROJECT_DIR$/src/github.com/gongxianghui2.0/gongxianghui_test.go">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="2352"> <state relative-caret-position="738">
<caret line="94" column="5" selection-start-line="94" selection-start-column="5" selection-end-line="94" selection-end-column="5" /> <caret line="48" column="4" selection-start-line="48" selection-start-column="4" selection-end-line="48" selection-end-column="4" />
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file:///usr/local/go/src/time/time.go"> <entry file="file://$PROJECT_DIR$/src/github.com/gongxianghui_auth/gongxianghui.go">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="32116"> <state relative-caret-position="444">
<caret line="1150" column="14" selection-start-line="1150" selection-start-column="14" selection-end-line="1150" selection-end-column="14" /> <caret line="331" column="16" selection-start-line="331" selection-start-column="5" selection-end-line="331" selection-end-column="16" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/github.com/gongxianghui2.0/gongxianghui2.0_test.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="1027">
<caret line="427" selection-start-line="427" selection-end-line="427" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/github.com/gongxianghui/gongxianghui.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="732">
<caret line="137" column="19" selection-start-line="137" selection-start-column="19" selection-end-line="137" selection-end-column="19" />
<folding>
<element signature="e#14#189#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file:///usr/local/go/src/reflect/type.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="354">
<caret line="1372" column="28" selection-start-line="1372" selection-start-column="28" selection-end-line="1372" selection-end-column="28" />
</state>
</provider>
</entry>
<entry file="file:///usr/local/go/src/runtime/panic.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="214">
<caret line="846" selection-start-line="846" selection-end-line="846" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/github.com/gongxianghui2.0/gongxianghui.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="5166">
<caret line="301" column="5" selection-start-line="299" selection-start-column="4" selection-end-line="301" selection-end-column="5" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/github.com/gongxianghui_framework/gongxianghui_test.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="2664">
<caret line="155" column="22" selection-start-line="155" selection-start-column="22" selection-end-line="155" selection-end-column="22" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/../fabric/core/chaincode/shim/interfaces.go" />
<entry file="file://$PROJECT_DIR$/../fabric/core/chaincode/shim/response.go" />
<entry file="file://$PROJECT_DIR$/../fabric/protos/peer/proposal_response.pb.go" />
<entry file="file://$PROJECT_DIR$/src/github.com/gongxianghui_framework/schema.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="1530">
<caret line="91" column="49" selection-start-line="91" selection-start-column="49" selection-end-line="91" selection-end-column="49" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/github.com/gongxianghui_framework/dataobject.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="2268">
<caret line="130" column="5" selection-start-line="130" selection-start-column="5" selection-end-line="130" selection-end-column="5" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/github.com/gongxianghui_framework/gongxianghui2.0_test.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="3942">
<caret line="225" column="128" selection-start-line="225" selection-start-column="119" selection-end-line="225" selection-end-column="128" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/github.com/gongxianghui_framework/gongxianghui.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="4194">
<caret line="244" column="21" selection-start-line="244" selection-start-column="21" selection-end-line="244" selection-end-column="21" />
</state> </state>
</provider> </provider>
</entry> </entry>
...@@ -449,31 +589,78 @@ ...@@ -449,31 +589,78 @@
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/src/medical_chain/medical.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="3276">
<caret line="189" column="14" selection-start-line="189" selection-start-column="14" selection-end-line="189" selection-end-column="14" />
<folding>
<element signature="e#14#170#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/retrospect_chain/retrospect.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="10080">
<caret line="567" column="51" selection-start-line="567" selection-start-column="51" selection-end-line="567" selection-end-column="51" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/medical_chain/medical_test.go">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="450">
<caret line="30" column="25" selection-start-line="30" selection-start-column="25" selection-end-line="30" selection-end-column="25" />
<folding>
<element signature="e#14#112#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/medical_chain/README.md">
<provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
<state split_layout="SPLIT">
<first_editor relative-caret-position="126">
<caret line="7" selection-start-line="7" selection-end-line="7" />
</first_editor>
<second_editor />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/retrospect_chain/README.md">
<provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
<state split_layout="SPLIT">
<first_editor relative-caret-position="18">
<caret line="1" selection-start-line="1" selection-end-line="7" />
</first_editor>
<second_editor />
</state>
</provider>
</entry>
<entry file="file:///usr/local/go/src/builtin/builtin.go"> <entry file="file:///usr/local/go/src/builtin/builtin.go">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="664"> <state relative-caret-position="4680">
<caret line="188" column="5" selection-start-line="188" selection-start-column="5" selection-end-line="188" selection-end-column="5" /> <caret line="260" column="4" selection-start-line="260" selection-start-column="4" selection-end-line="260" selection-end-column="4" />
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file:///usr/local/go/src/testing/testing.go"> <entry file="file://$PROJECT_DIR$/src/github.com/gongxianghui_framework/leadger.go">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="272"> <state relative-caret-position="162">
<caret line="846" selection-start-line="846" selection-end-line="846" /> <caret line="9" selection-start-line="9" selection-end-line="9" />
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/src/github.com/gongxianghui_auth/gongxianghui_test.go"> <entry file="file:///usr/local/go/src/testing/testing.go">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="159"> <state relative-caret-position="14940">
<caret line="98" column="130" selection-start-line="98" selection-start-column="130" selection-end-line="98" selection-end-column="130" /> <caret line="846" selection-start-line="846" selection-end-line="846" />
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/src/github.com/gongxianghui_auth/gongxianghui.go"> <entry file="file://$PROJECT_DIR$/src/retrospect_chain/restropect_test.go">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="575"> <state relative-caret-position="396">
<caret line="399" column="9" lean-forward="true" selection-start-line="399" selection-start-column="9" selection-end-line="399" selection-end-column="9" /> <caret line="27" column="144" selection-start-line="27" selection-start-column="144" selection-end-line="27" selection-end-column="144" />
</state> </state>
</provider> </provider>
</entry> </entry>
......
bean @ 0de10c54
Subproject commit 0de10c54a09fe9f5a0e8b43b2936e5c96ac2a4db
...@@ -200,4 +200,11 @@ func TestAddActivityInfo(t *testing.T) { ...@@ -200,4 +200,11 @@ func TestAddActivityInfo(t *testing.T) {
}else if print{ }else if print{
fmt.Println(string(resSearch.Payload)) fmt.Println(string(resSearch.Payload))
} }
resSearch1 := stub.MockInvoke("invoke1",[][]byte{[]byte("searchRespectInfo"),[]byte("1102"),[]byte("89")})
if resSearch1.Status != 200{
//testResult = false
t.Error(resSearch1.Message)
}else if print{
fmt.Println(string(resSearch1.Payload))
}
} }
\ No newline at end of file
...@@ -78,7 +78,6 @@ type DetectionInfo struct { ...@@ -78,7 +78,6 @@ type DetectionInfo struct {
Contacts string `json:"contacts"` //联系人 Contacts string `json:"contacts"` //联系人
ContactPhone string `json:"contactPhone"` //联系电话 ContactPhone string `json:"contactPhone"` //联系电话
Status int `json:"status"` //状态 Status int `json:"status"` //状态
} }
/* /*
...@@ -347,7 +346,6 @@ type SalesInfo struct { ...@@ -347,7 +346,6 @@ type SalesInfo struct {
PrincipalId string `json:"principalId"` //负责人ID PrincipalId string `json:"principalId"` //负责人ID
Principal string `json:"principal"` //负责人 Principal string `json:"principal"` //负责人
CommissionRatio float32 `json:"commissionRatio"` //返佣比例 CommissionRatio float32 `json:"commissionRatio"` //返佣比例
} }
/* /*
...@@ -561,7 +559,7 @@ func AddCompanyInfo(args []string, stub shim.ChaincodeStubInterface) pb.Response ...@@ -561,7 +559,7 @@ func AddCompanyInfo(args []string, stub shim.ChaincodeStubInterface) pb.Response
comInfo := &CompanyInfo{} comInfo := &CompanyInfo{}
err := json.Unmarshal([]byte(args[0]), comInfo) err := json.Unmarshal([]byte(args[0]), comInfo)
if err != nil { if err != nil {
return shim.Error(fmt.Sprintf("Unmarshal CompanyInfo fail,err %s ", err)) return shim.Error(fmt.Sprintf("Unmarshal CompanyInfo fail,err %s ,info is %s", err,args[0]))
} }
if comInfo.Cid == " " || len(comInfo.Cid) == 0 { if comInfo.Cid == " " || len(comInfo.Cid) == 0 {
return shim.Error("company info cid can not is null") return shim.Error("company info cid can not is null")
...@@ -1057,18 +1055,26 @@ func SearchRespectInfo(args []string, stub shim.ChaincodeStubInterface) pb.Respo ...@@ -1057,18 +1055,26 @@ func SearchRespectInfo(args []string, stub shim.ChaincodeStubInterface) pb.Respo
return shim.Error("create respect show composite key err: " + err.Error()) return shim.Error("create respect show composite key err: " + err.Error())
} }
showByte, err := getStateByte(showKey, stub) showByte, err := getStateByte(showKey, stub)
qr := &SearchQrCode{}
if showByte != nil{ if showByte != nil{
return shim.Success(showByte)
} err = json.Unmarshal(showByte,qr)
qrcode,err := getQrcode(args,stub) if err !=nil{
if err!=nil{ return shim.Error(err.Error())
return shim.Error(err.Error()) }
} qr.Count+=1
searchShow,err := extractRespectShowInfo(qrcode,stub) }else{
if err != nil{ qrcode,err := getQrcode(args,stub)
return shim.Error("extract RespectShow info err: " +err.Error()) if err!=nil{
return shim.Error(err.Error())
}
qr,err = extractRespectShowInfo(qrcode,stub)
if err != nil{
return shim.Error("extract RespectShow info err: " +err.Error())
}
} }
valueByte, err := json.Marshal(searchShow)
valueByte, err := json.Marshal(qr)
if err != nil { if err != nil {
return shim.Error(fmt.Sprintf("json marshal data fail,err: %s", err)) return shim.Error(fmt.Sprintf("json marshal data fail,err: %s", err))
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment