import { action, makeObservable } from "mobx";
// 用户信息
import BaseStore from "./baseStore";
import { TagDataType } from "@/model/userModel";
import baseHttp from '@/service/base';

class DepConfig {
    static LIST: string = "dep/list"
    static ADD: string = "dep"
    static DELETE: string = "dep"
    static EDIT: string = "dep"
    static ORG: string = "dep/org"
}
class DepStore extends BaseStore<TagDataType> {
    constructor() {
        super(DepConfig)
        makeObservable(this, {
            getOrg:action
        })
    }
    async getOrg(){
        return await baseHttp.get(DepConfig.ORG,{})
    }
}

export const depStore = new DepStore();
 