    interface DataType {
        name: string;
        key: string;
        nickName: string;
        userName: string;
        deptName: string;
        userTypeName: string;
    }
// 定义状态
export type State = {
    sourceData: DataType[],
    pageLoading: boolean,
    page: {
        pageNumber: number,
        pageSize: number,
        total: number,
    },
};

// 只读状态
export type ReadonlyState = Readonly<State>;

// 修改状态
export type StateAction = {
    setPageLoading: (loading: boolean) => void,
    setPage: (page: State['page']) => void,
    setSourceData: (data: any[]) => void,
};

// 仓库类型
export type QuestionAnswerInfoStore = {
    state: ReadonlyState,
    init: () => void,
    reset: () => void,
    onChangePagination: (pageNumber: number, pageSize: number,userName?:string,userNickName?:string,userType?:string) => Promise<any>,
    onFetchUserListApi: (userName:any,userNickName:any,userType:any) => Promise<void>,
};