package com.yuchen.saas.manage.user.api.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.nest.springwrap.core.mp.base.BaseEntity;


@Data
@TableName("saas_wechat_user")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "用户-微信平台 openid", description = "用户-微信平台 openid")
public class SaasWechatUser extends BaseEntity {

	private static final long serialVersionUID = 1L;


	@ApiModelProperty(value = "用户id")
	@JsonSerialize(
			using = ToStringSerializer.class
	)
	private Long userId;

	@ApiModelProperty(value = "appid")
	private String appid;

	@ApiModelProperty(value = "openid")
	private String openid;

	@ApiModelProperty(value = "微信昵称")
	private String wechatName;

	@ApiModelProperty(value = "微信头像")
	private String wechatPic;


}
