Public sayfalara TenantId eklendi
This commit is contained in:
parent
8df54adc52
commit
3e7043cb37
12 changed files with 66 additions and 30 deletions
|
|
@ -5,6 +5,7 @@ namespace Kurs.Platform.Demos;
|
||||||
|
|
||||||
public class DemoDto : FullAuditedEntityDto<Guid>
|
public class DemoDto : FullAuditedEntityDto<Guid>
|
||||||
{
|
{
|
||||||
|
public Guid? TenantId { get; set; }
|
||||||
public string OrganizationName { get; set; }
|
public string OrganizationName { get; set; }
|
||||||
public string FullName { get; set; }
|
public string FullName { get; set; }
|
||||||
public string Email { get; set; }
|
public string Email { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,11 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using Volo.Abp.Domain.Entities.Auditing;
|
using Volo.Abp.Domain.Entities.Auditing;
|
||||||
|
using Volo.Abp.MultiTenancy;
|
||||||
|
|
||||||
namespace Kurs.Platform.Entities;
|
namespace Kurs.Platform.Entities;
|
||||||
|
|
||||||
public class BlogCategory : FullAuditedEntity<Guid>
|
public class BlogCategory : FullAuditedEntity<Guid>, IMultiTenant
|
||||||
{
|
{
|
||||||
public Guid? TenantId { get; set; }
|
public Guid? TenantId { get; set; }
|
||||||
public string Name { get; set; }
|
public string Name { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,10 @@
|
||||||
using System;
|
using System;
|
||||||
using Volo.Abp.Domain.Entities.Auditing;
|
using Volo.Abp.Domain.Entities.Auditing;
|
||||||
|
using Volo.Abp.MultiTenancy;
|
||||||
|
|
||||||
namespace Kurs.Platform.Entities;
|
namespace Kurs.Platform.Entities;
|
||||||
|
|
||||||
public class BlogPost : FullAuditedAggregateRoot<Guid>
|
public class BlogPost : FullAuditedAggregateRoot<Guid>, IMultiTenant
|
||||||
{
|
{
|
||||||
public Guid? TenantId { get; set; }
|
public Guid? TenantId { get; set; }
|
||||||
public string Title { get; set; }
|
public string Title { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -1,23 +1,19 @@
|
||||||
using System;
|
using System;
|
||||||
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations;
|
||||||
using Volo.Abp.Domain.Entities.Auditing;
|
using Volo.Abp.Domain.Entities.Auditing;
|
||||||
|
using Volo.Abp.MultiTenancy;
|
||||||
|
|
||||||
namespace Kurs.Platform.Entities;
|
namespace Kurs.Platform.Entities;
|
||||||
|
|
||||||
public class Demo : FullAuditedEntity<Guid>
|
public class Demo : FullAuditedEntity<Guid>, IMultiTenant
|
||||||
{
|
{
|
||||||
[Required]
|
public Guid? TenantId { get; set; }
|
||||||
public string OrganizationName { get; set; }
|
public string OrganizationName { get; set; }
|
||||||
[Required]
|
|
||||||
public string FullName { get; set; }
|
public string FullName { get; set; }
|
||||||
[Required]
|
|
||||||
public string Email { get; set; }
|
public string Email { get; set; }
|
||||||
[Required]
|
|
||||||
public string Phone { get; set; }
|
public string Phone { get; set; }
|
||||||
[Required]
|
|
||||||
public string Address { get; set; }
|
public string Address { get; set; }
|
||||||
public int NumberOfBranches { get; set; }
|
public int NumberOfBranches { get; set; }
|
||||||
public int NumberOfUsers { get; set; }
|
public int NumberOfUsers { get; set; }
|
||||||
[Required]
|
|
||||||
public string Message { get; set; }
|
public string Message { get; set; }
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,12 @@
|
||||||
using System;
|
using System;
|
||||||
using Volo.Abp.Domain.Entities;
|
|
||||||
using Volo.Abp.Domain.Entities.Auditing;
|
using Volo.Abp.Domain.Entities.Auditing;
|
||||||
|
using Volo.Abp.MultiTenancy;
|
||||||
|
|
||||||
namespace Kurs.Platform.Entities;
|
namespace Kurs.Platform.Entities;
|
||||||
|
|
||||||
public class Service : FullAuditedAggregateRoot<Guid>
|
public class Service : FullAuditedAggregateRoot<Guid>, IMultiTenant
|
||||||
{
|
{
|
||||||
|
public Guid? TenantId { get; set; }
|
||||||
public string? Icon { get; set; }
|
public string? Icon { get; set; }
|
||||||
public string Title { get; set; }
|
public string Title { get; set; }
|
||||||
public string? Description { get; set; }
|
public string? Description { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
using System;
|
using System;
|
||||||
using System.ComponentModel.DataAnnotations;
|
|
||||||
using Volo.Abp.Domain.Entities.Auditing;
|
using Volo.Abp.Domain.Entities.Auditing;
|
||||||
|
|
||||||
namespace Kurs.Platform.Entities;
|
namespace Kurs.Platform.Entities;
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,11 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using Volo.Abp.Domain.Entities.Auditing;
|
using Volo.Abp.Domain.Entities.Auditing;
|
||||||
|
using Volo.Abp.MultiTenancy;
|
||||||
|
|
||||||
namespace Kurs.Platform.Orders;
|
namespace Kurs.Platform.Orders;
|
||||||
|
|
||||||
public class Order : FullAuditedAggregateRoot<Guid>
|
public class Order : FullAuditedAggregateRoot<Guid>, IMultiTenant
|
||||||
{
|
{
|
||||||
public Guid? TenantId { get; set; }
|
public Guid? TenantId { get; set; }
|
||||||
public string InstitutionName { get; set; }
|
public string InstitutionName { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ using Volo.Abp.EntityFrameworkCore;
|
||||||
namespace Kurs.Platform.Migrations
|
namespace Kurs.Platform.Migrations
|
||||||
{
|
{
|
||||||
[DbContext(typeof(PlatformDbContext))]
|
[DbContext(typeof(PlatformDbContext))]
|
||||||
[Migration("20250820091253_Service")]
|
[Migration("20250820120349_Service")]
|
||||||
partial class Service
|
partial class Service
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
|
|
@ -1079,7 +1079,8 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("nvarchar(128)");
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.Property<Guid?>("TenantId")
|
b.Property<Guid?>("TenantId")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier")
|
||||||
|
.HasColumnName("TenantId");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
|
@ -1179,7 +1180,8 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("nvarchar(512)");
|
.HasColumnType("nvarchar(512)");
|
||||||
|
|
||||||
b.Property<Guid?>("TenantId")
|
b.Property<Guid?>("TenantId")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier")
|
||||||
|
.HasColumnName("TenantId");
|
||||||
|
|
||||||
b.Property<string>("Title")
|
b.Property<string>("Title")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
|
|
@ -2118,6 +2120,10 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasMaxLength(20)
|
.HasMaxLength(20)
|
||||||
.HasColumnType("nvarchar(20)");
|
.HasColumnType("nvarchar(20)");
|
||||||
|
|
||||||
|
b.Property<Guid?>("TenantId")
|
||||||
|
.HasColumnType("uniqueidentifier")
|
||||||
|
.HasColumnName("TenantId");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
b.ToTable("PDemo", (string)null);
|
b.ToTable("PDemo", (string)null);
|
||||||
|
|
@ -3507,6 +3513,10 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("uniqueidentifier")
|
.HasColumnType("uniqueidentifier")
|
||||||
.HasColumnName("LastModifierId");
|
.HasColumnName("LastModifierId");
|
||||||
|
|
||||||
|
b.Property<Guid?>("TenantId")
|
||||||
|
.HasColumnType("uniqueidentifier")
|
||||||
|
.HasColumnName("TenantId");
|
||||||
|
|
||||||
b.Property<string>("Title")
|
b.Property<string>("Title")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasMaxLength(128)
|
.HasMaxLength(128)
|
||||||
|
|
@ -3999,7 +4009,8 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
b.Property<Guid?>("TenantId")
|
b.Property<Guid?>("TenantId")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier")
|
||||||
|
.HasColumnName("TenantId");
|
||||||
|
|
||||||
b.Property<decimal>("Total")
|
b.Property<decimal>("Total")
|
||||||
.HasPrecision(18, 2)
|
.HasPrecision(18, 2)
|
||||||
|
|
@ -11,11 +11,18 @@ namespace Kurs.Platform.Migrations
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
protected override void Up(MigrationBuilder migrationBuilder)
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
{
|
{
|
||||||
|
migrationBuilder.AddColumn<Guid>(
|
||||||
|
name: "TenantId",
|
||||||
|
table: "PDemo",
|
||||||
|
type: "uniqueidentifier",
|
||||||
|
nullable: true);
|
||||||
|
|
||||||
migrationBuilder.CreateTable(
|
migrationBuilder.CreateTable(
|
||||||
name: "PService",
|
name: "PService",
|
||||||
columns: table => new
|
columns: table => new
|
||||||
{
|
{
|
||||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
|
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
Icon = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
|
Icon = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
|
||||||
Title = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
|
Title = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
|
||||||
Description = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: true),
|
Description = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: true),
|
||||||
|
|
@ -42,6 +49,10 @@ namespace Kurs.Platform.Migrations
|
||||||
{
|
{
|
||||||
migrationBuilder.DropTable(
|
migrationBuilder.DropTable(
|
||||||
name: "PService");
|
name: "PService");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "TenantId",
|
||||||
|
table: "PDemo");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1076,7 +1076,8 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("nvarchar(128)");
|
.HasColumnType("nvarchar(128)");
|
||||||
|
|
||||||
b.Property<Guid?>("TenantId")
|
b.Property<Guid?>("TenantId")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier")
|
||||||
|
.HasColumnName("TenantId");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
|
@ -1176,7 +1177,8 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("nvarchar(512)");
|
.HasColumnType("nvarchar(512)");
|
||||||
|
|
||||||
b.Property<Guid?>("TenantId")
|
b.Property<Guid?>("TenantId")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier")
|
||||||
|
.HasColumnName("TenantId");
|
||||||
|
|
||||||
b.Property<string>("Title")
|
b.Property<string>("Title")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
|
|
@ -2115,6 +2117,10 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasMaxLength(20)
|
.HasMaxLength(20)
|
||||||
.HasColumnType("nvarchar(20)");
|
.HasColumnType("nvarchar(20)");
|
||||||
|
|
||||||
|
b.Property<Guid?>("TenantId")
|
||||||
|
.HasColumnType("uniqueidentifier")
|
||||||
|
.HasColumnName("TenantId");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
b.ToTable("PDemo", (string)null);
|
b.ToTable("PDemo", (string)null);
|
||||||
|
|
@ -3504,6 +3510,10 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("uniqueidentifier")
|
.HasColumnType("uniqueidentifier")
|
||||||
.HasColumnName("LastModifierId");
|
.HasColumnName("LastModifierId");
|
||||||
|
|
||||||
|
b.Property<Guid?>("TenantId")
|
||||||
|
.HasColumnType("uniqueidentifier")
|
||||||
|
.HasColumnName("TenantId");
|
||||||
|
|
||||||
b.Property<string>("Title")
|
b.Property<string>("Title")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasMaxLength(128)
|
.HasMaxLength(128)
|
||||||
|
|
@ -3996,7 +4006,8 @@ namespace Kurs.Platform.Migrations
|
||||||
.HasColumnType("nvarchar(max)");
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
b.Property<Guid?>("TenantId")
|
b.Property<Guid?>("TenantId")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier")
|
||||||
|
.HasColumnName("TenantId");
|
||||||
|
|
||||||
b.Property<decimal>("Total")
|
b.Property<decimal>("Total")
|
||||||
.HasPrecision(18, 2)
|
.HasPrecision(18, 2)
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,12 @@
|
||||||
export interface DemoDto {
|
export interface DemoDto {
|
||||||
id: string; // Guid karşılığı string
|
id: string
|
||||||
organizationName: string;
|
tenantId?: string
|
||||||
fullName: string;
|
organizationName: string
|
||||||
email: string;
|
fullName: string
|
||||||
phone: string;
|
email: string
|
||||||
address: string;
|
phone: string
|
||||||
numberOfBranches: number;
|
address: string
|
||||||
numberOfUsers: number;
|
numberOfBranches: number
|
||||||
message: string;
|
numberOfUsers: number
|
||||||
|
message: string
|
||||||
}
|
}
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
export type ItemType = 'service' | 'support'
|
export type ItemType = 'service' | 'support'
|
||||||
|
|
||||||
export interface Service {
|
export interface Service {
|
||||||
|
tenantId?: string
|
||||||
icon?: string
|
icon?: string
|
||||||
title: string
|
title: string
|
||||||
description?: string
|
description?: string
|
||||||
|
|
@ -9,6 +10,7 @@ export interface Service {
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ServiceDto {
|
export interface ServiceDto {
|
||||||
|
tenantId?: string
|
||||||
icon?: string
|
icon?: string
|
||||||
title: string
|
title: string
|
||||||
description?: string
|
description?: string
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue