欢迎语模板api升级

1 parent 5bf3e600
...@@ -46,7 +46,6 @@ public class WeMsgTlpController extends BaseController ...@@ -46,7 +46,6 @@ public class WeMsgTlpController extends BaseController
} }
/** /**
* 新增欢迎语模板 * 新增欢迎语模板
*/ */
...@@ -61,13 +60,6 @@ public class WeMsgTlpController extends BaseController ...@@ -61,13 +60,6 @@ public class WeMsgTlpController extends BaseController
} }
@PutMapping
public AjaxResult add(@RequestBody WeMsgTlp weMsgTlp){
weMsgTlpService.save(weMsgTlp);
return AjaxResult.success();
}
/** /**
* 删除欢迎语模板 * 删除欢迎语模板
*/ */
......
...@@ -19,7 +19,7 @@ import java.util.List; ...@@ -19,7 +19,7 @@ import java.util.List;
* @date 2020-10-04 * @date 2020-10-04
*/ */
@Data @Data
@TableName(value = "we_msg_tlp",autoResultMap = true) @TableName("we_msg_tlp")
public class WeMsgTlp extends BaseEntity public class WeMsgTlp extends BaseEntity
{ {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
...@@ -38,13 +38,13 @@ public class WeMsgTlp extends BaseEntity ...@@ -38,13 +38,13 @@ public class WeMsgTlp extends BaseEntity
/**图文*/ /**图文*/
@TableField(typeHandler = GenericTypeHandler.class) @TableField(typeHandler = GenericTypeHandler.class)
private List<ImageText> imageText; private ImageText imageText;
/**小程序*/ /**小程序*/
@TableField(typeHandler = GenericTypeHandler.class) @TableField(typeHandler = GenericTypeHandler.class)
private List<Applet> applet; private Applet applet;
/** 0:正常;1:删除; */ /** 0:正常;1:删除; */
......
...@@ -2,7 +2,6 @@ package com.linkwechat.wecom.handler; ...@@ -2,7 +2,6 @@ package com.linkwechat.wecom.handler;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.linkwechat.wecom.domain.WeMoments;
import com.linkwechat.wecom.domain.WeMsgTlp; import com.linkwechat.wecom.domain.WeMsgTlp;
import com.linkwechat.wecom.domain.dto.message.CustomerMessagePushDto; import com.linkwechat.wecom.domain.dto.message.CustomerMessagePushDto;
import org.apache.ibatis.type.BaseTypeHandler; import org.apache.ibatis.type.BaseTypeHandler;
...@@ -20,8 +19,7 @@ import java.sql.SQLException; ...@@ -20,8 +19,7 @@ import java.sql.SQLException;
* @param <T> * @param <T>
*/ */
@SuppressWarnings("all") @SuppressWarnings("all")
@MappedTypes(value = {JSONObject.class, CustomerMessagePushDto.class, WeMsgTlp.Applet.class,WeMsgTlp.ImageText.class, @MappedTypes(value = {JSONObject.class, CustomerMessagePushDto.class, WeMsgTlp.Applet.class,WeMsgTlp.ImageText.class})
WeMoments.OtherContent.class})
@MappedJdbcTypes(value = {JdbcType.VARCHAR}, includeNullJdbcType = true) @MappedJdbcTypes(value = {JdbcType.VARCHAR}, includeNullJdbcType = true)
public class GenericTypeHandler<T extends Object> extends BaseTypeHandler<T> { public class GenericTypeHandler<T extends Object> extends BaseTypeHandler<T> {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!