26 lines
1.1 KiB
C#
26 lines
1.1 KiB
C#
using MilliSim.Common.Dtos;
|
|
using MilliSim.Common.Models;
|
|
|
|
namespace MilliSim.Services;
|
|
|
|
public interface IContentService
|
|
{
|
|
// 轮播图
|
|
Task<ApiResponse<List<BannerDto>>> GetBannersAsync(bool onlyActive = false);
|
|
Task<ApiResponse<BannerDto>> CreateBannerAsync(CreateBannerRequest request);
|
|
Task<ApiResponse<BannerDto>> UpdateBannerAsync(long id, CreateBannerRequest request);
|
|
Task<ApiResponse> DeleteBannerAsync(long id);
|
|
|
|
// 合作伙伴
|
|
Task<ApiResponse<List<PartnerDto>>> GetPartnersAsync(bool onlyVisible = false);
|
|
Task<ApiResponse<PartnerDto>> CreatePartnerAsync(CreatePartnerRequest request);
|
|
Task<ApiResponse<PartnerDto>> UpdatePartnerAsync(long id, CreatePartnerRequest request);
|
|
Task<ApiResponse> DeletePartnerAsync(long id);
|
|
|
|
// 咨询消息
|
|
Task<ApiResponse<PagedResult<ConsultationDto>>> GetConsultationsAsync(PageRequest request, bool? isRead = null);
|
|
Task<ApiResponse<ConsultationDto>> CreateConsultationAsync(CreateConsultationRequest request);
|
|
Task<ApiResponse> MarkAsReadAsync(long id);
|
|
Task<ApiResponse> DeleteConsultationAsync(long id);
|
|
}
|