# Generated with protoc-gen-openapi # https://github.com/google/gnostic/tree/master/cmd/protoc-gen-openapi openapi: 3.0.3 info: title: "" version: 0.0.1 paths: /douyin/comment/action: post: tags: - CommentService operationId: CommentService_CommentAction requestBody: content: application/json: schema: $ref: '#/components/schemas/api.comment.v1.CommentActionRequest' required: true responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/api.comment.v1.CommentActionResponse' /douyin/comment/list: get: tags: - CommentService operationId: CommentService_CommentList parameters: - name: token in: query schema: type: string - name: videoId in: query schema: type: integer format: int64 responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/api.comment.v1.CommentListResponse' /douyin/favorite/action: post: tags: - FavoriteService operationId: FavoriteService_FavoriteAction requestBody: content: application/json: schema: $ref: '#/components/schemas/favorite.v1.ActionRequest' required: true responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/favorite.v1.ActionResponse' /douyin/favorite/list: get: tags: - FavoriteService operationId: FavoriteService_FavoriteList parameters: - name: userId in: query schema: type: string - name: token in: query schema: type: string responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/favorite.v1.ListResponse' /douyin/feed: get: tags: - FeedService operationId: FeedService_GetFeed parameters: - name: latestTime in: query schema: type: string - name: token in: query schema: type: string responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/video.v1.FeedResponse' /douyin/message/action: post: tags: - MessageService operationId: MessageService_MessageAction requestBody: content: application/json: schema: $ref: '#/components/schemas/api.message.v1.RelationActionRequest' required: true responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/api.message.v1.RelationActionResponse' /douyin/message/chat: get: tags: - MessageService operationId: MessageService_MessageChat parameters: - name: token in: query schema: type: string - name: to_user_id in: query schema: type: integer format: int64 - name: preMsgTime in: query schema: type: integer format: int64 responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/api.message.v1.MessageChatResponse' /douyin/publish/list: get: tags: - FeedService operationId: FeedService_PublishList parameters: - name: token in: query schema: type: string - name: userId in: query schema: type: string responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/video.v1.ListResponse' /douyin/relation/action: post: tags: - RelationService operationId: RelationService_RelationAction requestBody: content: application/json: schema: $ref: '#/components/schemas/relation.v1.Douyin_relation_action_request' required: true responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/relation.v1.Douyin_relation_action_response' /douyin/relation/follow/list: get: tags: - RelationService operationId: RelationService_RelationFollowList parameters: - name: userId in: query schema: type: string - name: token in: query schema: type: string responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/relation.v1.Douyin_relation_follow_list_response' /douyin/relation/follower/list: get: tags: - FansService operationId: FansService_FollowerList parameters: - name: userId in: query schema: type: integer format: int64 - name: token in: query schema: type: string responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/api.fans.v1.FollowerListResponse' /douyin/relation/friend/list: get: tags: - FansService operationId: FansService_FriendList parameters: - name: userId in: query schema: type: integer format: int64 - name: token in: query schema: type: string responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/api.fans.v1.FriendListResponse' /douyin/user: get: tags: - UserService operationId: UserService_Profile parameters: - name: user_id in: query schema: type: string - name: token in: query schema: type: string responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/user.v1.UserProfileResponse' /douyin/user/login: post: tags: - UserService operationId: UserService_Login requestBody: content: application/json: schema: $ref: '#/components/schemas/user.v1.UserRequest' required: true responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/user.v1.UserResponse' /douyin/user/register: post: tags: - UserService operationId: UserService_Register requestBody: content: application/json: schema: $ref: '#/components/schemas/user.v1.UserRequest' required: true responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/user.v1.UserResponse' components: schemas: api.comment.v1.Comment: type: object properties: id: type: integer format: int64 user: $ref: '#/components/schemas/api.comment.v1.User' content: type: string createDate: type: string api.comment.v1.CommentActionRequest: type: object properties: token: type: string videoId: type: integer format: int64 actionType: type: integer format: int32 commentText: type: string commentId: type: integer format: int64 api.comment.v1.CommentActionResponse: type: object properties: statusCode: type: integer format: int32 statusMsg: type: string comment: $ref: '#/components/schemas/api.comment.v1.Comment' api.comment.v1.CommentListResponse: type: object properties: statusCode: type: integer format: int32 statusMsg: type: string commentList: type: array items: $ref: '#/components/schemas/api.comment.v1.Comment' api.comment.v1.User: type: object properties: id: type: integer format: int64 name: type: string followCount: type: integer format: int64 followerCount: type: integer format: int64 isFollow: type: boolean avatar: type: string backgroundImage: type: string signature: type: string totalFavorited: type: integer format: int64 workCount: type: integer format: int64 favoriteCount: type: integer format: int64 api.fans.v1.FollowerListResponse: type: object properties: statusCode: type: integer format: int32 statusMsg: type: string userList: type: array items: $ref: '#/components/schemas/api.fans.v1.User' api.fans.v1.FriendListResponse: type: object properties: statusCode: type: integer format: int32 statusMsg: type: string userList: type: array items: $ref: '#/components/schemas/api.fans.v1.User' api.fans.v1.User: type: object properties: id: type: integer format: int64 name: type: string followCount: type: integer format: int64 followerCount: type: integer format: int64 isFollow: type: boolean avatar: type: string backgroundImage: type: string signature: type: string totalFavorited: type: integer format: int64 workCount: type: integer format: int64 favoriteCount: type: integer format: int64 message: type: string msgType: type: integer format: int64 api.message.v1.Message: type: object properties: id: type: integer format: int64 to_user_id: type: integer format: int64 from_user_id: type: integer format: int64 content: type: string create_time: type: string api.message.v1.MessageChatResponse: type: object properties: status_code: type: integer format: int32 status_msg: type: string message_list: type: array items: $ref: '#/components/schemas/api.message.v1.Message' api.message.v1.RelationActionRequest: type: object properties: token: type: string to_user_id: type: integer format: int64 action_type: type: integer format: int32 content: type: string api.message.v1.RelationActionResponse: type: object properties: status_code: type: integer format: int32 status_msg: type: string favorite.v1.ActionRequest: type: object properties: token: type: string videoId: type: string actionType: type: string favorite.v1.ActionResponse: type: object properties: statusCode: type: integer format: uint32 statusMsg: type: string favorite.v1.Author: type: object properties: id: type: integer format: uint64 name: type: string followCount: type: integer format: uint32 followerCount: type: integer format: uint32 isFollow: type: boolean avatar: type: string backgroundImage: type: string signature: type: string totalFavorited: type: integer format: uint32 workCount: type: integer format: uint32 favoriteCount: type: integer format: uint32 favorite.v1.FeedList: type: object properties: id: type: integer format: uint64 author: $ref: '#/components/schemas/favorite.v1.Author' playUrl: type: string coverUrl: type: string favoriteCount: type: integer format: uint32 commentCount: type: integer format: uint32 isFavorite: type: boolean title: type: string favorite.v1.ListResponse: type: object properties: statusCode: type: integer format: uint32 statusMsg: type: string videoList: type: array items: $ref: '#/components/schemas/favorite.v1.FeedList' relation.v1.Douyin_relation_action_request: type: object properties: token: type: string toUserId: type: integer format: int64 actionType: type: integer format: int32 relation.v1.Douyin_relation_action_response: type: object properties: statusCode: type: integer format: int32 statusMsg: type: string relation.v1.Douyin_relation_follow_list_response: type: object properties: statusCode: type: integer format: int32 statusMsg: type: string userList: type: array items: $ref: '#/components/schemas/relation.v1.User' relation.v1.User: type: object properties: id: type: integer format: int64 name: type: string followCount: type: integer format: int64 followerCount: type: integer format: int64 isFollow: type: boolean avatar: type: string backgroundImage: type: string signature: type: string totalFavorited: type: integer format: int64 workCount: type: integer format: int64 favoriteCount: type: integer format: int64 user.v1.User: type: object properties: id: type: integer format: uint64 name: type: string follow_count: type: integer format: uint32 follower_count: type: integer format: uint32 avatar: type: string description: bool is_follow = 5; // true-已关注,false-未关注 暂定不加 TODO background_image: type: string signature: type: string total_favorited: type: integer format: uint32 work_count: type: integer format: uint32 favorite_count: type: integer format: uint32 user.v1.UserProfileResponse: type: object properties: status_code: type: integer format: uint32 status_msg: type: string user: $ref: '#/components/schemas/user.v1.User' user.v1.UserRequest: type: object properties: username: type: string password: type: string user.v1.UserResponse: type: object properties: user_id: type: integer format: uint64 status_code: type: integer format: uint32 status_msg: type: string token: type: string video.v1.Author: type: object properties: id: type: integer format: uint64 name: type: string followCount: type: integer format: uint32 followerCount: type: integer format: uint32 isFollow: type: boolean avatar: type: string backgroundImage: type: string signature: type: string totalFavorited: type: integer format: uint32 workCount: type: integer format: uint32 favoriteCount: type: integer format: uint32 video.v1.FeedList: type: object properties: id: type: integer format: uint64 author: $ref: '#/components/schemas/video.v1.Author' playUrl: type: string coverUrl: type: string favoriteCount: type: integer format: uint32 commentCount: type: integer format: uint32 isFavorite: type: boolean title: type: string video.v1.FeedResponse: type: object properties: statusCode: type: integer format: uint32 statusMsg: type: string nextTime: type: integer format: uint64 videoList: type: array items: $ref: '#/components/schemas/video.v1.FeedList' video.v1.ListResponse: type: object properties: statusCode: type: integer format: uint32 statusMsg: type: string videoList: type: array items: $ref: '#/components/schemas/video.v1.FeedList' tags: - name: CommentService - name: FansService - name: FavoriteService - name: FeedService - name: MessageService - name: RelationService - name: UserService