755059807a
- 优化 AI 配置列表页面:重构统计卡片、搜索表单、表格列展示 - 修复 3 处 TypeScript TS6133 编译错误,恢复构建 - 新增管理员修改密码和重置密码功能 - 优化小程序多个页面样式和交互 - 人生事件模块完善 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
59 lines
1.3 KiB
Java
59 lines
1.3 KiB
Java
package com.emotion.service;
|
|
|
|
import com.baomidou.mybatisplus.extension.service.IService;
|
|
import com.emotion.common.PageResult;
|
|
import com.emotion.dto.request.AdminCreateRequest;
|
|
import com.emotion.dto.request.AdminPageRequest;
|
|
import com.emotion.dto.request.AdminUpdateRequest;
|
|
import com.emotion.dto.response.AdminResponse;
|
|
import com.emotion.entity.Admin;
|
|
|
|
/**
|
|
* 管理员服务接口
|
|
*
|
|
* @author huazhongmin
|
|
* @date 2025-10-27
|
|
*/
|
|
public interface AdminService extends IService<Admin> {
|
|
|
|
/**
|
|
* 分页查询管理员
|
|
*/
|
|
PageResult<AdminResponse> getPageWithResponse(AdminPageRequest request);
|
|
|
|
/**
|
|
* 根据ID获取管理员响应
|
|
*/
|
|
AdminResponse getAdminResponseById(String id);
|
|
|
|
/**
|
|
* 创建管理员并返回响应
|
|
*/
|
|
AdminResponse createAdminWithResponse(AdminCreateRequest request);
|
|
|
|
/**
|
|
* 更新管理员并返回响应
|
|
*/
|
|
AdminResponse updateAdminWithResponse(AdminUpdateRequest request);
|
|
|
|
/**
|
|
* 根据账号查询管理员
|
|
*/
|
|
Admin getByAccount(String account);
|
|
|
|
/**
|
|
* 根据邮箱查询管理员
|
|
*/
|
|
Admin getByEmail(String email);
|
|
|
|
/**
|
|
* 根据手机号查询管理员
|
|
*/
|
|
Admin getByPhone(String phone);
|
|
|
|
/**
|
|
* 重置指定管理员的密码
|
|
*/
|
|
void resetPassword(String adminId, String newPassword);
|
|
}
|