From fac441d3e299729addfccfc3229e1640adc9becf Mon Sep 17 00:00:00 2001 From: liuyuanqiang <837052308@qq.com> Date: Sun, 23 Oct 2022 10:42:32 +0800 Subject: [PATCH] internal-common --- .idea/compiler.xml | 1 + .../common/response/NumberCodeResponse.java | 8 ++++++++ .../common/constant/CommonStatusEnum.class | Bin 0 -> 1552 bytes .../mashibing/common/dto/ResponseResult.class | Bin 0 -> 3906 bytes .../common/response/NumberCodeResponse.class | Bin 0 -> 1364 bytes .../target/internal-common-1.0-SNAPSHOT.jar | Bin 0 -> 5649 bytes .../target/maven-archiver/pom.properties | 3 +++ .../compile/default-compile/createdFiles.lst | 3 +++ .../compile/default-compile/inputFiles.lst | 3 +++ .../default-testCompile/createdFiles.lst | 0 .../default-testCompile/inputFiles.lst | 0 service-verificationcode/pom.xml | 6 ++++++ .../service/controller/NumberCodeController.java | 10 ++++++++-- 13 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 internal-common/src/main/java/com/mashibing/common/response/NumberCodeResponse.java create mode 100644 internal-common/target/classes/com/mashibing/common/constant/CommonStatusEnum.class create mode 100644 internal-common/target/classes/com/mashibing/common/dto/ResponseResult.class create mode 100644 internal-common/target/classes/com/mashibing/common/response/NumberCodeResponse.class create mode 100644 internal-common/target/internal-common-1.0-SNAPSHOT.jar create mode 100644 internal-common/target/maven-archiver/pom.properties create mode 100644 internal-common/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst create mode 100644 internal-common/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst create mode 100644 internal-common/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst create mode 100644 internal-common/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst diff --git a/.idea/compiler.xml b/.idea/compiler.xml index d2c9e21..0549b8a 100644 --- a/.idea/compiler.xml +++ b/.idea/compiler.xml @@ -2,6 +2,7 @@ + diff --git a/internal-common/src/main/java/com/mashibing/common/response/NumberCodeResponse.java b/internal-common/src/main/java/com/mashibing/common/response/NumberCodeResponse.java new file mode 100644 index 0000000..ba1d3d9 --- /dev/null +++ b/internal-common/src/main/java/com/mashibing/common/response/NumberCodeResponse.java @@ -0,0 +1,8 @@ +package com.mashibing.common.response; + +import lombok.Data; + +@Data +public class NumberCodeResponse { + private int numberCode; +} diff --git a/internal-common/target/classes/com/mashibing/common/constant/CommonStatusEnum.class b/internal-common/target/classes/com/mashibing/common/constant/CommonStatusEnum.class new file mode 100644 index 0000000000000000000000000000000000000000..437e6ecfea1560a90e97686aae5ffd4b0349968f GIT binary patch literal 1552 zcmbVMT~8BH5Iwiuc1u}-E{KAHsHkmGDuSON0u_@c^&?p&G5WGBE3DaWlkS#he~=G~ zqDG_f*&k&*v)hCU_<&9J&YgQ_=FFLy+h4!G{s1tC)gEY=&2x8M$B2#_c?{sDEVtz5 zwk&sYDC97o=XOE#yEzQzuqfMmI+hf4>shtBYFP?b>rS&#Y1rYGx9$a-6>5!UKoNwI z9YmFCtXq*CwZqk*-I!O<9xT`D6i#!)RZumBbR*nUFzc`FZM)*z3}ZztMx(Jlxwc$? zwo0U#7e|N6Zrgs_4HagKrT=i(s&R__buVxqwHxbh>#4o&Gig1J`}mc@{o=u_OGi)C ztT!FoU$a}D0CZ5az-|z1;Gr9BH8-BvEvk{*BAx7l7kJU4Lg^6rTJ4aO)>!ap%cF08 z(q$heli0@+rP0^3*UvAoTIy=oD6xcHAi`lcHtl}Q&%Y+si8L+Rj9v2+kxA-CZ8 zoqXxQOjf$AWGEJnTChbsXp#)`u9(MHw4II0HD z2yQ@clo>>}^t=h$V>t1EW$M z>RI$)6sMqYn%X%^`Q>+@J|XoJ>37r=#<*tVJFy?f8O9U)IZE-!n_Bq`GC!e-ed;g! z37!~<70wDaQJA5^**9X!LLwapdr6t$m06xT{TbQv*e>+)h_;K|d!8miO%epDWJ#u% zJt;8Y1WzXDOHW*g$;wXXCTBuei$Mz-F0wqA_zlr~m|u}!3MJ-O#uQg!RiPACnes>I zZ)1bK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P$L zGow`H-Q>DcHmbWu!;*P$sJIoYDKNKQc4~#1(X3b{%ib?At2uU|VK(cI-82h+BiVU7 zI4TOn_f5A`@bEcKym|IiNw3MV5*wylarU;1hEX$Jvq8{^`MPCP84RV@4~#cPp=uC% zvvgpV-D2hi**S9Ru9AT2xD~TOtR2@VzuGYB9vccN5G@<_itNjelw!#tI?H zs8w}YbDbTxL8=0S>C7n%|CH=vJ5H-nHdigF-AIS$u>g5FmyQGmbo8NLVD^6{)NvgX zIz})`fDTK4g2yeZx+ghKc0;G_lNDIj@c<8{S)g7S9k-FD*qv^^oMdj)>!!UYFmqb$ zfNi$`0X%g`@&9${b6mz%E^V9}EfA6_Fwz)P6xt-S0==MDvquo07=&<%HsT**kg*=b zLl|a8DKJWV_VH(g4$nQ-E_^(O%Y=}R7wJRvk?i;vgf502_HV$4mSaf{0^@wA3ML6A zDNF<{-_nO!%IC5lpel#Cp9sH$8a~YZKzL(1+lJz$4Ag0U?`2JqgNM6VPx+lrp!1l- z6`~Dc3{zAhL}`IuC|dM4`ZQeAkEfdCREk`kV5$Yal0;QG&UuwoPbHtHdIF{rLV^W6 zr#zlFPITW4cn&0rOUiO8QLIQtFPBpnclW6b1l_}w?WU)q%3phnQHV%fOIrC~R=pfZ keM98=5wv8qjUL&*jaagmaU1$a-uu_0qyij)jCU*h7go#l761SM literal 0 HcmV?d00001 diff --git a/internal-common/target/internal-common-1.0-SNAPSHOT.jar b/internal-common/target/internal-common-1.0-SNAPSHOT.jar new file mode 100644 index 0000000000000000000000000000000000000000..b7d0fd8c68ed319423aa245abe1e453fd390bd89 GIT binary patch literal 5649 zcmbVQ2{_bU`yTr)J7ak*+1I>e8B1BlI@YlkG8jvl!5C|clzoYcWM3NlPNYaA`%Z+U z#8@ICSzb&3@p?bXo4)_`owqE%v znL{LoIG4$BE(88{8Rz9;Bg6F$T|OE%hI_NaF}MyP?y+}6NSr)^`kxU9n5VOgoeR?G zH)9$9H5SK>a6|qE^2bRKdpD#f8iqvw1`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KbbaqJbPhy&N|SGYQy~!y9mZyqe*X$*Spm5 zRf=qKjy2q(Z+mo|g68FYYL~wP0-m?9iy>~wBysbYa2fEWt7l4q@2WhwYg!>-yWAfB z0Y9~$E8GZF)yLUX^FC~CPGs+9n}f)%VPBK8%gq`MJ|W4>jY}TCC)E$lXCJM%0ZJRBK4bSzLt5@c~OIGiX56( zT|&K<>9bWOOA6e*cO77QHU-`zp{iUAAGtOd z6S(H2o}O}EuNlNbv#Su6OWeME{^~{ySlj2jS4%+rF455*n5r@}t&G}`q{YJ(p16Im zUtb(6iGHqfj+ZL#ZU}K-gln*oihk1>nz~s=qor!-hnqYCjLd|_x+2+JB_;NBk9;{s zk@siqQ*!h~xYuV!6I1&iijxerXu^tK#|luS@RtKhM993->Xy^`?JGoi#(=wGHIYhe zu4&ReUO?^$4kFuO$qCXTJ-zDWvwjWvFX);F3AJS`{2qL}9<#m8Riisdv}IMQ6QCl= z+Xy1I>cW~i%D9>*Nio~)UE%!R%;I|Xmf)AN00HosM;uc4Rvz9tU2Q1e_z@mM12>x*7Tfg$FRy#lvSHIJhkTN+iMg`FF$YDkLOUn^8kn#lT!?`}`3iG3l zUmXfZHaKug;@BGac^Z$${+}b_M+?8oiANT0();C|5|DsC( literal 0 HcmV?d00001 diff --git a/internal-common/target/maven-archiver/pom.properties b/internal-common/target/maven-archiver/pom.properties new file mode 100644 index 0000000..da37a75 --- /dev/null +++ b/internal-common/target/maven-archiver/pom.properties @@ -0,0 +1,3 @@ +artifactId=internal-common +groupId=org.mashibing +version=1.0-SNAPSHOT diff --git a/internal-common/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst b/internal-common/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst new file mode 100644 index 0000000..67e788f --- /dev/null +++ b/internal-common/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst @@ -0,0 +1,3 @@ +com\mashibing\common\dto\ResponseResult.class +com\mashibing\common\constant\CommonStatusEnum.class +com\mashibing\common\response\NumberCodeResponse.class diff --git a/internal-common/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/internal-common/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst new file mode 100644 index 0000000..e5ccf60 --- /dev/null +++ b/internal-common/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst @@ -0,0 +1,3 @@ +D:\Works\workspaces\online-taxi-public\internal-common\src\main\java\com\mashibing\common\constant\CommonStatusEnum.java +D:\Works\workspaces\online-taxi-public\internal-common\src\main\java\com\mashibing\common\dto\ResponseResult.java +D:\Works\workspaces\online-taxi-public\internal-common\src\main\java\com\mashibing\common\response\NumberCodeResponse.java diff --git a/internal-common/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst b/internal-common/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst new file mode 100644 index 0000000..e69de29 diff --git a/internal-common/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst b/internal-common/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst new file mode 100644 index 0000000..e69de29 diff --git a/service-verificationcode/pom.xml b/service-verificationcode/pom.xml index e0f571c..74e4c42 100644 --- a/service-verificationcode/pom.xml +++ b/service-verificationcode/pom.xml @@ -26,6 +26,12 @@ spring-boot-starter-test test + + + org.mashibing + internal-common + 1.0-SNAPSHOT + diff --git a/service-verificationcode/src/main/java/com/mashibing/service/controller/NumberCodeController.java b/service-verificationcode/src/main/java/com/mashibing/service/controller/NumberCodeController.java index 9a72260..a6ceb4b 100644 --- a/service-verificationcode/src/main/java/com/mashibing/service/controller/NumberCodeController.java +++ b/service-verificationcode/src/main/java/com/mashibing/service/controller/NumberCodeController.java @@ -1,5 +1,7 @@ package com.mashibing.service.controller; +import com.mashibing.common.dto.ResponseResult; +import com.mashibing.common.response.NumberCodeResponse; import net.sf.json.JSONObject; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; @@ -10,7 +12,7 @@ import static java.lang.Math.pow; @RestController public class NumberCodeController { @GetMapping("/numberCode/{size}") - public String getNumberCode(@PathVariable("size") int size){ + public ResponseResult getNumberCode(@PathVariable("size") int size){ System.out.println("size:" + size); //获取随机数 @@ -18,13 +20,17 @@ public class NumberCodeController { int resultInt = (int) mathRandom; System.out.println(resultInt); + NumberCodeResponse response = new NumberCodeResponse(); + response.setNumberCode(resultInt); +/* JSONObject result = new JSONObject(); result.put("code",1); result.put("message","success"); JSONObject data = new JSONObject(); data.put("numberCode",resultInt); result.put("data",data); - return result.toString(); + */ + return ResponseResult.success(response); } }