Giter VIP home page Giter VIP logo

springboot2-jpa-api-for-luban's People

Contributors

acloudyh avatar ly525 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

springboot2-jpa-api-for-luban's Issues

cors proxy / 图片跨域代理

欢迎认领此 issue
welcome to fix this issue

参考资料:https://html2canvas.hertzen.com/proxy/
see more here

{
      // 图片代理,防止跨域
      // 主要是请求一些跨域图片的时候,先走API,API负责请求图片,用来解决跨域问题
      // 代码关键实现:return http.request(request.get.imgURL)
      "method": "GET",
      "path": "/works/cors-proxy",
      "handler": "Work.corsProxy",
      "config": {
        "policies": []
      }
    },

create Work based on Template / 基于模板创建作品

 基于某个模版创建新作品
 伪代码:
 /**
  templateWork = WorkModel.findOne(templateId).toJSON()
  newWork = templateWork.clone()
  newWork.title = newTitle || ''
  newWork.desc = newDesc || ''
  newWork.isTemplate = false  不是模版,是正常作品
  result = WorkModel.create(newWork)
  return result
 */
 Node.js 参考代码如下:
 https:github.com/ly525/luban-h5/blob/dev/back-end/h5-api/api/work/controllers/Work.js#L64-L71

"method": "POST",
"path": "/works/use-template/:id",
"handler": "Work.useTemplate",
"config": {
  "policies": []
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.