Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
S
shop-Mall
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
licc
shop-Mall
Commits
c07bae07
Commit
c07bae07
authored
Mar 04, 2021
by
licc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
部署
parent
34ad5d18
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
41 additions
and
121 deletions
+41
-121
FileUploadConfig.java
...ava/cn/wisenergy/common/config/file/FileUploadConfig.java
+29
-0
AccountMapper.java
...pper/src/main/java/cn/wisenergy/mapper/AccountMapper.java
+1
-0
User.java
...ergy-model/src/main/java/cn/wisenergy/model/app/User.java
+0
-110
MvcConfiguration.java
...c/main/java/cn/wisenergy/web/config/MvcConfiguration.java
+1
-1
application-dev.yml
wisenergy-web-admin/src/main/resources/application-dev.yml
+5
-5
application-test.yml
wisenergy-web-admin/src/main/resources/application-test.yml
+5
-5
No files found.
wisenergy-common/src/main/java/cn/wisenergy/common/config/file/FileUploadConfig.java
0 → 100644
View file @
c07bae07
package
cn
.
wisenergy
.
common
.
config
.
file
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.web.multipart.MultipartResolver
;
import
org.springframework.web.multipart.commons.CommonsMultipartResolver
;
/**
* 文件上传配置
* @author wyy
* @date 2019-08-22 19:20
*/
@Configuration
public
class
FileUploadConfig
{
/**
* 重新定义文件上传对象【springBoot request转化成MultipartHttpServletRequest】
* @return
*/
// @Bean(name = "multipartResolver")
// public MultipartResolver multipartResolver() {
// CommonsMultipartResolver resolver = new CommonsMultipartResolver();
// resolver.setDefaultEncoding("UTF-8");
// resolver.setResolveLazily(true);
// resolver.setMaxInMemorySize(40960);
// resolver.setMaxUploadSize(512 * 1024 * 1024);
// return resolver;
// }
}
wisenergy-mapper/src/main/java/cn/wisenergy/mapper/AccountMapper.java
View file @
c07bae07
package
cn
.
wisenergy
.
mapper
;
import
cn.wisenergy.model.app.AccountInfo
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.apache.ibatis.annotations.Param
;
...
...
wisenergy-model/src/main/java/cn/wisenergy/model/app/User.java
View file @
c07bae07
package
cn
.
wisenergy
.
model
.
app
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.extension.activerecord.Model
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
...
...
@@ -20,7 +17,6 @@ import java.util.Date;
*/
@Data
@ApiModel
(
value
=
"User"
)
@TableName
(
"user_info"
)
public
class
User
extends
Model
<
User
>
implements
Serializable
{
private
static
final
long
serialVersionUID
=
2525339404301884673L
;
...
...
@@ -28,21 +24,18 @@ public class User extends Model<User> implements Serializable{
* 主键id
*/
@ApiModelProperty
(
name
=
"id"
,
value
=
"用户主键id"
)
@TableId
(
"id"
)
private
Integer
id
;
/**
* 手机号作为用户账号
*/
@ApiModelProperty
(
name
=
"user_id"
,
value
=
"用户主键id"
)
@TableField
(
"user_id"
)
private
String
userId
;
/**
* 密码
*/
@ApiModelProperty
(
name
=
"password"
,
value
=
"用户密码"
)
@TableField
(
"password"
)
private
String
password
;
...
...
@@ -50,49 +43,42 @@ public class User extends Model<User> implements Serializable{
* 用户会员等级
*/
@ApiModelProperty
(
name
=
"user_level"
,
value
=
"用户会员等级"
)
@TableField
(
"user_level"
)
private
int
userLevel
;
/**
* 跨境额度
*/
@ApiModelProperty
(
name
=
"cross_border_line"
,
value
=
"跨境额度"
)
@TableField
(
"cross_border_line"
)
private
BigDecimal
crossBorderLine
;
/**
* 身份证号码
*/
@ApiModelProperty
(
name
=
"id_card_number"
,
value
=
"身份证号码"
)
@TableField
(
"id_card_number"
)
private
String
idCardNumber
;
/**
* 粉丝昵称
*/
@ApiModelProperty
(
name
=
"fans_nickname"
,
value
=
"粉丝昵称"
)
@TableField
(
"fans_nickname"
)
private
String
fansNickname
;
/**
* 有赞粉丝id,有赞自动生成
*/
@ApiModelProperty
(
name
=
"fans_id"
,
value
=
"有赞粉丝id,有赞自动生成"
)
@TableField
(
"fans_id"
)
private
String
fansId
;
/**
* 用户本人邀请码
*/
@ApiModelProperty
(
name
=
"invite_code"
,
value
=
"用户本人邀请码"
)
@TableField
(
"invite_code"
)
private
String
inviteCode
;
/**
* 推荐人邀请码
*/
@ApiModelProperty
(
name
=
"be_invited_code"
,
value
=
"推荐人邀请码"
)
@TableField
(
"be_invited_code"
)
private
String
beInvitedCode
;
/**
...
...
@@ -105,100 +91,4 @@ public class User extends Model<User> implements Serializable{
*/
@ApiModelProperty
(
name
=
"updateTime"
,
value
=
"修改时间"
)
private
Date
updateTime
;
public
Integer
getId
()
{
return
id
;
}
public
void
setId
(
Integer
id
)
{
this
.
id
=
id
;
}
public
String
getUserId
()
{
return
userId
;
}
public
void
setUserId
(
String
userId
)
{
this
.
userId
=
userId
;
}
public
String
getPassword
()
{
return
password
;
}
public
void
setPassword
(
String
password
)
{
this
.
password
=
password
;
}
public
int
getUserLevel
()
{
return
userLevel
;
}
public
void
setUserLevel
(
int
userLevel
)
{
this
.
userLevel
=
userLevel
;
}
public
BigDecimal
getCrossBorderLine
()
{
return
crossBorderLine
;
}
public
void
setCrossBorderLine
(
BigDecimal
crossBorderLine
)
{
this
.
crossBorderLine
=
crossBorderLine
;
}
public
String
getIdCardNumber
()
{
return
idCardNumber
;
}
public
void
setIdCardNumber
(
String
idCardNumber
)
{
this
.
idCardNumber
=
idCardNumber
;
}
public
String
getFansNickname
()
{
return
fansNickname
;
}
public
void
setFansNickname
(
String
fansNickname
)
{
this
.
fansNickname
=
fansNickname
;
}
public
String
getFansId
()
{
return
fansId
;
}
public
void
setFansId
(
String
fansId
)
{
this
.
fansId
=
fansId
;
}
public
String
getInviteCode
()
{
return
inviteCode
;
}
public
void
setInviteCode
(
String
inviteCode
)
{
this
.
inviteCode
=
inviteCode
;
}
public
String
getBeInvitedCode
()
{
return
beInvitedCode
;
}
public
void
setBeInvitedCode
(
String
beInvitedCode
)
{
this
.
beInvitedCode
=
beInvitedCode
;
}
public
Date
getCreateTime
()
{
return
createTime
;
}
public
void
setCreateTime
(
Date
createTime
)
{
this
.
createTime
=
createTime
;
}
public
Date
getUpdateTime
()
{
return
updateTime
;
}
public
void
setUpdateTime
(
Date
updateTime
)
{
this
.
updateTime
=
updateTime
;
}
}
wisenergy-web-admin/src/main/java/cn/wisenergy/web/config/MvcConfiguration.java
View file @
c07bae07
...
...
@@ -51,7 +51,7 @@ public class MvcConfiguration extends WebMvcConfigurationSupport {
@Override
public
void
addCorsMappings
(
CorsRegistry
registry
)
{
registry
.
addMapping
(
"/**"
)
.
allowedOrigins
(
"*"
)
.
allowedOrigin
Pattern
s
(
"*"
)
.
allowedHeaders
(
"*"
)
.
allowedMethods
(
"*"
)
.
allowCredentials
(
true
)
...
...
wisenergy-web-admin/src/main/resources/application-dev.yml
View file @
c07bae07
...
...
@@ -3,9 +3,9 @@ spring:
type
:
com.alibaba.druid.pool.DruidDataSource
druid
:
driver-class-name
:
com.mysql.cj.jdbc.Driver
url
:
jdbc:mysql://
192.168.110.164:3306/shop_app
?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&serverTimezone=GMT%2B8
username
:
root
password
:
adm4HYservice$
url
:
jdbc:mysql://
39.97.107.31:3306/qunzhihe
?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&serverTimezone=GMT%2B8
username
:
qunzhihe
password
:
j2kRn8HjrPez7trw
initial-size
:
10
max-active
:
100
min-idle
:
10
...
...
@@ -46,9 +46,9 @@ spring:
# 192.168.110.165 adm4HYservice$
redis
:
database
:
0
host
:
127.0.0.
1
host
:
39.97.107.3
1
port
:
6379
password
:
1
23456
# 密码(默认为空)
password
:
1
qaz@WSX
# 密码(默认为空)
timeout
:
6000ms
# 连接超时时长(毫秒)
jedis
:
pool
:
...
...
wisenergy-web-admin/src/main/resources/application-test.yml
View file @
c07bae07
...
...
@@ -3,9 +3,9 @@ spring:
type
:
com.alibaba.druid.pool.DruidDataSource
druid
:
driver-class-name
:
com.mysql.cj.jdbc.Driver
url
:
jdbc:mysql://
localhost:3306/dydb
?useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2B8
username
:
root
password
:
root
url
:
jdbc:mysql://
39.97.107.31:3306/qunzhihe
?useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2B8
username
:
qunzhihe
password
:
j2kRn8HjrPez7trw
initial-size
:
10
max-active
:
100
min-idle
:
10
...
...
@@ -35,9 +35,9 @@ spring:
redis
:
open
:
false
# 是否开启redis缓存 true开启 false关闭
database
:
0
host
:
localhost
host
:
39.97.107.31
port
:
6379
password
:
# 密码(默认为空)
password
:
1qaz@WSX
# 密码(默认为空)
timeout
:
6000ms
# 连接超时时长(毫秒)
jedis
:
pool
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment