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