Req-3117 修复接口转化错误
This commit is contained in:
parent
d8bd86d3a4
commit
23dd135b2d
@ -3,22 +3,23 @@ package cn.axzo.riven.client.model;
|
||||
import cn.axzo.riven.client.common.enums.DingTalkMsgTypeEnum;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author zhongpeng
|
||||
* @since 2024-11-14 14:01
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class SampleActionCard6 implements ReplyMessage<SampleActionCard6> {
|
||||
private final String title;
|
||||
private final String text;
|
||||
String title;
|
||||
String text;
|
||||
|
||||
private final String buttonTitle1;
|
||||
private final String buttonUrl1;
|
||||
private final String buttonTitle2;
|
||||
private final String buttonUrl2;
|
||||
String buttonTitle1;
|
||||
String buttonUrl1;
|
||||
String buttonTitle2;
|
||||
String buttonUrl2;
|
||||
|
||||
@Override
|
||||
public DingTalkMsgTypeEnum msgType() {
|
||||
@ -30,7 +31,7 @@ public class SampleActionCard6 implements ReplyMessage<SampleActionCard6> {
|
||||
return this;
|
||||
}
|
||||
|
||||
public static SampleActionCard6 from(String title, String text,String buttonTitle1, String buttonUrl1, String buttonTitle2, String buttonUrl2) {
|
||||
public static SampleActionCard6 from(String title, String text, String buttonTitle1, String buttonUrl1, String buttonTitle2, String buttonUrl2) {
|
||||
return new SampleActionCard6(title, text, buttonTitle1, buttonUrl1, buttonTitle2, buttonUrl2);
|
||||
}
|
||||
}
|
||||
|
||||
@ -2,7 +2,9 @@ package cn.axzo.riven.client.model;
|
||||
|
||||
import cn.axzo.riven.client.common.enums.DingTalkMsgTypeEnum;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* 简单的 MD 内容
|
||||
@ -11,10 +13,11 @@ import lombok.Data;
|
||||
* @since 2024-10-24 14:01
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class SampleMarkdown implements ReplyMessage<SampleMarkdown> {
|
||||
private final String title;
|
||||
private final String text;
|
||||
private String title;
|
||||
private String text;
|
||||
|
||||
@Override
|
||||
public DingTalkMsgTypeEnum msgType() {
|
||||
|
||||
@ -4,6 +4,7 @@ import cn.axzo.riven.client.common.enums.DingTalkMsgTypeEnum;
|
||||
import com.google.common.base.Strings;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.slf4j.MDC;
|
||||
|
||||
import java.util.UUID;
|
||||
@ -18,6 +19,7 @@ import static com.google.common.net.HttpHeaders.X_REQUEST_ID;
|
||||
* @since 2024-10-24 17:14
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class SampleMessageQueue implements ReplyMessage<SampleMessageQueue> {
|
||||
private String applicationName;
|
||||
|
||||
@ -13,7 +13,7 @@ import lombok.Data;
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
public class SampleText implements ReplyMessage<SampleText> {
|
||||
private final String content;
|
||||
private String content;
|
||||
|
||||
@Override
|
||||
public DingTalkMsgTypeEnum msgType() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user