当前位置:网站首页>From 0 to 1: Development notes of voting applet based on cloud development
From 0 to 1: Development notes of voting applet based on cloud development
2022-07-28 17:51:00 【InfoQ】
Business background
Functional design

Data design
- vote: Main voting table
- vote_join: Voting details table
- user: User table
- news : Dynamic table
- fav: Collection table
- admin : Administrator table
- admin_log: Administrator operation log table
- setup : Setup table
VoteModel.DB_STRUCTURE = {
_pid: 'string|true',
VOTE_ID: 'string|true',
VOTE_TITLE: 'string|true|comment= title ',
VOTE_STATUS: 'int|true|default=1|comment= state 0= not enabled ,1= In the use ',
VOTE_CATE_ID: 'string|true|default=0|comment= classification ',
VOTE_CATE_NAME: 'string|false|comment= Classification redundancy ',
VOTE_IS_REG: 'int|true|default=0|comment= Do you need to register ',
VOTE_SHOW_START: 'int|true|default=0|comment= Whether to show the start time ',
VOTE_START: 'int|true|comment= Starting time ',
VOTE_END: 'int|true|comment= By the time ',
VOTE_THEME: 'int|true|default=0|comment= The theme ',
VOTE_ORDER: 'int|true|default=9999',
VOTE_VOUCH: 'int|true|default=0',
VOTE_ITEM: 'array|false|default=[]|comment= Voting items [{label= name ,cnt= Number ,pic= picture }]',
VOTE_TYPE: 'int|true|default=1|comment= Pattern 0= The entire 1= Daily available ',
VOTE_MAX_CNT: 'int|true|default=3|comment= Total number of votes available ',
VOTE_FORMS: 'array|true|default=[]',
VOTE_OBJ: 'object|true|default={}',
VOTE_QR: 'string|false',
VOTE_VIEW_CNT: 'int|true|default=0',
VOTE_USER_CNT: 'int|true|default=0',
VOTE_CNT: 'int|true|default=0',
VOTE_ADD_TIME: 'int|true',
VOTE_EDIT_TIME: 'int|true',
VOTE_ADD_IP: 'string|false',
VOTE_EDIT_IP: 'string|false',
};
Voting details table design
VoteJoinModel.DB_STRUCTURE = {
_pid: 'string|true',
VOTE_JOIN_ID: 'string|true',
VOTE_JOIN_USER_ID: 'string|true|comment= user ID',
VOTE_JOIN_VOTE_ID: 'string|true|comment= vote PK',
VOTE_JOIN_IDX: 'int|true|comment= Index of voting items ',
VOTE_JOIN_DAY: 'string|true|comment= Voting date ',
VOTE_JOIN_VOTE_TITLE: 'string|true|comment= Redundant voting items ',
VOTE_JOIN_ITEM_LABEL: 'string|true|comment= Redundant voting options ',
VOTE_JOIN_ADD_TIME: 'int|true',
VOTE_JOIN_EDIT_TIME: 'int|true',
VOTE_JOIN_ADD_IP: 'string|false',
VOTE_JOIN_EDIT_IP: 'string|false',
};
The core processes

UI Design





Backstage design





The source code to share
边栏推荐
- 2022 IDEA (学生邮箱认证)安装使用教程以及基础配置教程
- 7-8 浪漫侧影(25分)建树+新解题思路
- [advanced C language] - function pointer
- [advanced C language] - Advanced pointer [i]
- [C language note sharing] custom type: structure, enumeration, Union (recommended Collection)
- Visual object class introduces Pascal VOC dataset
- [p5.js] practical exercise - irregular symmetry
- 2021 National Undergraduate data statistics and Analysis Competition
- 阿里云天池大赛赛题解析(深度学习篇)--阅读笔记1--赛题一
- 【Unity FPS】教程 | 使用Unity制作第一人称角色控制器
猜你喜欢

How to upload a project to the code cloud using idea

点云处理---kd-tree

MySQL optimization summary

Database performance analysis and optimization (internal training materials of Aite future team)

封装、继承、多态

如何安装ps的滤镜插件

JVM performance tuning

Vscode intranet access server

怎样将IDEA与码云进行绑定

USB virtual serial port (CDC) limit speed test
随机推荐
阿里云天池大赛赛题解析(深度学习篇)--阅读笔记1--赛题一
都说软件测试是IT行业最差的,是这样的吗?
leetcode系统性刷题(三)-------二叉树、二分查找
@Detailed explanation of requestmapping
Jerry ac692x --- matrix keyboard addition
[C language note sharing] custom type: structure, enumeration, Union (recommended Collection)
点云处理--voxel filter
DOS command Daquan basic command + network common command
An article takes you closer to the overview and principle of kubernetes
【C语言进阶】——指针进阶[Ⅰ]
Visual object class introduces Pascal VOC dataset
USB virtual serial port (CDC) limit speed test
ROS custom message and use
【机器学习笔记】Regularization : Ridge Regression(岭回归)
电脑充不进去电的解决方法
中南大学研究生复试机试题
电工学自学笔记1.21
Mmcv installation method
Collection集合
IDEA报错Error running ‘Application‘ Command line is too long解决方案