npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@yakj/apisdk

v1.0.25

Published

# 目录

Downloads

6

Readme

项目接口文档

目录

基础

登录

切换企业

undefined

读取隐患台帐

基础

登录

请求路径:http://localhost:3000/_user/Auth/login

请求参数:

{
	"Account": "90000013631",
	"PWD": "e10adc3949ba59abbe56e057f20f883e"
}

响应内容:

{
	"UID": 13631,
	"Name": "杏",
	"Birthday": "1970-01-01",
	"Avatar": "",
	"Nick": "邓炆烨",
	"Sex": 0,
	"Status": 1,
	"Channel": "",
	"PUID": 1,
	"TNum": 1,
	"UGIDs": [3366,7168,7170,7174],
	"Groups": [
		{
			"UGID": 3366,
			"Title": "绵阳惠购网络科技有限公司-管理员",
			"Sort": 1,
			"PUGID": 2221,
			"Memo": "管理员",
			"EUGID": 0,
			"UnitID": 0,
			"GID": 0
		},
		{
			"UGID": 7168,
			"Title": "测试企业1125",
			"Sort": 0,
			"PUGID": 0,
			"Memo": "自动创建",
			"EUGID": 0,
			"UnitID": 0,
			"GID": 0
		},
		{
			"UGID": 7170,
			"Title": "行政部",
			"Sort": 0,
			"PUGID": 7168,
			"Memo": "自动创建",
			"EUGID": 0,
			"UnitID": 0,
			"GID": 0
		},
		{
			"UGID": 7174,
			"Title": "行政主管",
			"Sort": 0,
			"PUGID": 7170,
			"Memo": "自动创建",
			"EUGID": 0,
			"UnitID": 0,
			"GID": 0
		}
	],
	"App": {
		"AID": 2,
		"GID": -1,
		"Key": ""
	},
	"Accounts": [
		{
			"Account": "90000013631",
			"Name": "",
			"Type": "PWD"
		},
		{
			"Account": "ol5bp0gB4rdRF2zAopj8TtZkZu2A",
			"Name": "杏",
			"Type": "Wechat"
		}
	],
	"Account": "90000013631",
	"Contact": {
		"Phone": "15982227167",
		"Station": "5910"
	},
	"Contacts": [
		{
			"UID": 13631,
			"T": "Phone",
			"V": "15982227167",
			"C": ""
		},
		{
			"UID": 13631,
			"T": "Station",
			"V": "5910",
			"C": "1086"
		}
	],
	"RIDs": [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35],
	"Rules": [
		{
			"RID": 1,
			"Title": "登陆",
			"Type": "P",
			"Rule": "Auth/login"
		},
		{
			"RID": 2,
			"Title": "注册",
			"Type": "P",
			"Rule": "Auth/regist"
		},
		{
			"RID": 3,
			"Title": "重置密码",
			"Type": "P",
			"Rule": "Auth/forget"
		},
		{
			"RID": 4,
			"Title": "创建企业",
			"Type": "P",
			"Rule": "E/create"
		},
		{
			"RID": 5,
			"Title": "配置告知牌",
			"Type": "P",
			"Rule": "E/Flat"
		},
		{
			"RID": 6,
			"Title": "添加组织机构",
			"Type": "P",
			"Rule": "E/Org/add"
		},
		{
			"RID": 7,
			"Title": "修改组织机构",
			"Type": "P",
			"Rule": "E/Org/edit"
		},
		{
			"RID": 8,
			"Title": "删除组织机构",
			"Type": "P",
			"Rule": "E/Org/del"
		},
		{
			"RID": 9,
			"Title": "添加建构筑物",
			"Type": "P",
			"Rule": "E/Building/add"
		},
		{
			"RID": 10,
			"Title": "修改建构筑物",
			"Type": "P",
			"Rule": "E/Building/edit"
		},
		{
			"RID": 11,
			"Title": "删除建构筑物",
			"Type": "P",
			"Rule": "E/Building/del"
		},
		{
			"RID": 12,
			"Title": "通知发布文章",
			"Type": "P",
			"Rule": "E/Art/add"
		},
		{
			"RID": 13,
			"Title": "通知编辑文章",
			"Type": "P",
			"Rule": "E/Art/edit"
		},
		{
			"RID": 14,
			"Title": "培训查看统计",
			"Type": "P",
			"Rule": "E/Train/count"
		},
		{
			"RID": 15,
			"Title": "检查表查看统计",
			"Type": "P",
			"Rule": "E/Check/count"
		},
		{
			"RID": 16,
			"Title": "服务商基础",
			"Type": "P",
			"Rule": "S/E/base"
		},
		{
			"RID": 17,
			"Title": "编辑会议纪要",
			"Type": "P",
			"Rule": "E/Active/edit"
		},
		{
			"RID": 18,
			"Title": "风险点添加",
			"Type": "P",
			"Rule": "E/Risk/add"
		},
		{
			"RID": 19,
			"Title": "风险点删除",
			"Type": "P",
			"Rule": "E/Risk/del"
		},
		{
			"RID": 20,
			"Title": "风险点编辑",
			"Type": "P",
			"Rule": "E/Risk/edit"
		},
		{
			"RID": 21,
			"Title": "检查表添加",
			"Type": "P",
			"Rule": "E/Check/add"
		},
		{
			"RID": 22,
			"Title": "检查表编辑",
			"Type": "P",
			"Rule": "E/Check/edit"
		},
		{
			"RID": 23,
			"Title": "检查表删除",
			"Type": "P",
			"Rule": "E/Check/del"
		},
		{
			"RID": 24,
			"Title": "资料库添加",
			"Type": "P",
			"Rule": "E/Data/add"
		},
		{
			"RID": 25,
			"Title": "资料库编辑",
			"Type": "P",
			"Rule": "E/Data/edit"
		},
		{
			"RID": 26,
			"Title": "资料库删除",
			"Type": "P",
			"Rule": "E/Data/del"
		},
		{
			"RID": 27,
			"Title": "培训库添加",
			"Type": "P",
			"Rule": "E/Train/count"
		},
		{
			"RID": 28,
			"Title": "培训库编辑",
			"Type": "P",
			"Rule": "E/Train/add"
		},
		{
			"RID": 29,
			"Title": "培训库删除",
			"Type": "P",
			"Rule": "E/Train/del"
		},
		{
			"RID": 30,
			"Title": "法律法规库添加",
			"Type": "P",
			"Rule": "E/Laws/add"
		},
		{
			"RID": 31,
			"Title": "法律法规库编辑",
			"Type": "P",
			"Rule": "E/Laws/edit"
		},
		{
			"RID": 32,
			"Title": "法律法规库删除",
			"Type": "P",
			"Rule": "E/Laws/del"
		},
		{
			"RID": 33,
			"Title": "企业人员审核",
			"Type": "P",
			"Rule": "E/O/Audit"
		},
		{
			"RID": 34,
			"Title": "添加会议",
			"Type": "P",
			"Rule": "E/Active/add"
		},
		{
			"RID": 35,
			"Title": "删除会议",
			"Type": "P",
			"Rule": "E/active/del"
		}
	],
	"Units": [
		{
			"UnitID": 5905,
			"Title": "测试企业1125",
			"Code": "1086",
			"Memo": "",
			"Icon": "",
			"UGID": 7168,
			"PUnitID": 0,
			"TUnitID": 0
		}
	],
	"_GID": -1
}

切换企业

请求路径:http://localhost:3000/_yan4/User/change

请求参数:

{
	"GID": 1086
}

响应内容:

{
	"Rules": {
		"UID": 13631,
		"GID": 1086,
		"Root": {
			"Admin": 0,
			"Member": 0
		},
		"Posts": [
			{
				"UnitID": 5910,
				"PUnitID": 5906,
				"Title": "行政主管",
				"UGID": 7174,
				"Code": "1086",
				"Type": 100,
				"Status": 1,
				"UID": 13631
			}
		],
		"MUnitIDs": [5906],
		"AUnitIDs": [5906],
		"Orgs": [
			{
				"UnitID": 5906,
				"Title": "行政部",
				"Code": "1086",
				"X": 0,
				"Y": 0,
				"CUID": 13033,
				"GID": 1086,
				"CTime": "2021-11-26 17:23:17",
				"UGID": 7170,
				"Type": 0,
				"PUnitID": 5905,
				"OType": "",
				"OID": 0,
				"TUnitID": 5905,
				"DID": 69880,
				"Admin": 1
			}
		],
		"AuthID": 13,
		"Rules": [
			{
				"Name": "企业动态:数据过滤",
				"Code": "showLogMyOrg"
			},
			{
				"Name": "进入数据统计首页",
				"Code": "entrCountIndex"
			},
			{
				"Name": "隐患排查:创建归属为部门",
				"Code": "createdDangerMyOrg"
			},
			{
				"Name": "安全记录:数据过滤",
				"Code": "1"
			},
			{
				"Name": "首页-隐患台账:数据过滤",
				"Code": "1"
			},
			{
				"Name": "安全活动-创建",
				"Code": "activeEntrIndex"
			},
			{
				"Name": "首页-人员档案:数据过滤",
				"Code": "personnelIndexIflter"
			},
			{
				"Name": "进入审核页面",
				"Code": "auditEntryIndex"
			},
			{
				"Name": "菜单栏:显示统计图标",
				"Code": "showCountIcon"
			}
		],
		"Service": {
			"Admin": 0,
			"Member": 0
		},
		"Gov": {
			"Admin": 0,
			"Member": 0
		},
		"Tourist": 0,
		"Cur": {
			"Admin": 2,
			"Member": 1
		},
		"GIDs": [1086],
		"AUIDs": [17124,13631]
	},
	"Enter": {
		"EID": 1086,
		"Name": "谁会发",
		"Title": "测试企业1125",
		"CCode": "9562512496895326",
		"OCode": "",
		"RCode": "9562512496895326",
		"MStatus": 1,
		"Industry": "",
		"DTime": "2021-11-26 17:21:49",
		"EType": "1",
		"VTime": "Invalid date",
		"STime": "2021-11-26 17:21:49",
		"Capital": "",
		"Grade": "",
		"EAddress": "四川省绵阳市安州区",
		"Rang": "",
		"UAddress": "四川省绵阳市安州区",
		"CName": "楚儿",
		"Phone": "13658113625",
		"Type": 1,
		"UStatus": 1,
		"ETime": "Invalid date",
		"CUID": 251,
		"UUID": 0,
		"CTime": "2021-11-26 17:21:49",
		"UTime": "2021-11-26 17:21:49",
		"ProvinceID": 0,
		"CityID": 0,
		"DistrictID": 0,
		"UID": 251,
		"Count": 0,
		"LTime": "2021-11-26 17:21:49",
		"Result": 1,
		"UGID": 3445,
		"X": "0.0000000000",
		"Y": "0.0000000000",
		"Distance": 0,
		"Active": 0,
		"Config": {
			"Check": {
				"Type": 1
			}
		}
	}
}

undefined

读取隐患台帐

请求路径:http://localhost:3000/_yan4/Danger/log

请求参数:

{
	"Keyword": "",
	"STime": "2015-01-01 00:00:00",
	"ETime": "2022-11-18 17:41:53",
	"Type": "",
	"OType": "",
	"OID": [],
	"GIDs": [732],
	"UIDs": [],
	"P": 1,
	"N": 20,
	"Status": [],
	"AuthType": "UAdmin"
}

响应内容:

{
	"U": [],
	"L": [],
	"P": 1,
	"N": 20,
	"T": 0,
	"R": {
		"Pass": 0,
		"Err": 0,
		"Save": 0
	}
}