Commit 20128729 by 吕明尚

更改get值

parent 1a48efa0
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;
}
}
......@@ -38,7 +38,7 @@ public class ProtocolController extends BaseController
*/
@ApiOperation(value = "通过key获取协议内容")
@GetMapping(value = "/{key}")
public AjaxResult getInfo(@PathVariable("id") String key)
public AjaxResult getInfo(@PathVariable("key") String key)
{
return success(protocolService.selectProtocolByKey(key));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment