REQ-2303: 处理流程自定义按钮
This commit is contained in:
parent
07a1610ed1
commit
44230891aa
@ -11,7 +11,7 @@ import lombok.Getter;
|
||||
*/
|
||||
@Getter
|
||||
@AllArgsConstructor(access = AccessLevel.PRIVATE)
|
||||
public enum RouterButtonSourceEnum {
|
||||
public enum RouterButtonSourceEnum implements CodeDefinition<String> {
|
||||
|
||||
/**
|
||||
* 系统
|
||||
@ -21,4 +21,9 @@ public enum RouterButtonSourceEnum {
|
||||
* 自定义
|
||||
*/
|
||||
CUSTOM;
|
||||
|
||||
@Override
|
||||
public String getCode() {
|
||||
return name();
|
||||
}
|
||||
}
|
||||
|
||||
@ -38,7 +38,7 @@ import java.util.List;
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class PendingMessageResponse implements Serializable {
|
||||
public class PendingMessageResponse implements Serializable, TodoButtonProvider {
|
||||
|
||||
private static final long serialVersionUID = -4133864010679470398L;
|
||||
|
||||
|
||||
@ -0,0 +1,17 @@
|
||||
package cn.axzo.msg.center.service.pending.response;
|
||||
|
||||
import cn.axzo.msg.center.api.custombutton.ProposedButton;
|
||||
import cn.axzo.msg.center.service.dto.ButtonRouterDTO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author yanglin
|
||||
*/
|
||||
public interface TodoButtonProvider {
|
||||
|
||||
List<ButtonRouterDTO> getButtonRouters();
|
||||
|
||||
List<ProposedButton> getProposedButtons();
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user