interface State<D> {
    data: D | null,
    error: Error | null,
    stat: "idel" | "loading" | "error" | "success"
}
const defaultInitState: State<null> = {
    data: null,
    error: null,
    stat: "idel"
}
export const usePermission = () => {

}