import { User, UserMessage } from 'nsn-entity';

export type ProfilePasswordParams = Pick<User, 'password' | 'newPassword' | 'rePassword'>
export type ProfilePageMessageParams = Pick<UserMessage, 'status' | 'msgTitle' | 'startDate' | 'endDate' | 'msgTypeList' | 'msgLevelList'>
export type ProfileUpdateMessageParams = Pick<UserMessage, 'status' | 'sentIdList'>

/** 系统-个人信息 服务 */
export interface ProfileService {

  /** 查询个人信息 */
  info: () => Promise<any>;

  /** 修改个人信息 */
  update: (params: Partial<User>) => Promise<any>;

  /** 修改个人密码 */
  update_pwd: (params: ProfilePasswordParams) => Promise<any>;

  /** 消息中心 */
  page_msg: (params: ProfilePageMessageParams) => Promise<any>;

  /** 消息中心更新 */
  update_msg: (params: ProfileUpdateMessageParams) => Promise<any>;
}