添加评论模块

This commit is contained in:
橙子
2023-01-26 11:25:04 +08:00
parent ac26df6827
commit 38d69c9e6f
12 changed files with 193 additions and 2 deletions

View File

@@ -0,0 +1,17 @@
using Yi.BBS.Application.Contracts.Forum;
using NET.AutoWebApi.Setting;
using Yi.BBS.Application.Contracts.Forum.Dtos;
using Yi.BBS.Domain.Forum.Entities;
using Yi.Framework.Ddd.Services;
namespace Yi.BBS.Application.Forum
{
/// <summary>
/// Comment服务实现
/// </summary>
[AppService]
public class CommentService : CrudAppService<CommentEntity, CommentGetOutputDto, CommentGetListOutputDto, long, CommentGetListInputVo, CommentCreateInputVo, CommentUpdateInputVo>,
ICommentService, IAutoApiService
{
}
}

View File

@@ -0,0 +1,23 @@
using AutoMapper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Yi.BBS.Application.Contracts.Forum.Dtos;
using Yi.BBS.Domain.Forum.Entities;
namespace Yi.BBS.Application.Forum.MapperConfig
{
public class CommentProfile: Profile
{
public CommentProfile()
{
CreateMap<CommentGetListInputVo, CommentEntity>();
CreateMap<CommentCreateInputVo, CommentEntity>();
CreateMap<CommentUpdateInputVo, CommentEntity>();
CreateMap<CommentEntity, CommentGetListOutputDto>();
CreateMap<CommentEntity, CommentGetOutputDto>();
}
}
}