diff --git "a/mysql/\346\226\260\344\272\272\346\264\276\345\257\271\347\224\263\350\257\267.sql" "b/mysql/\346\226\260\344\272\272\346\264\276\345\257\271\347\224\263\350\257\267.sql" new file mode 100644 index 0000000000000000000000000000000000000000..587d67a6ce1a5314b65d076d7e2f725411ff04d5 --- /dev/null +++ "b/mysql/\346\226\260\344\272\272\346\264\276\345\257\271\347\224\263\350\257\267.sql" @@ -0,0 +1,14 @@ +CREATE TABLE `invite_apply` ( + `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id', + `user_id` bigint NOT NULL COMMENT '发起申请者', + `new_user_id` bigint NOT NULL COMMENT '被邀请的人', + `platform` tinyint unsigned NOT NULL COMMENT '从那个平台过来', + `status` tinyint unsigned NOT NULL COMMENT '状态1.未接受2.已接受3.拒接导致退费4.过期导致退费', + `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, + `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, + PRIMARY KEY (`id`), + KEY `uid_idx` (`user_id`) USING BTREE, + KEY `uid2_idx` (`invite_user_id`) USING BTREE, + KEY `status_idx` (`status`) USING BTREE, + KEY `created_time` (`created_time`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='新人邀请申请'; \ No newline at end of file diff --git a/route/invite_r/party_invite.go b/route/invite_r/party_invite.go new file mode 100644 index 0000000000000000000000000000000000000000..efbf88b8b030ecd390e3a6d5b046480c5d53c5f9 --- /dev/null +++ b/route/invite_r/party_invite.go @@ -0,0 +1,16 @@ +package invite_r + +import ( + "git.hilo.cn/hilo-common/mycontext" + "github.com/gin-gonic/gin" +) + +// @Tags 新人排队申请 +// @Summary 提交申请 +// @Param externalId formData string true "对方的externalId" +// @Param type formData int true "类型1.撤销2.接受" +// @Success 200 +// @Router /v2/cp/relation/cancel/reply [post] +func InvitePartyReply(c *gin.Context) (*mycontext.MyContext, error) { + +}