您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

images.js 516B

1234567891011121314151617181920212223
  1. /**
  2. * Created by robin on 4/22/16.
  3. */
  4. (function()
  5. {
  6. angular.module("appSdk").factory("ImagesBusiness", ['ImagesDataAccess', '$q', function (ImagesDataAccess, $q) {
  7. var Business = {};
  8. Business.getAll = ImagesDataAccess.getAll;
  9. Business.delete = ImagesDataAccess.delete;
  10. Business.upload = function(data, promise)
  11. {
  12. data.image = btoa(data.image);
  13. return ImagesDataAccess.upload(data, promise);
  14. };
  15. return Business;
  16. }])
  17. })();