post.d.ts 1005 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /**
  2. * 发钉 请求参数定义
  3. * @apiName biz.ding.post
  4. */
  5. export interface IBizDingPostParams {
  6. /** 用户列表,工号 */
  7. users: string[];
  8. /** 企业id */
  9. corpId: string;
  10. /** 附件类型 1:image 2:link */
  11. type: 1 | 2;
  12. /** 钉发送方式 0:电话, 1:短信, 2:应用内 */
  13. alertType?: 0 | 1 | 2;
  14. alertDate?: {
  15. /** yyyy-MM-dd HH:mm */
  16. format: string;
  17. /** 2015-05-09 08:00 */
  18. value: string;
  19. };
  20. /** 附件信息 */
  21. attachment?: {
  22. images: string[];
  23. } | {
  24. title: string;
  25. url: string;
  26. image: string;
  27. text: string;
  28. };
  29. /** 正文 */
  30. text?: string;
  31. }
  32. /**
  33. * 发钉 返回结果定义
  34. * @apiName biz.ding.post
  35. */
  36. export interface IBizDingPostResult {
  37. }
  38. /**
  39. * 发钉
  40. * @apiName biz.ding.post
  41. * @supportVersion pc: 3.0.0 ios: 2.4.0 android: 2.4.0
  42. */
  43. export declare function post$(params: IBizDingPostParams): Promise<IBizDingPostResult>;
  44. export default post$;