luban-h5 / springboot2-jpa-api-for-luban Goto Github PK
View Code? Open in Web Editor NEW[WIP] #!zh: 为鲁班H5 提供 由 Spring Boot 驱动的后端 API
License: MIT License
[WIP] #!zh: 为鲁班H5 提供 由 Spring Boot 驱动的后端 API
License: MIT License
为什么要mysql5.7 我只有mysql5.6.。。
基于某个模版创建新作品
伪代码:
/**
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": []
}
欢迎认领此 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": []
}
},
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.