package com.storlead.centre.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.storlead.framework.mybatis.entity.SysBaseField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 应用信息表
 * </p>
 *
 * @author chenkq
 * @since 2025-11-18
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("sys_app_info")
@ApiModel(value="SysAppInfoEntity对象", description="应用信息表")
public class SysAppInfoEntity extends SysBaseField {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "应用名称")
    @TableField("app_name")
    private String appName;

    @ApiModelProperty(value = "应用标识（唯一）")
    @TableField("app_code")
    private String appCode;

    @ApiModelProperty(value = "应用密钥")
    @TableField("app_secret")
    private String appSecret;

    @ApiModelProperty(value = "回调地址（OAuth2）")
    @TableField("redirect_uri")
    private String redirectUri;

    @ApiModelProperty(value = "应用主页（入口）")
    @TableField("homepage_url")
    private String homepageUrl;

    @ApiModelProperty(value = "应用描述")
    @TableField("description")
    private String description;

}
