Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_ht
Overview
Overview
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
pseer
gxpt_ht
Commits
20128729
Commit
20128729
authored
Nov 28, 2023
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更改get值
parent
1a48efa0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
1 deletions
+47
-1
VoiceEnum.java
share-common/src/main/java/share/common/enums/VoiceEnum.java
+46
-0
ProtocolController.java
.../java/share/web/controller/system/ProtocolController.java
+1
-1
No files found.
share-common/src/main/java/share/common/enums/VoiceEnum.java
0 → 100644
View file @
20128729
package
share
.
common
.
enums
;
public
enum
VoiceEnum
{
//开门欢迎,续费提醒1,续费提醒2,续费成功提醒,送客
OPEN
(
1
,
"开门欢迎"
,
",您的好运时刻已开启,弘扬国粹文化,牌不落地,永不放弃,祝您玩的开心,找客服关注凑角微信小程序"
),
RENEWAL_REMINDER1
(
2
,
"续费提醒1"
,
"您的房间使用时间还剩15分钟,继续使用,请在小程序进行续单,或联系客服。"
),
RENEWAL_REMINDER2
(
3
,
"续费提醒2"
,
"您的房间使用时间还剩5分钟,系统届时会自动断电,提前拿好随身物品;继续使用,请在小程序进行续单,或联系客服"
),
RENEWAL_SUCCESS
(
4
,
"续费成功提醒"
,
"您的房间已成功续订,祝您玩的开心,找客服关注凑角微信小程序"
),
SEND_CUSTOMER
(
5
,
"送客"
,
",您的满意是我们最大的动力,联系客服,送您小惊喜,期待下一次的相遇"
);
private
Integer
code
;
private
String
name
;
private
String
value
;
VoiceEnum
()
{
}
VoiceEnum
(
Integer
code
,
String
name
,
String
value
)
{
this
.
code
=
code
;
this
.
name
=
name
;
this
.
value
=
value
;
}
public
Integer
getCode
()
{
return
code
;
}
public
void
setCode
(
Integer
code
)
{
this
.
code
=
code
;
}
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
String
getValue
(
String
name
)
{
return
name
+
value
;
}
public
void
setValue
(
String
value
)
{
this
.
value
=
value
;
}
}
share-front/src/main/java/share/web/controller/system/ProtocolController.java
View file @
20128729
...
@@ -38,7 +38,7 @@ public class ProtocolController extends BaseController
...
@@ -38,7 +38,7 @@ public class ProtocolController extends BaseController
*/
*/
@ApiOperation
(
value
=
"通过key获取协议内容"
)
@ApiOperation
(
value
=
"通过key获取协议内容"
)
@GetMapping
(
value
=
"/{key}"
)
@GetMapping
(
value
=
"/{key}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"
id
"
)
String
key
)
public
AjaxResult
getInfo
(
@PathVariable
(
"
key
"
)
String
key
)
{
{
return
success
(
protocolService
.
selectProtocolByKey
(
key
));
return
success
(
protocolService
.
selectProtocolByKey
(
key
));
}
}
...
...
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