Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
ioc_sixiang_license
Project
Project
Details
Activity
Releases
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
zengtianlai3
ioc_sixiang_license
Commits
a482b39a
Commit
a482b39a
authored
Jun 08, 2022
by
zengtianlai3
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'm33' into 'master'
整合 See merge request
!6
parents
0ab6c99d
695e4141
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
56 additions
and
5 deletions
+56
-5
pom.xml
license/pom.xml
+7
-0
LicenseApplication.java
...src/main/java/iot/sixiang/license/LicenseApplication.java
+2
-0
AuthManager.java
...e/src/main/java/iot/sixiang/license/auth/AuthManager.java
+5
-5
ResResult.java
...se/src/main/java/iot/sixiang/license/model/ResResult.java
+42
-0
No files found.
license/pom.xml
View file @
a482b39a
...
@@ -39,6 +39,13 @@
...
@@ -39,6 +39,13 @@
<artifactId>
lombok
</artifactId>
<artifactId>
lombok
</artifactId>
<version>
1.16.10
</version>
<version>
1.16.10
</version>
</dependency>
</dependency>
<dependency>
<groupId>
com.auth0
</groupId>
<artifactId>
java-jwt
</artifactId>
<version>
3.8.2
</version>
</dependency>
<!--mysql-->
<!--mysql-->
<dependency>
<dependency>
<groupId>
mysql
</groupId>
<groupId>
mysql
</groupId>
...
...
license/src/main/java/iot/sixiang/license/LicenseApplication.java
View file @
a482b39a
...
@@ -3,8 +3,10 @@ package iot.sixiang.license;
...
@@ -3,8 +3,10 @@ package iot.sixiang.license;
import
org.mybatis.spring.annotation.MapperScan
;
import
org.mybatis.spring.annotation.MapperScan
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.web.servlet.ServletComponentScan
;
@ServletComponentScan
(
basePackages
=
"iot.sixiang.license"
)
@SpringBootApplication
@SpringBootApplication
@MapperScan
(
basePackages
=
"iot.sixiang.license.mapper"
)
@MapperScan
(
basePackages
=
"iot.sixiang.license.mapper"
)
public
class
LicenseApplication
{
public
class
LicenseApplication
{
...
...
license/src/main/java/iot/sixiang/license/auth/AuthManager.java
View file @
a482b39a
...
@@ -36,11 +36,11 @@ public class AuthManager {
...
@@ -36,11 +36,11 @@ public class AuthManager {
}
}
private
void
initUsers
()
{
private
void
initUsers
()
{
List
<
User
>
users
=
userService
.
getUserList
(
0
,
20
);
//
List<User> users = userService.getUserList(0, 20);
for
(
User
user
:
users
)
{
//
for (User user : users) {
String
userId
=
user
.
getUserId
();
//
String userId = user.getUserId();
allUsers
.
put
(
userId
,
user
);
//
allUsers.put(userId, user);
}
//
}
}
}
private
void
initLicense
()
{
private
void
initLicense
()
{
...
...
license/src/main/java/iot/sixiang/license/model/ResResult.java
0 → 100644
View file @
a482b39a
package
iot
.
sixiang
.
license
.
model
;
import
lombok.Data
;
/**
* Title: ResResult
* Description: TODO
*
* @author m33
* @version V1.0
* @date 2022-06-08
*/
@Data
public
class
ResResult
{
private
int
code
;
private
String
msg
;
private
Object
record
;
public
static
ResResult
success
()
{
ResResult
respResult
=
new
ResResult
();
respResult
.
setCode
(
200
);
respResult
.
setMsg
(
"success"
);
return
respResult
;
}
public
static
ResResult
fail
()
{
ResResult
respResult
=
new
ResResult
();
respResult
.
setCode
(
400
);
respResult
.
setMsg
(
"fail"
);
return
respResult
;
}
public
ResResult
msg
(
String
message
)
{
this
.
msg
=
message
;
return
this
;
}
public
ResResult
record
(
Object
data
){
this
.
record
=
data
;
return
this
;
}
}
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