6 changed files with 155 additions and 8 deletions
@ -0,0 +1,29 @@ |
|||||
|
using FreeSql.DataAnnotations; |
||||
|
|
||||
|
namespace BBWY.Server.Model.Db.Mds |
||||
|
{ |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 店铺与团关系
|
||||
|
/// </summary>
|
||||
|
[Table(Name = "shopdepartment", DisableSyncStructure = true)] |
||||
|
public partial class Shopdepartment { |
||||
|
|
||||
|
[Column(StringLength = 50, IsPrimary = true, IsNullable = false)] |
||||
|
public string Id { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 团队ID
|
||||
|
/// </summary>
|
||||
|
[Column(StringLength = 50)] |
||||
|
public string DepartmentId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 店铺ID
|
||||
|
/// </summary>
|
||||
|
[ Column(StringLength = 50)] |
||||
|
public string ShopId { get; set; } |
||||
|
|
||||
|
} |
||||
|
|
||||
|
} |
@ -0,0 +1,50 @@ |
|||||
|
using FreeSql.DataAnnotations; |
||||
|
using System; |
||||
|
|
||||
|
namespace BBWY.Server.Model.Db.Mds |
||||
|
{ |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 团队
|
||||
|
/// </summary>
|
||||
|
[ Table(Name = "userdepartment", DisableSyncStructure = true)] |
||||
|
public partial class Userdepartment { |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 主键
|
||||
|
/// </summary>
|
||||
|
[Column(StringLength = 50, IsPrimary = true, IsNullable = false)] |
||||
|
public string Id { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 创建时间
|
||||
|
/// </summary>
|
||||
|
[Column(DbType = "datetime")] |
||||
|
public DateTime CreateTime { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 创建人Id
|
||||
|
/// </summary>
|
||||
|
[Column(StringLength = 50)] |
||||
|
public string CreatorId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 否已删除
|
||||
|
/// </summary>
|
||||
|
[Column(DbType = "tinyint(4)")] |
||||
|
public sbyte Deleted { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 部门名称
|
||||
|
/// </summary>
|
||||
|
public string DepartmentName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 上级部门
|
||||
|
/// </summary>
|
||||
|
[Column(StringLength = 50)] |
||||
|
public string ParentDepartmentId { get; set; } |
||||
|
|
||||
|
} |
||||
|
|
||||
|
} |
@ -0,0 +1,28 @@ |
|||||
|
using System.Collections.Generic; |
||||
|
|
||||
|
namespace BBWY.Server.Model.Dto |
||||
|
{ |
||||
|
public class DepartmentResponse |
||||
|
{ |
||||
|
public string Id { get; set; } |
||||
|
|
||||
|
public string Name { get; set; } |
||||
|
|
||||
|
public IList<SimpleShopResponse> ShopList { get; set; } |
||||
|
|
||||
|
public DepartmentResponse() |
||||
|
{ |
||||
|
ShopList = new List<SimpleShopResponse>(); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
public class SimpleShopResponse |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// ShopId
|
||||
|
/// </summary>
|
||||
|
public string Id { get; set; } |
||||
|
|
||||
|
public string Name { get; set; } |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue