mirror of
https://gitee.com/likeadmin/likeadmin_java.git
synced 2026-06-20 17:16:09 +08:00
调整支付名称
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package com.mdd.common.entity.setting;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
@@ -21,6 +22,10 @@ public class DevPayConfig implements Serializable {
|
||||
@ApiModelProperty("模版名称")
|
||||
private String name;
|
||||
|
||||
@TableField(exist = false)
|
||||
@ApiModelProperty("显示名称")
|
||||
private String showName;
|
||||
|
||||
@ApiModelProperty("渠道图标")
|
||||
private String icon;
|
||||
|
||||
|
||||
@@ -49,13 +49,16 @@ public enum PaymentEnum {
|
||||
* @param code 类型
|
||||
* @return String
|
||||
*/
|
||||
public static String getMsgByCode(Integer code){
|
||||
for(PaymentEnum enumItem: PaymentEnum.values()) {
|
||||
if (enumItem.getCode() == code) {
|
||||
return enumItem.getMsg();
|
||||
}
|
||||
public static String getPayWayMsg(Integer code){
|
||||
switch (code) {
|
||||
case 1:
|
||||
return "余额支付";
|
||||
case 2:
|
||||
return "微信支付";
|
||||
case 3:
|
||||
return "支付宝支付";
|
||||
}
|
||||
return null;
|
||||
return "未知";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user