Path: /user/login
Method: POST
Body-Type: urlencoded
Parameter: [phone, password]
Path: /share/publish
Method: POST
Body-Type: urlencoded
Parameter: [title, description]
Path: /share/allmypublish
Method: GET
Body-Type: null
Parameter: null
Path: /share/allhispublish
Method: GET
Body-Type: null
Parameter: [uid]
Path: /share/friendspublish
Method: GET
Body-Type: null
Parameter: null
Path: /share/getpublish
Method: GET
Body-Type: null
Parameter: [id]
Path: /filetransfer/newShareImg
Method: POST
Body-Type: form-data
Parameter: [file, shareRecordId]
Path: /filetransfer/addShareImg
Method: POST
Body-Type: form-data
Parameter: [file, shareRecordId]
Path: /filetransfer/download
Method: GET
Body-Type: null
Parameter: [recordid, filename]
Path: /share/deletepublish
Method: GET
Body-Type: null
Parameter: [id]
Path: /user/follow
Method: GET
Body-Type: null
Parameter: [id]
解释:id为被关注用户的id
Path: /user/unfollow
Method: GET
Body-Type: null
Parameter: [id]
解释:id为被关注用户的id
Path: /user/getfollowing
Method: GET
Body-Type: null
Parameter: null
Path: /user/getfollower
Method: GET
Body-Type: null
Parameter: null
Path: /user/searchuser
Method: GET
Body-Type: null
Parameter: [keyword]
Path:/user/getuserinfo
Method: GET
Body-Type: null
Parameter: [id]
Path: /filetransfer/uploadprofilepic
Method: POST
Body-Type: form-data
Parameter: [file]
Path: /filetransfer/downloadprofilepic
Method: GET
Body-Type: null
Parameter: [uid]
Path: /share/allhispublish
Method: GET
Body-Type: null
Parameter: [uid]
Path: /share/friendspublish
Method: GET
Body-Type: null
Parameter: null
DROP TABLE IF EXISTS `share_records_img_relation`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `share_records_img_relation` (
`id` int NOT NULL AUTO_INCREMENT,
`share_record_id` varchar(50) NOT NULL,
`file_name` varchar(100) NOT NULL DEFAULT '',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `user_info`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `user_info` (
`id` int NOT NULL AUTO_INCREMENT,
`phone` varchar(20) NOT NULL DEFAULT '',
`username` varchar(20) NOT NULL DEFAULT '',
`password` varchar(100) NOT NULL DEFAULT '',
`nickname` varchar(100) NOT NULL DEFAULT '',
`gender` tinyint NOT NULL DEFAULT '0',
`age` int NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `phone_UNIQUE` (`phone`),
UNIQUE KEY `username_UNIQUE` (`username`)
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8;