mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2026-03-10 00:13:40 +08:00
规范化小程序模块的部分代码
This commit is contained in:
@@ -4,9 +4,10 @@ import cn.binarywang.wx.miniapp.util.json.WxMaGsonBuilder;
|
||||
|
||||
/**
|
||||
* 微信二维码(小程序码)包装器
|
||||
* Created by Element on 2017/7/27.
|
||||
*
|
||||
* @author Element
|
||||
*/
|
||||
public abstract class WxMaQrcodeWrapper {
|
||||
public abstract class AbstractWxMaQrcodeWrapper {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
@@ -6,6 +6,7 @@ package cn.binarywang.wx.miniapp.bean;
|
||||
* 用于描述二维码(小程序码)颜色(RGB参数值),
|
||||
* 详情请查看文档 https://mp.weixin.qq.com/debug/wxadoc/dev/api/qrcode.html
|
||||
* </pre>
|
||||
* @author Element
|
||||
*/
|
||||
public class WxMaCodeLineColor {
|
||||
private String r = "0", g = "0", b = "0";
|
||||
|
||||
@@ -25,14 +25,14 @@ public class WxMaKefuMessage implements Serializable {
|
||||
/**
|
||||
* 获得文本消息builder
|
||||
*/
|
||||
public static TextBuilder TEXT() {
|
||||
public static TextBuilder newTextBuilder() {
|
||||
return new TextBuilder();
|
||||
}
|
||||
|
||||
/**
|
||||
* 获得图片消息builder
|
||||
*/
|
||||
public static ImageBuilder IMAGE() {
|
||||
public static ImageBuilder newImageBuilder() {
|
||||
return new ImageBuilder();
|
||||
}
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ import java.io.Serializable;
|
||||
/**
|
||||
* @author <a href="https://github.com/binarywang">Binary Wang</a>
|
||||
*/
|
||||
public class WxMaQrcode extends WxMaQrcodeWrapper implements Serializable {
|
||||
public class WxMaQrcode extends AbstractWxMaQrcodeWrapper implements Serializable {
|
||||
private static final long serialVersionUID = 5777119669111011584L;
|
||||
private String path;
|
||||
private int width = 430;
|
||||
|
||||
@@ -6,9 +6,11 @@ import com.google.gson.annotations.SerializedName;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* Created by Element on 2017/7/27.
|
||||
*
|
||||
* @author Element
|
||||
* @date 2017/7/27
|
||||
*/
|
||||
public class WxMaWxcode extends WxMaQrcodeWrapper implements Serializable {
|
||||
public class WxMaWxcode extends AbstractWxMaQrcodeWrapper implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1287399621649210322L;
|
||||
private String path;
|
||||
|
||||
@@ -6,9 +6,11 @@ import com.google.gson.annotations.SerializedName;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* Created by Element on 2017/7/27.
|
||||
*
|
||||
* @author Element
|
||||
* @date 2017/7/27
|
||||
*/
|
||||
public class WxMaWxcodeLimit extends WxMaQrcodeWrapper implements Serializable {
|
||||
public class WxMaWxcodeLimit extends AbstractWxMaQrcodeWrapper implements Serializable {
|
||||
private static final long serialVersionUID = 4782193774524960401L;
|
||||
private String scene;
|
||||
private String page;
|
||||
|
||||
Reference in New Issue
Block a user