廢話很少說了,目的直接點css
- 微信上記錄一些資料(好比公司信息以及開發票等),方便查看
- 能夠隨時分享出來,能夠生成圖片海報
- 作一些工具(後續開放)
最後總結就是弄它,隨微記是本身想的,頁面也是本身佈局,海報的配置可能也有本身的喜愛存在node
目前版本爲V1.0.0,在此篇文章不會有代碼的東西mysql
認知(須要改善):ios
還有未完成的功能後續更新git
editor
作圖文內容,可是圖片必須是上傳到服務器以後,真機才支持顯示,並且還有一些兼容性的問題,可能後期會更改成editor雲開發數據主要的存儲是用戶的列表以及用戶筆記本和筆記的數據github
原本想用存圖片,初版本的時候遇到了圖片size限制的問題,所以近期改版爲上傳至阿里Ossredis
"dependencies": {
"@babel/polyfill": "^7.4.4",
"axios": "^0.19.0",
"debug": "^4.1.1",
"koa": "^2.7.0",
"koa-bodyparser": "^4.2.1",
"koa-convert": "^1.2.0",
"koa-generic-session": "^2.0.1",
"koa-json": "^2.0.2",
"koa-logger": "^3.2.0",
"koa-onerror": "^4.1.0",
"koa-redis": "^4.0.0",
"koa-router": "^7.4.0",
"koa-static": "^5.0.0",
"koa-swagger-decorator": "^1.5.16",
"koa-views": "^6.2.0",
"moment": "^2.24.0",
"mysql": "^2.17.1",
"pug": "^2.0.3"
},
"devDependencies": {
"@babel/cli": "^7.5.5",
"@babel/core": "^7.5.5",
"@babel/parser": "^7.5.5",
"@babel/plugin-proposal-class-properties": "^7.5.5",
"@babel/plugin-proposal-decorators": "^7.4.4",
"@babel/plugin-proposal-optional-chaining": "^7.2.0",
"@babel/plugin-transform-object-assign": "^7.2.0",
"@babel/plugin-transform-runtime": "^7.5.5",
"@babel/preset-env": "^7.5.5",
"@babel/register": "^7.5.5",
"cross-env": "^5.2.0",
"install": "^0.13.0",
"nodemon": "^1.19.1",
"npm": "^6.10.2"
}
複製代碼
const tag = tags(['WeChat']);
@prefix('/api/user')
export default class WechatRouter {
@request('post', '/authorize')
@summary('微信受權登陸')
@description('登陸以後返回sesscion和openid')
@tag
@body({
code: { type: 'string', required: true, default: '', description: '小程序code' },
})
static async authorize(ctx) {
let { code } = ctx.request.body;
let str = ctx.request.body?.code;
// console.log('開始訪問請求參數2', APPID, APPSECRET, str)
let res = await getOpenId(code);
ctx.body = new SuccessModal(res);
}
}
複製代碼
後續後開發圍繞微信和備忘錄的一系列的工具或者功能,歡迎指出不足和功能改善,或者你想要的功能sql
最後一句:若是想作個東西就是動手作,不要擔憂好很差用,要從中找到你缺少的地方和不成熟的地方,這樣對技術和產品就會多瞭解一點
曾經不少個點子在腦海中拂過,就是沒有動手作過
複製代碼