Skip to content

Commit

Permalink
fix:修复审批回调事件中附件字段解析问题
Browse files Browse the repository at this point in the history
  • Loading branch information
NotFound403 committed Sep 23, 2024
1 parent e35d25d commit 6112c07
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@

import cn.felord.enumeration.NodeStatus;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamImplicit;
import lombok.Data;

import java.time.Instant;
import java.util.List;

/**
* The type Details.
Expand All @@ -37,7 +39,7 @@ public class Details {
private NodeStatus spStatus;
@XStreamAlias("SpTime")
private Instant spTime;
@XStreamAlias("Attach")
private String attach;
@XStreamImplicit(itemFieldName = "Attach")
private final List<String> attaches;
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/*
* Copyright (c) 2024. felord.cn
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* https://www.apache.org/licenses/LICENSE-2.0
* Website:
* https://felord.cn
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package cn.felord.enumeration;

/**
* @author dax
* @since 2024/9/19
*/
public enum CallbackReplyMsgType {
TEXT("text"),
IMAGE("image"),
VOICE("voice"),
VIDEO("video"),
LOCATION("location"),
LINK("link");

private final String msgType;

CallbackReplyMsgType(String msgType) {
this.msgType = msgType;
}

public String value() {
return msgType;
}
}

0 comments on commit 6112c07

Please sign in to comment.