2017-01-24 16:21:14 +08:00
|
|
|
|
INSERT INTO `Request` VALUES (1,'POST','User','{\"disallowColumns\":\"id\", \"necessaryColumns\":\"name,phone\"}',NULL),(2,'POST','Work','{\"disallowColumns\":\"id\", \"necessaryColumns\":\"userId,title,content,picture\"}',NULL),(3,'POST','Comment','{\"disallowColumns\":\"id\", \"necessaryColumns\":\"userId,workId,content\"}',NULL),(4,'PUT','User','{\"disallowColumns\":\"phone\", \"necessaryColumns\":\"id\"}',NULL),(6,'PUT','userPhone','{\"User\":{\"disallowColumns\":\"!\", \"necessaryColumns\":\"id,phone\"}}','! 表示其它所有,这里指necessaryColumns所有未包含的字段'),(7,'DELETE','Work','{\"id\":\"\", \"currentUserId\":\"\", \"loginPassword\":\"\"}',NULL),(8,'DELETE','Comment','{\"id\":\"\", \"currentUserId\":\"\", \"loginPassword\":\"\"}',NULL),(9,'PUT','loginPassword','{\"currentUserId\":\"\", \"oldPassword\":\"\", \"newPassword\":\"\"}',NULL),(10,'PUT','payPassword','{\"currentUserId\":\"\", \"oldPassword\":\"\", \"newPassword\":\"\"}',NULL),(12,'DELETE','Work','{\"disallowColumns\":\"!\", \"necessaryColumns\":\"id\"}',NULL),(13,'POST','WorkWithComment','{\"Work\":{\"disallowColumns\":\"id\", \"necessaryColumns\":\"userId,title,content,picture\", \"Comment\":{\"disallowColumns\":\"id\", \"necessaryColumns\":\"userId,workId,content\"}}}','用的极少,可能根本用不上'),(14,'DELETE','Comment[]','{table:\"Comment\", \"id[]\":\",\"}','用的极少。多个table不好处理'),(15,'POST','User[]','{\"id[]\":\",\"}','用的比较少,导入联系人、添加进群常用。特殊处理:服务端指定table'),(16,'POST','User[]','{\"[]\":{\"User\":{\"id\":\"\"}}}','不用RequetParser,用单独的方法批量处理'),(17,'POST','User[]','{\"User\":[\"id\":\"\"]}','解释成16这种'),(18,'DELETE','User','{\"disallowColumns\":\"!\", \"necessaryColumns\":\"id\"}',NULL);
|