REQ-2752: 添加api url字段
This commit is contained in:
parent
33c79d87d0
commit
6f0302d11f
@ -1,5 +1,6 @@
|
||||
package cn.axzo.msg.center.domain.entity;
|
||||
|
||||
import cn.axzo.msg.center.domain.utils.IgnorePropsJsonTypeHandler;
|
||||
import cn.axzo.msg.center.service.domain.UrlConfig;
|
||||
import cn.axzo.msg.center.service.enums.PresetButtonType;
|
||||
import cn.axzo.msg.center.service.enums.RouterButtonSourceEnum;
|
||||
@ -44,10 +45,15 @@ public class MessageTemplateButtonV3 extends BaseEntityWithOperator<MessageTempl
|
||||
*/
|
||||
private RouterCategoryEnum category;
|
||||
|
||||
/**
|
||||
* API地址,仅当按钮是接口调用类型时有值
|
||||
*/
|
||||
private String apiUrl;
|
||||
|
||||
/**
|
||||
* 按钮链接配置
|
||||
*/
|
||||
@TableField(typeHandler = FastjsonTypeHandler.class)
|
||||
@TableField(typeHandler = IgnorePropsJsonTypeHandler.class)
|
||||
private UrlConfig urlConfig;
|
||||
|
||||
/**
|
||||
@ -71,4 +77,18 @@ public class MessageTemplateButtonV3 extends BaseEntityWithOperator<MessageTempl
|
||||
*/
|
||||
private Integer priority;
|
||||
|
||||
@TableField(typeHandler = FastjsonTypeHandler.class)
|
||||
private RecordExt recordExt;
|
||||
|
||||
public RecordExt getOrCreateRecordExt() {
|
||||
if (recordExt == null) recordExt = new RecordExt();
|
||||
return recordExt;
|
||||
}
|
||||
|
||||
@Setter
|
||||
@Getter
|
||||
public static class RecordExt {
|
||||
private String btnCode;
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user