package com.sckw.system.model.vo.res;

import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.sckw.core.utils.LongToStringUtils;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * 系统内容配置返回对象
 * @author chenxiaofei
 * @date 2026-01-07
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "系统内容配置返回对象")
public class SysArticlesResVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 雪花ID
     */
    @Schema(description = "雪花ID", example = "1234567890123456789")
    private Long id;

    /**
     * 条款唯一标识 (如: REG_AGREEMENT, PRIVACY_POLICY)
     */
    @Schema(description = "条款唯一标识，例如: REG_AGREEMENT、PRIVACY_POLICY", example = "REG_AGREEMENT")
    private String articleKey;

    /**
     * 条款标题
     */
    @Schema(description = "条款标题", example = "用户注册协议")
    private String title;

    /**
     * 条款详细内容 (富文本/HTML)
     */
    @Schema(description = "条款详细内容，富文本或HTML格式")
    private String content;

    /**
     * 版本号
     */
    @Schema(description = "版本号", example = "v1.0")
    private String version;

    /**
     * 更新时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Schema(description = "更新时间，格式：yyyy-MM-dd HH:mm:ss", example = "2026-01-07 12:34:56")
    private Date updatedAt;

}

