You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
578 B
C#
21 lines
578 B
C#
|
|
|
|
using Mapster;
|
|
using Myshipping.Application.Entity;
|
|
using Myshipping.Core.Entity;
|
|
|
|
namespace Myshipping.Core
|
|
{
|
|
public class Mapper : IRegister
|
|
{
|
|
public void Register(TypeAdapterConfig config)
|
|
{
|
|
config.ForType<DjyMessage, DjyMessageListOutput>()
|
|
.Map(dest => dest.CreatedTime, src => src.CreatedTime.ToString("yyyy-MM-dd HH:mm:ss"));
|
|
|
|
|
|
config.ForType<DjyMessage, DjyMessageDetailOutput>()
|
|
.Map(dest => dest.CreatedTime, src => src.CreatedTime.ToString("yyyy-MM-dd HH:mm:ss"));
|
|
}
|
|
}
|
|
} |