UNPKG
workplus-api
Version:
latest (1.0.10)
1.0.10
1.0.9
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
WorkPlus API For Node
github.com/xiaokaceng/workplus-api
xiaokaceng/workplus-api
workplus-api
/
lib
/
image.js
22 lines
(16 loc)
•
328 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/** * Created by luomin on 16/7/7. */
'use strict'
;
let
Client
=
require
(
'./client'
);
class
Image
{
constructor
(
file
) {
this
.
file
= file; }
upload
(
params
) {
return
Client
.
uploadImage
(
this
.
file
, params).
then
(
data
=>
{
return
data.
result
; }); } }
module
.
exports
=
Image
;