4 changed files with 133 additions and 0 deletions
@ -0,0 +1,27 @@ |
|||
using BBWY.Common.Http; |
|||
using BBWY.Common.Models; |
|||
using BBWY.Server.Model; |
|||
using BBWY.Server.Model.Dto; |
|||
using Microsoft.Extensions.Options; |
|||
using Yitter.IdGenerator; |
|||
|
|||
namespace BBWY.Server.Business |
|||
{ |
|||
public class EvaluationAssistantBusiness : BasePlatformRelayBusiness, IDenpendency |
|||
{ |
|||
private IFreeSql fsql; |
|||
|
|||
private IIdGenerator idGenerator; |
|||
|
|||
public EvaluationAssistantBusiness(RestApiService restApiService, IOptions<GlobalConfig> options, YunDingBusiness yunDingBusiness, IFreeSql fsql, IIdGenerator idGenerator) : base(restApiService, options, yunDingBusiness) |
|||
{ |
|||
this.fsql = fsql; |
|||
this.idGenerator = idGenerator; |
|||
} |
|||
|
|||
public void AddOrEditGiftTemplate(AddOrEditGiftTemplateRequest request) |
|||
{ |
|||
|
|||
} |
|||
} |
|||
} |
@ -0,0 +1,30 @@ |
|||
using FreeSql.DataAnnotations; |
|||
using System; |
|||
|
|||
namespace BBWY.Server.Model.Db |
|||
{ |
|||
|
|||
[Table(Name = "gifttemplate", DisableSyncStructure = true)] |
|||
public partial class GiftTemplate { |
|||
|
|||
[Column(IsPrimary = true)] |
|||
public long Id { get; set; } |
|||
|
|||
[Column(DbType = "datetime")] |
|||
public DateTime? CreateTime { get; set; } |
|||
|
|||
public int GiftCount { get; set; } |
|||
|
|||
[Column(StringLength = 100)] |
|||
public string Name { get; set; } |
|||
|
|||
public Enums.Platform Platform { get; set; } |
|||
|
|||
public long ShopId { get; set; } |
|||
|
|||
[Column(StringLength = 50)] |
|||
public string Spu { get; set; } |
|||
|
|||
} |
|||
|
|||
} |
@ -0,0 +1,44 @@ |
|||
using FreeSql.DatabaseModel;using System; |
|||
using System.Collections; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Reflection; |
|||
using System.Threading.Tasks; |
|||
using Newtonsoft.Json; |
|||
using FreeSql.DataAnnotations; |
|||
|
|||
namespace BBWY.Server.Model.Db { |
|||
|
|||
[JsonObject(MemberSerialization.OptIn), Table(Name = "gifttemplatesku", DisableSyncStructure = true)] |
|||
public partial class Gifttemplatesku { |
|||
|
|||
[JsonProperty, Column(IsPrimary = true)] |
|||
public long Id { get; set; } |
|||
|
|||
[JsonProperty, Column(DbType = "datetime")] |
|||
public DateTime? CreateTime { get; set; } |
|||
|
|||
[JsonProperty] |
|||
public long? GiftTemplateId { get; set; } |
|||
|
|||
[JsonProperty, Column(DbType = "decimal(18,2)")] |
|||
public decimal? JdPrice { get; set; } |
|||
|
|||
[JsonProperty] |
|||
public string Logo { get; set; } |
|||
|
|||
[JsonProperty] |
|||
public long? ShopId { get; set; } |
|||
|
|||
[JsonProperty] |
|||
public string Sku { get; set; } |
|||
|
|||
[JsonProperty, Column(StringLength = 50)] |
|||
public string Spu { get; set; } |
|||
|
|||
[JsonProperty, Column(StringLength = 100)] |
|||
public string Title { get; set; } |
|||
|
|||
} |
|||
|
|||
} |
@ -0,0 +1,32 @@ |
|||
using System.Collections.Generic; |
|||
|
|||
namespace BBWY.Server.Model.Dto |
|||
{ |
|||
public class AddOrEditGiftTemplateRequest |
|||
{ |
|||
/// <summary>
|
|||
/// 如果Id=0 则视为新增
|
|||
/// </summary>
|
|||
public long Id { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 赠品模板名称
|
|||
/// </summary>
|
|||
public string GiftTemplateName { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 店铺
|
|||
/// </summary>
|
|||
public long ShopId { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 模板SPU
|
|||
/// </summary>
|
|||
public string GiftSpu { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 选中的赠品Sku
|
|||
/// </summary>
|
|||
public IList<string> GiftSkus { get; set; } |
|||
} |
|||
} |
Loading…
Reference in new issue