import request from '@/utils/request'
export const org_list_tree = (data = {}) =>
    request({
        url: '/user/org/list_tree',
        data: {}
    })
export const dyjg_list = (data = {}) =>
    request({
        url: '/jdbg/jxdddj_dyjg/index',
        data: {
            page: data.page,
            limit: data.limit,
            keyword: data.keyword
        }
    })
export const dyjg_add = (data = {}) =>
    request({
        url: '/jdbg/jxdddj_dyjg/add',
        data: {
            issubmit: '1',
            jdbg_jxdddj_dyjg: {
                jjjg_title: data.jjjg_title,
                jjjg_djr: data.jjjg_djr,
                jjjg_djrq: data.jjjg_djrq,
                jjjg_dyxx: data.jjjg_dyxx,
                jjjg_content: data.jjjg_content,
                jjjg_qtfj: data.jjjg_qtfj,

            }

        },
    })

export const dyjg_edit = (data = {}) =>
    request({
        url: '/jdbg/jxdddj_dyjg/edit',
        data: {
            issubmit: '1',
            jjjg_id: data.jjjg_id,
            jdbg_jxdddj_dyjg: {
                jjjg_title: data.jjjg_title,
                jjjg_djr: data.jjjg_djr,
                jjjg_djrq: data.jjjg_djrq,
                jjjg_dyxx: data.jjjg_dyxx,
                jjjg_content: data.jjjg_content,
                jjjg_qtfj: data.jjjg_qtfj,

            }

        },
    })

export const dyjg_del = (data = {}) =>
    request({
        url: '/jdbg/jxdddj_dyjg/delete',
        data: {
            jjjg_id: data.jjjg_id
        },
    })



