package com.ruoyi.novel.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("novel_ad_config")
public class AdPlatformConfig {
    @TableId
    private String platformCode;

    private String platformName;
    private String apiUrl;
    private String authToken;
    private String paramsTemplate;

    // 添加带参数的构造方法
    public AdPlatformConfig(String code, String name, String url, String token, String params) {
        this.platformCode = code;
        this.platformName = name;
        this.apiUrl = url;
        this.authToken = token;
        this.paramsTemplate = params;
    }
}