50 lines
1.2 KiB
C#
50 lines
1.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace PictureFilesApi.Models.RequestModel
|
|
{
|
|
/// <summary>
|
|
/// 上传带水印的图片参数
|
|
/// </summary>
|
|
public class AddOrUpdateUploadGraphReq
|
|
{
|
|
/// <summary>
|
|
/// 项目名称
|
|
/// </summary>
|
|
public string project { get; set; }
|
|
|
|
/// <summary>
|
|
/// 水印内容
|
|
/// </summary>
|
|
public string watermark { get; set; }
|
|
|
|
/// <summary>
|
|
/// 颜色
|
|
/// </summary>
|
|
public string color { get; set; }
|
|
|
|
/// <summary>
|
|
/// 是否包含图片名称
|
|
/// </summary>
|
|
public int? haveFileName { get; set; }
|
|
|
|
/// <summary>
|
|
/// 是否包含时间
|
|
/// </summary>
|
|
public int? haveDateTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// 初始化
|
|
/// </summary>
|
|
public void init()
|
|
{
|
|
if (string.IsNullOrEmpty(project)) project = "Common";
|
|
if (string.IsNullOrEmpty(watermark)) watermark = "";
|
|
if (haveFileName == null) haveFileName = 1;
|
|
if (haveDateTime == null) haveDateTime = 1;
|
|
}
|
|
}
|
|
}
|