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

5 years ago

17.1.62

5 years ago

17.1.63

5 years ago

17.1.60

5 years ago

17.1.54

5 years ago

17.1.55

5 years ago

17.1.56

5 years ago

17.1.57

5 years ago

17.1.51

5 years ago

17.1.52

5 years ago

17.1.53

5 years ago

17.1.58

5 years ago

17.1.59

5 years ago

17.1.50

5 years ago

17.1.43

5 years ago

17.1.44

5 years ago

17.1.45

5 years ago

17.1.46

5 years ago

17.1.40

5 years ago

17.1.41

5 years ago

17.1.42

5 years ago

17.1.47

5 years ago

17.1.48

5 years ago

17.1.49

5 years ago

17.1.39

5 years ago

17.1.37

5 years ago

17.1.38

5 years ago

17.1.33

5 years ago

17.1.34

5 years ago

17.1.35

5 years ago

17.1.36

5 years ago

17.1.32

5 years ago

17.1.31

5 years ago

17.1.29

5 years ago

17.1.30

5 years ago

17.1.23

5 years ago

17.1.24

5 years ago

17.1.25

5 years ago

17.1.26

5 years ago

17.1.27

5 years ago

17.1.28

5 years ago

17.1.22

5 years ago

17.1.21

5 years ago

17.1.20

5 years ago

17.1.18

5 years ago

17.1.19

5 years ago

17.1.14

5 years ago

17.1.15

5 years ago

17.1.16

5 years ago

17.1.17

5 years ago

17.1.12

5 years ago

17.1.11

5 years ago

17.1.9

5 years ago

17.1.8

5 years ago

17.1.7

5 years ago

17.1.4

5 years ago

17.1.6

5 years ago

17.1.5

5 years ago

17.1.2

5 years ago

17.1.1

5 years ago

17.1.3

5 years ago

17.1.0

5 years ago

17.0.10

5 years ago

17.0.11

5 years ago

17.0.7

5 years ago

17.0.6

5 years ago

17.0.9

5 years ago

17.0.8

5 years ago

17.0.5

5 years ago

17.0.4

5 years ago

17.0.3

5 years ago

17.0.2

5 years ago

17.0.1

5 years ago

17.0.0

5 years ago