{"size": 1340, "ext": "js", "max_stars_repo_path": "src/service/otheruserService.js", "max_stars_repo_name": "tingrun919/heavenworld_backend", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/service/otheruserService.js", "max_issues_repo_name": "tingrun919/heavenworld_backend", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/service/otheruserService.js", "max_forks_repo_name": "tingrun919/heavenworld_backend", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 23.5087719298, "max_line_length": 66, "alphanum_fraction": 0.6126865672}
import Util from '../libs/util';

export default {
	methods:{
		getUserinfo(form){
			return Util.get('info/selectThirdPartyOne',form).then(res => {
				var result = res.data
				if(result.code == 100000){
					return result.data
				}else{
					this.$Message.error(result.message);
				}
			})
		},
		getOtherUserList(params){
			return Util.get('info/selectThirdParty',params).then(res => {
				var result = res.data
				return result.data
			})
		},
		addUserApi(params){
			return Util.post('info/addThirdParty', params).then(res => {
				var result = res.data
				if (result.code == 100000) {
					this.$Message.success('新增成功！');
					return result
				} else {
					this.$Message.error(result.message);
				}
				return result.data
			})
		},
		updateOtherUser(params){
			return Util.post('info/updateThridParty', params).then(res => {
				var result = res.data
				if (result.code == 100000) {
					this.$Message.success('修改成功！');
					return result
				} else {
					this.$Message.error(result.message);
				}
				return result.data
			})
		},
		removeOtherUser(params){
			return Util.get('info/deleteThirdParty', params).then(res => {
				var result = res.data
				if (result.code == 100000) {
					this.$Message.success('删除成功！');
				} else {
					this.$Message.error(result.message);
				}
				return result.data
			})
		}
	}
}