瀏覽代碼

up to date 7.25.18 2:43pm

Tennessee Gibbs 6 年之前
父節點
當前提交
6f10b619e1

+ 123
- 39
.idea/workspace.xml 查看文件

@@ -1,7 +1,10 @@
1 1
 <?xml version="1.0" encoding="UTF-8"?>
2 2
 <project version="4">
3 3
   <component name="ChangeListManager">
4
-    <list default="true" id="86492085-3833-4394-8353-122bd8bc6cb0" name="Default" comment="" />
4
+    <list default="true" id="86492085-3833-4394-8353-122bd8bc6cb0" name="Default" comment="">
5
+      <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
6
+      <change beforePath="$PROJECT_DIR$/src/main/java/com/buecoin01/controller/TransactionController.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/buecoin01/controller/TransactionController.java" afterDir="false" />
7
+    </list>
5 8
     <ignored path="$PROJECT_DIR$/target/" />
6 9
     <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
7 10
     <option name="TRACKING_ENABLED" value="true" />
@@ -12,11 +15,44 @@
12 15
   </component>
13 16
   <component name="FileEditorManager">
14 17
     <leaf>
15
-      <file leaf-file-name="ConductTransactions.java" pinned="false" current-in-tab="true">
18
+      <file leaf-file-name="Wallet.java" pinned="false" current-in-tab="false">
19
+        <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/model/Wallet.java">
20
+          <provider selected="true" editor-type-id="text-editor">
21
+            <state relative-caret-position="139">
22
+              <caret line="16" lean-forward="true" selection-start-line="16" selection-end-line="16" />
23
+              <folding>
24
+                <element signature="imports" expanded="true" />
25
+              </folding>
26
+            </state>
27
+          </provider>
28
+        </entry>
29
+      </file>
30
+      <file leaf-file-name="ConductTransactions.java" pinned="false" current-in-tab="false">
16 31
         <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/controller/ConductTransactions.java">
17 32
           <provider selected="true" editor-type-id="text-editor">
18
-            <state relative-caret-position="30">
19
-              <caret line="2" column="7" selection-start-line="2" selection-start-column="7" selection-end-line="2" selection-end-column="7" />
33
+            <state relative-caret-position="480">
34
+              <caret line="34" column="38" selection-start-line="34" selection-start-column="38" selection-end-line="34" selection-end-column="38" />
35
+              <folding>
36
+                <element signature="imports" expanded="true" />
37
+              </folding>
38
+            </state>
39
+          </provider>
40
+        </entry>
41
+      </file>
42
+      <file leaf-file-name="Application.java" pinned="false" current-in-tab="false">
43
+        <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/Application.java">
44
+          <provider selected="true" editor-type-id="text-editor">
45
+            <state relative-caret-position="60">
46
+              <caret line="6" column="22" selection-start-line="6" selection-start-column="22" selection-end-line="6" selection-end-column="22" />
47
+            </state>
48
+          </provider>
49
+        </entry>
50
+      </file>
51
+      <file leaf-file-name="WalletController.java" pinned="false" current-in-tab="false">
52
+        <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/controller/WalletController.java">
53
+          <provider selected="true" editor-type-id="text-editor">
54
+            <state relative-caret-position="258">
55
+              <caret line="26" column="71" lean-forward="true" selection-start-line="26" selection-start-column="71" selection-end-line="26" selection-end-column="71" />
20 56
               <folding>
21 57
                 <element signature="imports" expanded="true" />
22 58
               </folding>
@@ -24,6 +60,51 @@
24 60
           </provider>
25 61
         </entry>
26 62
       </file>
63
+      <file leaf-file-name="ProcessLoader.java" pinned="false" current-in-tab="false">
64
+        <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/ProcessLoader.java">
65
+          <provider selected="true" editor-type-id="text-editor">
66
+            <state relative-caret-position="583">
67
+              <caret line="30" column="29" lean-forward="true" selection-start-line="30" selection-start-column="29" selection-end-line="30" selection-end-column="29" />
68
+              <folding>
69
+                <element signature="imports" expanded="true" />
70
+              </folding>
71
+            </state>
72
+          </provider>
73
+        </entry>
74
+      </file>
75
+      <file leaf-file-name="TransactionController.java" pinned="false" current-in-tab="false">
76
+        <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/controller/TransactionController.java">
77
+          <provider selected="true" editor-type-id="text-editor">
78
+            <state relative-caret-position="7">
79
+              <caret line="13" selection-start-line="13" selection-end-line="13" />
80
+              <folding>
81
+                <element signature="imports" expanded="true" />
82
+              </folding>
83
+            </state>
84
+          </provider>
85
+        </entry>
86
+      </file>
87
+      <file leaf-file-name="Transactions.java" pinned="false" current-in-tab="true">
88
+        <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/model/Transactions.java">
89
+          <provider selected="true" editor-type-id="text-editor">
90
+            <state relative-caret-position="579">
91
+              <caret line="77" column="5" lean-forward="true" selection-start-line="77" selection-start-column="5" selection-end-line="77" selection-end-column="5" />
92
+              <folding>
93
+                <element signature="imports" expanded="true" />
94
+              </folding>
95
+            </state>
96
+          </provider>
97
+        </entry>
98
+      </file>
99
+      <file leaf-file-name="application.properties" pinned="false" current-in-tab="false">
100
+        <entry file="file://$PROJECT_DIR$/src/main/resources/application.properties">
101
+          <provider selected="true" editor-type-id="text-editor">
102
+            <state relative-caret-position="30">
103
+              <caret line="2" column="44" selection-start-line="2" selection-start-column="42" selection-end-line="2" selection-end-column="44" />
104
+            </state>
105
+          </provider>
106
+        </entry>
107
+      </file>
27 108
     </leaf>
28 109
   </component>
29 110
   <component name="FileTemplateManagerImpl">
@@ -59,12 +140,12 @@
59 140
         <option value="$PROJECT_DIR$/src/main/java/com/buecoin01/Application.java" />
60 141
         <option value="$PROJECT_DIR$/src/main/java/com/buecoin01/model/Block.java" />
61 142
         <option value="$PROJECT_DIR$/src/main/java/com/buecoin01/controller/WalletController.java" />
62
-        <option value="$PROJECT_DIR$/src/main/java/com/buecoin01/controller/TransactionController.java" />
63
-        <option value="$PROJECT_DIR$/src/main/java/com/buecoin01/model/Transactions.java" />
64 143
         <option value="$PROJECT_DIR$/src/main/java/com/buecoin01/ProcessLoader.java" />
65 144
         <option value="$PROJECT_DIR$/src/main/resources/application.properties" />
66 145
         <option value="$PROJECT_DIR$/src/main/java/com/buecoin01/model/Wallet.java" />
67 146
         <option value="$PROJECT_DIR$/src/main/java/com/buecoin01/controller/ConductTransactions.java" />
147
+        <option value="$PROJECT_DIR$/src/main/java/com/buecoin01/model/Transactions.java" />
148
+        <option value="$PROJECT_DIR$/src/main/java/com/buecoin01/controller/TransactionController.java" />
68 149
       </list>
69 150
     </option>
70 151
   </component>
@@ -84,7 +165,9 @@
84 165
   <component name="NodePackageJsonFileManager">
85 166
     <packageJsonPaths />
86 167
   </component>
87
-  <component name="ProjectFrameBounds" extendedState="6" fullScreen="true">
168
+  <component name="ProjectFrameBounds" fullScreen="true">
169
+    <option name="x" value="-213" />
170
+    <option name="y" value="-1080" />
88 171
     <option name="width" value="1920" />
89 172
     <option name="height" value="1080" />
90 173
   </component>
@@ -169,6 +252,7 @@
169 252
     <property name="WebServerToolWindowFactoryState" value="false" />
170 253
     <property name="aspect.path.notification.shown" value="true" />
171 254
     <property name="last_opened_file_path" value="$PROJECT_DIR$" />
255
+    <property name="settings.editor.selected.configurable" value="preferences.lookFeel" />
172 256
   </component>
173 257
   <component name="RecentsManager">
174 258
     <key name="CreateClassDialog.RecentsKey">
@@ -270,10 +354,10 @@
270 354
     <servers />
271 355
   </component>
272 356
   <component name="TimeTrackingManager">
273
-    <option name="totallyTimeSpent" value="12339000" />
357
+    <option name="totallyTimeSpent" value="16177000" />
274 358
   </component>
275 359
   <component name="ToolWindowManager">
276
-    <frame x="-17" y="-908" width="1440" height="827" extended-state="0" />
360
+    <frame x="-213" y="-1080" width="1920" height="1080" extended-state="0" />
277 361
     <layout>
278 362
       <window_info anchor="right" id="Palette" />
279 363
       <window_info anchor="bottom" id="Event Log" side_tool="true" />
@@ -292,11 +376,11 @@
292 376
       <window_info id="Image Layers" />
293 377
       <window_info anchor="bottom" id="Java Enterprise" />
294 378
       <window_info anchor="right" id="Capture Analysis" />
295
-      <window_info anchor="bottom" id="Run" order="2" />
379
+      <window_info anchor="bottom" id="Run" order="2" visible="true" weight="0.32892057" />
296 380
       <window_info anchor="bottom" id="Version Control" />
297 381
       <window_info anchor="bottom" id="Spring" />
298
-      <window_info anchor="bottom" id="Terminal" visible="true" weight="0.32956153" />
299
-      <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.24964234" />
382
+      <window_info anchor="bottom" id="Terminal" weight="0.23727088" />
383
+      <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.185836" />
300 384
       <window_info anchor="right" id="Bean Validation" />
301 385
       <window_info id="Web" side_tool="true" />
302 386
       <window_info anchor="right" id="Theme Preview" />
@@ -622,33 +706,20 @@
622 706
         </state>
623 707
       </provider>
624 708
     </entry>
625
-    <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/controller/TransactionController.java">
626
-      <provider selected="true" editor-type-id="text-editor">
627
-        <state relative-caret-position="599">
628
-          <caret line="56" lean-forward="true" selection-start-line="56" selection-end-line="56" />
629
-          <folding>
630
-            <element signature="imports" expanded="true" />
631
-          </folding>
632
-        </state>
633
-      </provider>
634
-    </entry>
635
-    <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/model/Transactions.java">
709
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/ProcessLoader.java">
636 710
       <provider selected="true" editor-type-id="text-editor">
637
-        <state relative-caret-position="825">
638
-          <caret line="71" column="17" selection-start-line="71" selection-start-column="17" selection-end-line="71" selection-end-column="17" />
711
+        <state relative-caret-position="583">
712
+          <caret line="30" column="29" lean-forward="true" selection-start-line="30" selection-start-column="29" selection-end-line="30" selection-end-column="29" />
639 713
           <folding>
640 714
             <element signature="imports" expanded="true" />
641 715
           </folding>
642 716
         </state>
643 717
       </provider>
644 718
     </entry>
645
-    <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/ProcessLoader.java">
719
+    <entry file="file://$PROJECT_DIR$/src/main/resources/application.properties">
646 720
       <provider selected="true" editor-type-id="text-editor">
647
-        <state relative-caret-position="510">
648
-          <caret line="34" selection-start-line="34" selection-end-line="34" />
649
-          <folding>
650
-            <element signature="imports" expanded="true" />
651
-          </folding>
721
+        <state relative-caret-position="30">
722
+          <caret line="2" column="44" selection-start-line="2" selection-start-column="42" selection-end-line="2" selection-end-column="44" />
652 723
         </state>
653 724
       </provider>
654 725
     </entry>
@@ -669,17 +740,20 @@
669 740
         </state>
670 741
       </provider>
671 742
     </entry>
672
-    <entry file="file://$PROJECT_DIR$/src/main/resources/application.properties">
743
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/controller/WalletController.java">
673 744
       <provider selected="true" editor-type-id="text-editor">
674
-        <state relative-caret-position="15">
675
-          <caret line="1" selection-start-line="1" selection-end-line="1" />
745
+        <state relative-caret-position="258">
746
+          <caret line="26" column="71" lean-forward="true" selection-start-line="26" selection-start-column="71" selection-end-line="26" selection-end-column="71" />
747
+          <folding>
748
+            <element signature="imports" expanded="true" />
749
+          </folding>
676 750
         </state>
677 751
       </provider>
678 752
     </entry>
679
-    <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/controller/WalletController.java">
753
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/controller/TransactionController.java">
680 754
       <provider selected="true" editor-type-id="text-editor">
681
-        <state relative-caret-position="648">
682
-          <caret line="52" selection-start-line="52" selection-end-line="52" />
755
+        <state relative-caret-position="7">
756
+          <caret line="13" selection-start-line="13" selection-end-line="13" />
683 757
           <folding>
684 758
             <element signature="imports" expanded="true" />
685 759
           </folding>
@@ -688,8 +762,18 @@
688 762
     </entry>
689 763
     <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/controller/ConductTransactions.java">
690 764
       <provider selected="true" editor-type-id="text-editor">
691
-        <state relative-caret-position="30">
692
-          <caret line="2" column="7" selection-start-line="2" selection-start-column="7" selection-end-line="2" selection-end-column="7" />
765
+        <state relative-caret-position="480">
766
+          <caret line="34" column="38" selection-start-line="34" selection-start-column="38" selection-end-line="34" selection-end-column="38" />
767
+          <folding>
768
+            <element signature="imports" expanded="true" />
769
+          </folding>
770
+        </state>
771
+      </provider>
772
+    </entry>
773
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/model/Transactions.java">
774
+      <provider selected="true" editor-type-id="text-editor">
775
+        <state relative-caret-position="579">
776
+          <caret line="77" column="5" lean-forward="true" selection-start-line="77" selection-start-column="5" selection-end-line="77" selection-end-column="5" />
693 777
           <folding>
694 778
             <element signature="imports" expanded="true" />
695 779
           </folding>

+ 5
- 6
src/main/java/com/buecoin01/controller/TransactionController.java 查看文件

@@ -11,7 +11,6 @@ import java.util.Optional;
11 11
 
12 12
 @CrossOrigin(origins = {"http://localhost:8100", "http://localhost:8080"})
13 13
 @RestController
14
-@RequestMapping(path = "/transaction")
15 14
 public class TransactionController {
16 15
 
17 16
 
@@ -20,33 +19,33 @@ public class TransactionController {
20 19
         @Autowired
21 20
         private TransactionRepository transactionRepository;
22 21
 
23
-        @RequestMapping(value = "/user/{id}", method = RequestMethod.GET)
22
+        @RequestMapping(value = "/transactions/{id}", method = RequestMethod.GET)
24 23
         public ResponseEntity get(@PathVariable Long id) {
25 24
             Optional<Transactions> transaction = transactionRepository.findById(id);
26 25
             return new ResponseEntity <>(transaction, HttpStatus.OK );
27 26
 
28 27
         }
29 28
 
30
-        @RequestMapping(value = "/users", method = RequestMethod.GET)
29
+        @RequestMapping(value = "/transactions", method = RequestMethod.GET)
31 30
         public ResponseEntity <Iterable <Transactions>> getAllUsers() {
32 31
             Iterable <Transactions> allTransactions = transactionRepository.findAll();
33 32
             return new ResponseEntity <>( allTransactions, HttpStatus.OK );
34 33
 
35 34
         }
36 35
 
37
-        @RequestMapping(path = "/add", method = RequestMethod.POST)
36
+        @RequestMapping(path = "/addTx", method = RequestMethod.POST)
38 37
         public ResponseEntity <?> create(@RequestBody Transactions transactions) {
39 38
             transactionRepository.save(transactions);
40 39
             return new ResponseEntity <>(transactions, HttpStatus.CREATED );
41 40
         }
42 41
 
43
-        @RequestMapping(path = "/delete", method = RequestMethod.DELETE)
42
+        @RequestMapping(path = "/deleteTx", method = RequestMethod.DELETE)
44 43
         public ResponseEntity <Transactions> deleteUser(@RequestBody Transactions transactions) {
45 44
             transactionRepository.delete(transactions);
46 45
             return new ResponseEntity <>( HttpStatus.OK );
47 46
         }
48 47
 
49
-        @RequestMapping(path = "/updateUser", method = RequestMethod.PUT)
48
+        @RequestMapping(path = "/updateTransaction", method = RequestMethod.PUT)
50 49
         public ResponseEntity <Transactions> updateUser(@RequestBody Transactions transactions) {
51 50
             transactionRepository.save(transactions);
52 51
             return new ResponseEntity <>( HttpStatus.OK );

二進制
target/classes/com/buecoin01/controller/TransactionController.class 查看文件