Comments (4)
Discussion:从用户角度出发,是否应该让前端把“天数”改成“寄养结束时间”?
是的,寄养结束时间更好,你说的对,其实数据库底层弄个视图就可以。但数据库需要修改
(前端真的好任性,我修改数据库还得考虑好多数据库设计的细节)
前端接口有问题,打回去修改:
- 单纯的宠物名容易出现重名现象,现在想到两种方案:
- 必须用宠物ID
- 输入宠物的昵称前几位,就会根据正则匹配显示出符合条件的宠物的肖像、昵称、UID(我觉得这种更好,不知道前端能不能在输入框输入时触发查询事件)。
- desc是降序,备注应该是remark/note
- radio3应该是size_radio,为了可读性。
- 宠物类型指原有pet表的breed吗,如果是,那就不用传入type了,否则,前端需要说明想到的宠物类型有哪些。
- 补充需要寄养的房间,可以考虑不补充,然后由系统自动分配。
from tongjipetwelfare.
Discussion:从用户角度出发,是否应该让前端把“天数”改成“寄养结束时间”?
是的,寄养结束时间更好,你说的对,其实数据库底层弄个视图就可以。但数据库需要修改 (前端真的好任性,我修改数据库还得考虑好多数据库设计的细节)
前端接口有问题,打回去修改:
- 单纯的宠物名容易出现重名现象,现在想到两种方案:
- 必须用宠物ID
- 输入宠物的昵称前几位,就会根据正则匹配显示出符合条件的宠物的肖像、昵称、UID(我觉得这种更好,不知道前端能不能在输入框输入时触发查询事件)。
- desc是降序,备注应该是remark/note
- radio3应该是size_radio,为了可读性。
- 宠物类型指原有pet表的breed吗,如果是,那就不用传入type了,否则,前端需要说明想到的宠物类型有哪些。
- 补充需要寄养的房间,可以考虑不补充,然后由系统自动分配。
我去那边开个issue?🤔
from tongjipetwelfare.
不用了,我已经code review,但之后还需要review
from tongjipetwelfare.
public static void CensorFoster(int censorstate=0,int Limitrow = -1, string Orderby = null);//展示待审核/审核通过/未通过的界面等
public static int ApplyFoster(string UID, string Petname,string Breed,string size, DateTime dateTime, int duration, string remark);//申请寄养
public static void Censorship(string UID, int PID, DateTime date,int censorcode);//审核寄养
以上3个接口已经编写完成,请查看这三处代码的diff与主仓库的Draft PR #8
JSON文件也已更新。
- 孟负责剩余错误逻辑的处理,往JSON里添加必要的错误处理数组,但是要看清楚之前已经有的不要再添加。
- 葛一飞负责前后端接口,多余或缺少先用假设值,然后再在这个issue里提出来不一致的部分。
from tongjipetwelfare.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tongjipetwelfare.