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