UserDTO.raml 296 B

12345678910111213141516
  1. #%RAML 1.0 DataType
  2. # UserDTO
  3. type: object
  4. properties:
  5. username:
  6. pattern: [0-9a-zA-Z]{4,16}
  7. description: 用户名
  8. role:
  9. type: UserIdentity
  10. description: 用户角色
  11. email:
  12. pattern: ^.+@.+\..+$
  13. description: 邮箱
  14. nickname:
  15. type: string
  16. description: 昵称