package com.fs.newAdv.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 广告微信小程序配置
 * </p>
 *
 * @author zhangqin
 * @since 2025-12-19
 */
@Getter
@Setter
@TableName("adv_mini_config")
@ApiModel(value = "AdvMiniConfig对象", description = "广告微信小程序配置")
public class AdvMiniConfig extends Model<AdvMiniConfig> {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private Integer id;

    @TableField("app_id")
    private String appId;

    @TableField("app_secret")
    private String appSecret;

    @TableField("access_token")
    private String accessToken;

    @ApiModelProperty("小程序状态1启用 0停用")
    @TableField("status")
    private Integer status;

    @ApiModelProperty("过期时间")
    @TableField("expires_in")
    private LocalDateTime expiresIn;

    @TableField("create_time")
    private LocalDateTime createTime;

    @Override
    public Serializable pkVal() {
        return this.id;
    }
}
