Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

第一步分工安排 #2

Open
funkyLover opened this issue Apr 26, 2014 · 2 comments
Open

第一步分工安排 #2

funkyLover opened this issue Apr 26, 2014 · 2 comments

Comments

@funkyLover
Copy link
Member

由于我的懒惰,迟迟不能开工
现在就装装b用 issue 发布分工

@fritx 负责做出主页基本架构样式,登陆页(分普通用户登陆 和 管理员登陆)
@eyescantsee 辅助林亮
接口于config文件夹中的routes.js中给出

//登陆页
'/login': {
view: 'home/login'
},

/用户登陆与登出/
'post /login' : {
controller : 'state',
action : 'login'
},

'post /logout' : {
controller: 'state',
action: 'logout'
}

我和@YuJianSirius 负责后台登陆登出功能,
@IamJayden 辅助
就这样

@fritx
Copy link
Member

fritx commented Apr 26, 2014

OK 在这里明确一下 model User 的细节

attributes: {
    id : 'string',
    password : 'string',
    name : 'string',
    nickname: {
      type : 'string',
      maxLength : '20',
      minLength : '5'
    },
    gender : 'string',
    class : 'string',
    dataInSchool : 'DATE',
    dormNo : 'string',
    email: {
      type : 'email',
      required : true
    },
    phone: {
      type : 'string',
      required : true
    }
  }
  1. dataInSchool 为何用 Date?
  2. dateInSchool instead?
  3. gender, dormNo 的格式是?
  4. 建议 email, phone 不要 required, 方便测试和使用

@funkyLover
Copy link
Member Author

@fritx
dataInSchool是为了区分开已毕业和未毕业的学生,
目前还在考虑是不是真的需要这个属性
gender为 男 或 女
dormNo格式为 XX-XXX 如 16-308,
email,phone就先不要required
还用 id即为我们学号,同时作为用户名也作为id标示

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants