17.1.83 • Published 4 years ago

@sumor/recruit v17.1.83

Weekly downloads
-
License
-
Repository
-
Last release
4 years ago

@sumor/recruit

安装

通过 npm 安装:

$ npm install --save @sumor/recruit

使用说明

ES6方式

//例如要访问的程序路径为level1.level2.level3
import {level1} from '@sumor/recruit';

level1.level2.level3('parameter1');

Node.js CommonJS方式

//例如要访问的程序路径为level1.level2.level3
const {level1} = require('@sumor/recruit');

level1.level2.level3('parameter1');

接口文档

api.accessUrl(parameters) 入口链接

类型

同步函数

参数
  • code <String> 代码

api.channel.create(parameters) 创建渠道

类型

同步函数

参数
  • name <String> 名称

api.channel.delete(parameters) 删除渠道

类型

同步函数

参数
  • id <Array> 渠道ID

api.channel.edit(parameters) 编辑职位

类型

同步函数

参数
  • id <String> 职位ID
  • title <String> 职位名称
  • desc <String> 职位描述
  • requirement <String> 职位要求
  • company <String> 公司名称
  • location <String> 工作地点
  • salary_from <Number> 月薪起始范围
  • salary_to <Number> 月薪截止范围

api.channel.query(parameters) 查看渠道列表

类型

同步函数

参数
  • term 查询条件
  • skip <Number> 跳过条数
  • top <Number> 条数
  • sort <String> 排序规则

api.channel.read(parameters) 获取渠道详情

类型

同步函数

参数
  • id 编号

api.chat.create(parameters) 发送消息

类型

同步函数

参数
  • type <String> 记录类型
  • message <String> 消息内容
  • to <String> 接收方

api.chat.info(parameters) 查看会话基本信息

类型

同步函数

参数
  • target <String> 对象ID

api.chat.list(parameters) 查看会话列表

类型

同步函数

参数
  • term 查询条件
  • skip <Number> 跳过条数
  • top <Number> 条数
  • sort <String> 排序规则

api.chat.session(parameters) 查看会话内容

类型

同步函数

参数
  • target <String> 对象ID
  • term 查询条件
  • skip <Number> 跳过条数
  • top <Number> 条数
  • sort <String> 排序规则

api.distribute.copy(parameters) 复制分发内容

类型

同步函数

参数
  • id <Array> 信息ID

api.distribute.mark(parameters) 标记分发内容

类型

同步函数

参数
  • id <Array> 信息ID

api.distribute.query(parameters) 查看职位列表

类型

同步函数

参数
  • term 查询条件
  • skip <Number> 跳过条数
  • top <Number> 条数
  • sort <String> 排序规则

api.post.create(parameters) 发布信息

类型

同步函数

参数
  • content <String> 内容

api.post.delete(parameters) 删除信息

类型

同步函数

参数
  • id <Array> 信息ID

api.post.edit(parameters) 编辑信息

类型

同步函数

参数
  • id <String> 信息ID
  • content <String> 内容

api.post.query(parameters) 查看信息列表

类型

同步函数

参数
  • term 查询条件
  • skip <Number> 跳过条数
  • top <Number> 条数

await event.context(parameters)

类型

异步函数

await event.middleware(parameters)

类型

异步函数

await event.serve(parameters)

类型

异步函数

17.1.83

4 years ago

17.1.80

4 years ago

17.1.81

4 years ago

17.1.82

4 years ago

17.1.78

4 years ago

17.1.79

4 years ago

17.1.76

4 years ago

17.1.77

4 years ago

17.1.73

4 years ago

17.1.74

4 years ago

17.1.75

4 years ago

17.1.70

4 years ago

17.1.71

4 years ago

17.1.72

4 years ago

17.1.67

4 years ago

17.1.68

4 years ago

17.1.69

4 years ago

17.1.65

4 years ago

17.1.66

4 years ago

17.1.64

4 years ago

17.1.61

4 years ago

17.1.62

4 years ago

17.1.63

4 years ago

17.1.60

4 years ago

17.1.54

4 years ago

17.1.55

4 years ago

17.1.56

4 years ago

17.1.57

4 years ago

17.1.51

4 years ago

17.1.52

4 years ago

17.1.53

4 years ago

17.1.58

4 years ago

17.1.59

4 years ago

17.1.50

4 years ago

17.1.43

4 years ago

17.1.44

4 years ago

17.1.45

4 years ago

17.1.46

4 years ago

17.1.40

4 years ago

17.1.41

4 years ago

17.1.42

4 years ago

17.1.47

4 years ago

17.1.48

4 years ago

17.1.49

4 years ago

17.1.39

4 years ago

17.1.37

4 years ago

17.1.38

4 years ago

17.1.33

4 years ago

17.1.34

4 years ago

17.1.35

4 years ago

17.1.36

4 years ago

17.1.32

4 years ago

17.1.31

4 years ago

17.1.29

4 years ago

17.1.30

4 years ago

17.1.23

4 years ago

17.1.24

4 years ago

17.1.25

4 years ago

17.1.26

4 years ago

17.1.27

4 years ago

17.1.28

4 years ago

17.1.22

4 years ago

17.1.21

4 years ago

17.1.20

4 years ago

17.1.18

4 years ago

17.1.19

4 years ago

17.1.14

4 years ago

17.1.15

4 years ago

17.1.16

4 years ago

17.1.17

4 years ago

17.1.12

4 years ago

17.1.11

4 years ago

17.1.9

4 years ago

17.1.8

4 years ago

17.1.7

4 years ago

17.1.4

4 years ago

17.1.6

4 years ago

17.1.5

4 years ago

17.1.2

4 years ago

17.1.1

4 years ago

17.1.3

4 years ago

17.1.0

4 years ago

17.0.10

4 years ago

17.0.11

4 years ago

17.0.7

4 years ago

17.0.6

4 years ago

17.0.9

4 years ago

17.0.8

4 years ago

17.0.5

4 years ago

17.0.4

4 years ago

17.0.3

4 years ago

17.0.2

4 years ago

17.0.1

4 years ago

17.0.0

4 years ago