46 lines
1.2 KiB
C#
46 lines
1.2 KiB
C#
using Microsoft.AspNetCore.Mvc;
|
|
using TGJ.NetworkFreight.SeckillAggregateServices.Pos.UserService;
|
|
using YD_WeChatApplet.Api;
|
|
using YD_WeChatApplet.Api.Entitys;
|
|
using YD_WeChatApplet.Commons;
|
|
using YD_WeChatApplet.Commons.Dto.HomeWork;
|
|
using YD_WeChatApplet.Commons.Dto.Patriarch;
|
|
using YD_WeChatApplet.Commons.Dto.Resource;
|
|
using YD_WeChatApplet.Commons.Dto.School;
|
|
|
|
namespace YD_WeChatApplet.Services
|
|
{
|
|
/// <summary>
|
|
/// 用户偏好
|
|
/// </summary>
|
|
public interface IUserPreferenceService
|
|
{
|
|
/// <summary>
|
|
/// 新建偏好
|
|
/// </summary>
|
|
/// <param name="dto"></param>
|
|
/// <returns></returns>
|
|
Task AddPreference(AddPreferenceDto dto);
|
|
|
|
/// <summary>
|
|
/// 获取个人偏好
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
Task<GetPreferenceDto> GetPreferences();
|
|
|
|
/// <summary>
|
|
/// 获取背景音乐列表
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
Task<List<GeBackgroundMusicDto>> GetBackgroundMusics();
|
|
|
|
/// <summary>
|
|
/// 设置偏好
|
|
/// </summary>
|
|
/// <param name="dto"></param>
|
|
/// <returns></returns>
|
|
Task SetPreferences(SetPreferenceDto dto);
|
|
|
|
}
|
|
}
|