当前位置:网站首页>从0到1:基于云开发的投票小程序开发笔记
从0到1:基于云开发的投票小程序开发笔记
2022-07-28 16:36:00 【InfoQ】
业务背景
功能设计

数据设计
- vote: 投票主表
- vote_join: 投票详情表
- user: 用户表
- news : 动态表
- fav: 收藏表
- admin : 管理员表
- admin_log: 管理员操作日志表
- setup : 设置表
VoteModel.DB_STRUCTURE = {
_pid: 'string|true',
VOTE_ID: 'string|true',
VOTE_TITLE: 'string|true|comment=标题',
VOTE_STATUS: 'int|true|default=1|comment=状态 0=未启用,1=使用中',
VOTE_CATE_ID: 'string|true|default=0|comment=分类',
VOTE_CATE_NAME: 'string|false|comment=分类冗余',
VOTE_IS_REG: 'int|true|default=0|comment=是否需要注册',
VOTE_SHOW_START: 'int|true|default=0|comment=是否展示开始时间',
VOTE_START: 'int|true|comment=开始时间',
VOTE_END: 'int|true|comment=截止时间',
VOTE_THEME: 'int|true|default=0|comment=主题',
VOTE_ORDER: 'int|true|default=9999',
VOTE_VOUCH: 'int|true|default=0',
VOTE_ITEM: 'array|false|default=[]|comment=投票项目 [{label=名称,cnt=数量,pic=图片}]',
VOTE_TYPE: 'int|true|default=1|comment=模式 0=全程 1=每日可投',
VOTE_MAX_CNT: 'int|true|default=3|comment=可投总票数',
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',
};
投票详情表设计
VoteJoinModel.DB_STRUCTURE = {
_pid: 'string|true',
VOTE_JOIN_ID: 'string|true',
VOTE_JOIN_USER_ID: 'string|true|comment=用户ID',
VOTE_JOIN_VOTE_ID: 'string|true|comment=投票PK',
VOTE_JOIN_IDX: 'int|true|comment=投票项目索引',
VOTE_JOIN_DAY: 'string|true|comment=投票日期',
VOTE_JOIN_VOTE_TITLE: 'string|true|comment=投票项目冗余',
VOTE_JOIN_ITEM_LABEL: 'string|true|comment=投票选项冗余',
VOTE_JOIN_ADD_TIME: 'int|true',
VOTE_JOIN_EDIT_TIME: 'int|true',
VOTE_JOIN_ADD_IP: 'string|false',
VOTE_JOIN_EDIT_IP: 'string|false',
};
核心流程

UI设计





后台设计





源码分享
边栏推荐
猜你喜欢

Jerry ac692n --- prompt tone compression and modification

USB virtual serial port (CDC) limit speed test
@RequestMapping详解

R语言画图/绘图/作图2

Public medical database
![[C language note sharing] custom type: structure, enumeration, Union (recommended Collection)](/img/25/4a17c260b2b506ae1224520d9b85d1.png)
[C language note sharing] custom type: structure, enumeration, Union (recommended Collection)

MySQL与IDEA连接

【机器学习笔记】Regularization : Ridge Regression(岭回归)

.net动态调用webservice的三种方式

Please make sure you have the correct access rights and the repository exists.
随机推荐
编译原理学习笔记1(编译原理概述与词法分析)
.net MVC understanding
小白必看的软件测试发展路线
【C语言进阶】——剖析入微数据在内存中的存储 【下】(浮点数存储)
【C语言笔记分享】自定义类型:结构体,枚举,联合(建议收藏)
.net动态调用webservice的三种方式
Hgu95av2. Online installation failed
Jerry ac692x --- matrix keyboard addition
Jerry ac1082/1074/1090 development record
软件测试工作内容太简单怎么办?
都说软件测试是IT行业最差的,是这样的吗?
Multithreading (ThreadPoolExecutor of thread pool)
软件测试培训机构可靠吗?
零基础软件测试培训可靠吗?
【p5.js】实战练习——无规则对称
Adding new objects to the object array in JS results in the modification of existing objects in the array
[advanced C language] - function pointer
PCA reports error in eigen (crossprod (t (x), t (x)), symmetric = true): 'x' has infinite value or missing value
想学习软件测试,零基础去哪里学呢?
DOS command Daquan basic command + network common command