master
zhouzhou 2023-12-21 13:22:40 +08:00
parent f9f126e8f9
commit 5aef7628cf
7 changed files with 141 additions and 16 deletions

View File

@ -5,6 +5,7 @@
<file url="file://$PROJECT_DIR$/bwie-common/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/bwie-gateway/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/bwie-modules/bwie-mq/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/bwie-modules/bwie-product/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/bwie-modules/bwie-user/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/bwie-modules/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/bwie-modules/src/main/resources" charset="UTF-8" />

View File

@ -5,15 +5,28 @@
</component>
<component name="ChangeListManager">
<list default="true" id="2264b00c-a866-471a-9769-9a0864968167" name="Changes" comment="后台框架">
<change beforePath="$PROJECT_DIR$/.idea/encodings.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/encodings.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/vcs.xml" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/out/production/bwie-auth/bootstrap.yml" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/bwie-auth/src/main/resources/bootstrap.yml" beforeDir="false" afterPath="$PROJECT_DIR$/bwie-auth/src/main/resources/bootstrap.yml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/bwie-common/src/main/java/com/bwie/common/domain/User.java" beforeDir="false" afterPath="$PROJECT_DIR$/bwie-common/src/main/java/com/bwie/common/domain/User.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/bwie-common/src/main/java/com/bwie/common/domain/request/Userlogin.java" beforeDir="false" afterPath="$PROJECT_DIR$/bwie-common/src/main/java/com/bwie/common/domain/request/Userlogin.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/bwie-modules/bwie-user/src/main/resources/bootstrap.yml" beforeDir="false" afterPath="$PROJECT_DIR$/bwie-modules/bwie-user/src/main/resources/bootstrap.yml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/bwie-modules/pom.xml" beforeDir="false" afterPath="$PROJECT_DIR$/bwie-modules/pom.xml" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="FileTemplateManagerImpl">
<option name="RECENT_TEMPLATES">
<list>
<option value="Interface" />
<option value="Class" />
</list>
</option>
</component>
<component name="Git.Settings">
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
</component>
@ -34,30 +47,119 @@
</component>
<component name="PropertiesComponent"><![CDATA[{
"keyToString": {
"ApiPost:METDOD_SEND_RECORD:bwie-auth": "{\"/login\":[{\"url\":\"http://localhost:9001/login\",\"header\":[{\"is_checked\":1.0,\"type\":\"Text\",\"value\":\"\"}],\"query\":[{\"is_checked\":1.0,\"type\":\"Text\",\"value\":\"\"}],\"rest\":[{\"is_checked\":1.0,\"type\":\"Text\",\"value\":\"\"}],\"requestBody\":\"{\\n \\\"phone\\\": \\\"18581585981\\\",\\n \\\"pwd\\\": \\\"123\\\"\\n}\",\"responseBody\":\"There was an error accessing to URL: http://localhost:9001/login\\n\\n\\u003chtml\\u003e\\u003cbody\\u003e\\u003ch1\\u003eWhitelabel Error Page\\u003c/h1\\u003e\\u003cp\\u003eThis application has no explicit mapping for /error, so you are seeing this as a fallback.\\u003c/p\\u003e\\u003cdiv id\\u003d\\u0027created\\u0027\\u003eThu Dec 21 10:49:16 CST 2023\\u003c/div\\u003e\\u003cdiv\\u003eThere was an unexpected error (type\\u003dInternal Server Error, status\\u003d500).\\u003c/div\\u003e\\u003c/body\\u003e\\u003c/html\\u003e\",\"selectedItem\":\"POST\",\"time\":{\"date\":{\"year\":2023.0,\"month\":12.0,\"day\":21.0},\"time\":{\"hour\":10.0,\"minute\":49.0,\"second\":16.0,\"nano\":3.162204E8}}},{\"url\":\"http://localhost:9001/login\",\"header\":[{\"is_checked\":1.0,\"type\":\"Text\",\"value\":\"\"}],\"query\":[{\"is_checked\":1.0,\"type\":\"Text\",\"value\":\"\"}],\"rest\":[{\"is_checked\":1.0,\"type\":\"Text\",\"value\":\"\"}],\"requestBody\":\"{\\n \\\"phone\\\": \\\"18581585981\\\",\\n \\\"pwd\\\": \\\"123\\\"\\n}\",\"responseBody\":\"There was an error accessing to URL: http://localhost:9001/login\\n\\n\\u003chtml\\u003e\\u003cbody\\u003e\\u003ch1\\u003eWhitelabel Error Page\\u003c/h1\\u003e\\u003cp\\u003eThis application has no explicit mapping for /error, so you are seeing this as a fallback.\\u003c/p\\u003e\\u003cdiv id\\u003d\\u0027created\\u0027\\u003eThu Dec 21 10:52:32 CST 2023\\u003c/div\\u003e\\u003cdiv\\u003eThere was an unexpected error (type\\u003dInternal Server Error, status\\u003d500).\\u003c/div\\u003e\\u003c/body\\u003e\\u003c/html\\u003e\",\"selectedItem\":\"POST\",\"time\":{\"date\":{\"year\":2023.0,\"month\":12.0,\"day\":21.0},\"time\":{\"hour\":10.0,\"minute\":52.0,\"second\":32.0,\"nano\":1.243314E8}}},{\"url\":\"http://localhost:9001/login\",\"header\":[{\"is_checked\":1.0,\"type\":\"Text\",\"value\":\"\"}],\"query\":[{\"is_checked\":1.0,\"type\":\"Text\",\"value\":\"\"}],\"rest\":[{\"is_checked\":1.0,\"type\":\"Text\",\"value\":\"\"}],\"requestBody\":\"{\\n \\\"phone\\\": \\\"215464532156\\\",\\n \\\"pwd\\\": \\\"\\\"\\n}\",\"responseBody\":\"There was an error accessing to URL: http://localhost:9001/login\\n\\n\\u003chtml\\u003e\\u003cbody\\u003e\\u003ch1\\u003eWhitelabel Error Page\\u003c/h1\\u003e\\u003cp\\u003eThis application has no explicit mapping for /error, so you are seeing this as a fallback.\\u003c/p\\u003e\\u003cdiv id\\u003d\\u0027created\\u0027\\u003eThu Dec 21 10:53:08 CST 2023\\u003c/div\\u003e\\u003cdiv\\u003eThere was an unexpected error (type\\u003dInternal Server Error, status\\u003d500).\\u003c/div\\u003e\\u003c/body\\u003e\\u003c/html\\u003e\",\"selectedItem\":\"POST\",\"time\":{\"date\":{\"year\":2023.0,\"month\":12.0,\"day\":21.0},\"time\":{\"hour\":10.0,\"minute\":53.0,\"second\":9.0,\"nano\":3916200.0}}},{\"url\":\"http://localhost:9001/login\",\"header\":[{\"is_checked\":1,\"type\":\"Text\",\"value\":\"\"}],\"query\":[{\"is_checked\":1,\"type\":\"Text\",\"value\":\"\"}],\"rest\":[{\"is_checked\":1,\"type\":\"Text\",\"value\":\"\"}],\"requestBody\":\"{\\n \\\"phone\\\": \\\"18581585981\\\",\\n \\\"pwd\\\": \\\"\\\"\\n}\",\"responseBody\":\"There was an error accessing to URL: http://localhost:9001/login\\n\\n\\u003chtml\\u003e\\u003cbody\\u003e\\u003ch1\\u003eWhitelabel Error Page\\u003c/h1\\u003e\\u003cp\\u003eThis application has no explicit mapping for /error, so you are seeing this as a fallback.\\u003c/p\\u003e\\u003cdiv id\\u003d\\u0027created\\u0027\\u003eThu Dec 21 10:56:50 CST 2023\\u003c/div\\u003e\\u003cdiv\\u003eThere was an unexpected error (type\\u003dInternal Server Error, status\\u003d500).\\u003c/div\\u003e\\u003c/body\\u003e\\u003c/html\\u003e\",\"selectedItem\":\"POST\",\"time\":{\"date\":{\"year\":2023,\"month\":12,\"day\":21},\"time\":{\"hour\":10,\"minute\":56,\"second\":50,\"nano\":530977600}}}]}",
"RequestMappingsPanelOrder0": "0",
"RequestMappingsPanelOrder1": "1",
"RequestMappingsPanelWidth0": "75",
"RequestMappingsPanelWidth1": "75",
"RunOnceActivity.OpenProjectViewOnStart": "true",
"RunOnceActivity.ShowReadmeOnStart": "true",
"WebServerToolWindowFactoryState": "false",
"git-widget-placeholder": "master",
"jdk.selected.JAVA_MODULE": "1.8",
"last_opened_file_path": "F:/task/mqis/bwie-modules/bwie-mq/src/main/resources",
"last_opened_file_path": "F:/exam/zhou2-1/bwie-modules/bwie-product/src",
"node.js.detected.package.eslint": "true",
"node.js.detected.package.tslint": "true",
"node.js.selected.package.eslint": "(autodetect)",
"node.js.selected.package.tslint": "(autodetect)",
"nodejs_package_manager_path": "npm",
"project.structure.last.edited": "Project",
"project.structure.proportion": "0.0",
"project.structure.side.proportion": "0.0",
"settings.editor.selected.configurable": "project.propVCSSupport.DirectoryMappings",
"spring.configuration.checksum": "e4efe4188c98b300da52f5e1a650a8f9",
"vue.rearranger.settings.migration": "true"
}
}]]></component>
<component name="ReactorSettings">
<option name="notificationShown" value="true" />
</component>
<component name="RecentsManager">
<key name="CopyFile.RECENT_KEYS">
<recent name="F:\task\mqis\bwie-modules\bwie-mq\src\main\resources" />
<recent name="F:\task\mqis\bwie-modules\bwie-mq\src\main\java" />
<recent name="F:\task\mqis\bwie-modules\bwie-user\src\main\resources" />
<recent name="F:\task\mqis\bwie-modules\bwie-user\src\main\java" />
<recent name="F:\task\mqis\bwie-gateway\src\main\java" />
<key name="CreateClassDialog.RecentsKey">
<recent name="com.bwie.service" />
</key>
<key name="CopyFile.RECENT_KEYS">
<recent name="F:\exam\zhou2-1\bwie-modules\bwie-product\src" />
<recent name="F:\exam\zhou2-1\bwie-gateway\src\main" />
<recent name="F:\exam\zhou2-1\bwie-gateway\src\main\java\com\bwie" />
<recent name="F:\exam\zhou2-1\bwie-modules\bwie-user\src\main\resources" />
<recent name="F:\exam\zhou2-1\bwie-modules\bwie-user\src\main" />
</key>
</component>
<component name="RunDashboard">
<option name="configurationTypes">
<set>
<option value="SpringBootApplicationConfigurationType" />
</set>
</option>
</component>
<component name="RunManager" selected="Spring Boot.ProductApplication">
<configuration name="AuthApplication" type="SpringBootApplicationConfigurationType" factoryName="Spring Boot" temporary="true" nameIsGenerated="true">
<module name="bwie-auth" />
<option name="SPRING_BOOT_MAIN_CLASS" value="com.bwie.AuthApplication" />
<extension name="coverage">
<pattern>
<option name="PATTERN" value="com.bwie.*" />
<option name="ENABLED" value="true" />
</pattern>
</extension>
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
<configuration name="GatewayApplication" type="SpringBootApplicationConfigurationType" factoryName="Spring Boot" temporary="true" nameIsGenerated="true">
<module name="bwie-gateway" />
<option name="SPRING_BOOT_MAIN_CLASS" value="com.bwie.gateway.GatewayApplication" />
<extension name="coverage">
<pattern>
<option name="PATTERN" value="com.bwie.gateway.*" />
<option name="ENABLED" value="true" />
</pattern>
</extension>
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
<configuration name="ProductApplication" type="SpringBootApplicationConfigurationType" factoryName="Spring Boot" temporary="true" nameIsGenerated="true">
<module name="bwie-product" />
<option name="SPRING_BOOT_MAIN_CLASS" value="com.bwie.ProductApplication" />
<extension name="coverage">
<pattern>
<option name="PATTERN" value="com.bwie.*" />
<option name="ENABLED" value="true" />
</pattern>
</extension>
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
<configuration name="UserApplication" type="SpringBootApplicationConfigurationType" factoryName="Spring Boot" temporary="true" nameIsGenerated="true">
<module name="bwie-user" />
<option name="SPRING_BOOT_MAIN_CLASS" value="com.bwie.UserApplication" />
<extension name="coverage">
<pattern>
<option name="PATTERN" value="com.bwie.*" />
<option name="ENABLED" value="true" />
</pattern>
</extension>
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
<list>
<item itemvalue="Spring Boot.AuthApplication" />
<item itemvalue="Spring Boot.ProductApplication" />
<item itemvalue="Spring Boot.GatewayApplication" />
<item itemvalue="Spring Boot.UserApplication" />
</list>
<recent_temporary>
<list>
<item itemvalue="Spring Boot.UserApplication" />
<item itemvalue="Spring Boot.GatewayApplication" />
<item itemvalue="Spring Boot.ProductApplication" />
<item itemvalue="Spring Boot.AuthApplication" />
</list>
</recent_temporary>
</component>
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
<component name="SshConsoleOptionsProvider">
@ -74,6 +176,7 @@
<workItem from="1702861158235" duration="1921000" />
<workItem from="1702863474710" duration="1170000" />
<workItem from="1702865515208" duration="937000" />
<workItem from="1703126626644" duration="9188000" />
</task>
<task id="LOCAL-00001" summary="后台框架">
<option name="closed" value="true" />

View File

@ -19,6 +19,7 @@ spring:
discovery:
# 服务注册地址
server-addr: 124.223.114.120:8848
namespace: ea6d16de-21aa-4c9e-81af-0d5836cdc10c
config:
# 配置中心地址
server-addr: 124.223.114.120:8848
@ -27,4 +28,4 @@ spring:
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
namespace: ea6d16de-21aa-4c9e-81af-0d5836cdc10c

View File

@ -10,6 +10,7 @@ public class User {
private String code;
private String token;
private Integer userNum;
private String userPwd;
private String phone;

View File

@ -1,4 +1,4 @@
package com.bw.common.domain.request;
package com.bwie.common.domain.request;
import lombok.Data;
@ -9,16 +9,32 @@ import lombok.Data;
* @Date 2023/10/19 9:16
*/
@Data
public class Userlogin {
public class UserLogin {
private String phone;
private String code;
private String pwd;
public Userlogin(String phone, String code) {
public UserLogin(String phone, String pwd) {
this.phone = phone;
this.code = code;
this.pwd = pwd;
}
public Userlogin() {
public UserLogin() {
}
public String getPhone() {
return phone;
}
public void setPhone(String phone) {
this.phone = phone;
}
public String getPwd() {
return pwd;
}
public void setPwd(String pwd) {
this.pwd = pwd;
}
}

View File

@ -19,6 +19,7 @@ spring:
discovery:
# 服务注册地址
server-addr: 124.223.114.120:8848
namespace: ea6d16de-21aa-4c9e-81af-0d5836cdc10c
config:
# 配置中心地址
server-addr: 124.223.114.120:8848
@ -27,6 +28,7 @@ spring:
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
namespace: ea6d16de-21aa-4c9e-81af-0d5836cdc10c
fdfs:
so-timeout: 1500 # socket 连接时长
connect-timeout: 600 # 连接 tracker 服务器超时时长
@ -38,4 +40,4 @@ fdfs:
# 生成缩略图
thumb-image:
height: 500
width: 500
width: 500

View File

@ -13,6 +13,7 @@
<packaging>pom</packaging>
<modules>
<module>bwie-user</module>
<module>bwie-product</module>
</modules>
<properties>