import AJAX from "../../utils/http" ; module . exports = ( app ) => { author : Cookie
     *  description const getProjectList = async ( { pageSize , pageNum , access_token } ) => { const { data : projectList } = await AJAX ( app ) . methodV ( { url : "/projects" , method : "GET" , query : { per_page : pageSize , page : pageNum , access_token } , } ) ; return { projectList } ; } ; author : Cookie
     *  description const getProjectByUser = async ( { pageSize , pageNum , access_token , userId } ) => { const { data : projectList } = await AJAX ( app ) . methodV ( { url : `/users/${ userId }/projects` , method : "GET" , query : { per_page : pageSize , page : pageNum , access_token } , } ) ; return { projectList } ; } ; author : Cookie
    *  description const getProject = async ( { id , access_token } ) => { const project = await AJAX ( app ) . methodV ( { url : `/projects/${ id }` , method : "GET" , query : { access_token } } ) ; return project ; } ; author : Cookie
     *  description const createProjects = async ( { gitParams } ) => { const status = await AJAX ( app ) . methodV ( { url : "/projects" , method : "POST" , params : { ... gitParams , } , } ) ; return status ; } ; author : Cookie
     *  description const deleteProtectedBranches = async ( projectId ) => { const url = `/projects/${ projectId }/protected_branches/master` ; const status = await AJAX ( app ) . methodV ( { url , method : "DELETE" , } ) ; return status ; } ; author : Cookie
     *  description const protectedBranches = async ( projectId ) => { const url = `/projects/${ projectId }/protected_branches` ; const status = await AJAX ( app ) . methodV ( { url , method : "POST" , params : { name : "master" , push_access_level : 0 , merge_access_level : 40 , } , } ) ; return status ; } ; return { getProjectList , getProject , getProjectByUser , createProjects , deleteProtectedBranches , protectedBranches , } ; } ;