| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- package storage
- import (
- "dashoo.cn/opms_libary/multipart"
- "dashoo.cn/opms_libary/plugin/dingtalk/base"
- "dashoo.cn/opms_libary/plugin/dingtalk/context"
- )
- const (
- FormSchemasUrl = "/v1.0/workflow/forms/schemas/processCodes"
- ProcessInstanceUrl = "/v1.0/workflow/processInstances"
- )
- //Storage OA审批
- type Storage struct {
- base.Base
- }
- //NewStorage init
- func NewStorage(context *context.Context) *Storage {
- material := new(Storage)
- material.Context = context
- return material
- }
- //QueryFileUploadInfo 获取文件上传信息
- func (w *Storage) QueryFileUploadInfo(spaceId, unionId string) (response QueryFileUploadInfoResponse, err error) {
- return response, err
- }
- //UploadFile 使用OSS的header加签方式上传文件息
- func (w *Storage) UploadFile(url string, headers map[string]string, file *multipart.MultipartFile) (code int64, err error) {
- return 0, err
- }
- //CommitFile 提交文件
- func (w *Storage) CommitFile(uploadKey, filename, parentId string) (response CommitFileResponse, err error) {
- return response, err
- }
|