Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
O
on-site-service
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
external
on-site-service
Commits
22fc7b3e
Commit
22fc7b3e
authored
Aug 03, 2022
by
lining
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: common/contact接口
parent
dbe2483e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
1 deletion
+13
-1
SysParamConstants.java
...om/onsiteservice/constant/constant/SysParamConstants.java
+3
-0
HomeCommonController.java
...rvice/miniapp/controller/common/HomeCommonController.java
+6
-0
HomeCommonService.java
...teservice/miniapp/service/category/HomeCommonService.java
+4
-1
No files found.
constant/src/main/java/com/onsiteservice/constant/constant/SysParamConstants.java
View file @
22fc7b3e
...
@@ -45,4 +45,7 @@ public class SysParamConstants {
...
@@ -45,4 +45,7 @@ public class SysParamConstants {
* 公众号名称
* 公众号名称
*/
*/
public
final
static
String
MP_NAME
=
"MP_NAME"
;
public
final
static
String
MP_NAME
=
"MP_NAME"
;
public
final
static
String
SERVICE_PHONE
=
"SERVICE_PHONE"
;
}
}
mini-app/src/main/java/com/onsiteservice/miniapp/controller/common/HomeCommonController.java
View file @
22fc7b3e
...
@@ -55,5 +55,11 @@ public class HomeCommonController {
...
@@ -55,5 +55,11 @@ public class HomeCommonController {
return
homeCommonService
.
mPInfo
();
return
homeCommonService
.
mPInfo
();
}
}
@ApiOperation
(
value
=
"联系方式"
)
@GetMapping
(
"contact"
)
public
Result
contact
()
{
return
homeCommonService
.
contact
();
}
}
}
mini-app/src/main/java/com/onsiteservice/miniapp/service/category/HomeCommonService.java
View file @
22fc7b3e
...
@@ -121,7 +121,10 @@ public class HomeCommonService {
...
@@ -121,7 +121,10 @@ public class HomeCommonService {
return
ResultGenerator
.
success
(
map
,
null
);
return
ResultGenerator
.
success
(
map
,
null
);
}
}
public
Result
contact
()
{
String
servicePhone
=
sysParamMapper
.
selectOne
(
SysParam
.
builder
().
code
(
SysParamConstants
.
SERVICE_PHONE
).
build
()).
getValue
();
return
ResultGenerator
.
success
(
servicePhone
,
null
);
}
}
}
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