MessageWrapper
This commit is contained in:
parent
93c22a2959
commit
8ad64ac523
|
|
@ -68,7 +68,7 @@ namespace Nop.Plugin.Misc.AuctionPlugin.Areas.Admin.Controllers
|
|||
|
||||
if (viewModel.IsActive == true)
|
||||
{
|
||||
var announcement = new MessageBase
|
||||
var announcement = new MessageWrapper
|
||||
{
|
||||
MessageType = "announcement",
|
||||
Data = new AnnouncementMessage
|
||||
|
|
@ -108,7 +108,7 @@ namespace Nop.Plugin.Misc.AuctionPlugin.Areas.Admin.Controllers
|
|||
//await _announcementService.InsertAsync(objOfAuctionBid);
|
||||
|
||||
|
||||
var bid = new MessageBase
|
||||
var bid = new MessageWrapper
|
||||
{
|
||||
MessageType = "bidNotification",
|
||||
Data = new BidNotificationMessage
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using AyCode.Interfaces.Entities;
|
||||
using AyCode.Interfaces.TimeStampInfo;
|
||||
using LinqToDB.Mapping;
|
||||
using Mango.Nop.Core.Entities;
|
||||
using Mango.Nop.Core.Interfaces;
|
||||
using Nop.Core;
|
||||
|
|
@ -11,6 +12,7 @@ namespace Nop.Plugin.Misc.AuctionPlugin.Domains.Entities;
|
|||
public partial class Auction: MgEntityBase, ITimeStampInfo//, ISoftRemoveEntityInt
|
||||
{
|
||||
public string AuctionName { get; set; }
|
||||
|
||||
public AuctionType AuctionType{ get; set; }
|
||||
|
||||
public DateTime StartDateUtc { get; set; }
|
||||
|
|
@ -19,8 +21,10 @@ public partial class Auction: MgEntityBase, ITimeStampInfo//, ISoftRemoveEntityI
|
|||
public bool Closed { get; set; }
|
||||
|
||||
[NotMapped]
|
||||
[NotColumn]
|
||||
public List<ProductToAuctionMapping> ProductToAuctionMappings { get; } = [];
|
||||
|
||||
[SkipValuesOnUpdate]
|
||||
public DateTime Created { get; set; }
|
||||
public DateTime Modified { get; set; }
|
||||
}
|
||||
|
|
@ -6,7 +6,7 @@ using System.Threading.Tasks;
|
|||
|
||||
namespace Nop.Plugin.Misc.AuctionPlugin.Hubs.Messages
|
||||
{
|
||||
public class MessageBase
|
||||
public class MessageWrapper
|
||||
{
|
||||
public string MessageType { get; set; }
|
||||
public object Data { get; set; }
|
||||
Loading…
Reference in New Issue