diff --git a/app/hdl/institutional_management/public_platoon/hdl_basic.go b/app/hdl/institutional_management/public_platoon/hdl_basic.go index bab6952..4b99991 100644 --- a/app/hdl/institutional_management/public_platoon/hdl_basic.go +++ b/app/hdl/institutional_management/public_platoon/hdl_basic.go @@ -506,7 +506,7 @@ func GetFreePublishUser(c *gin.Context) { // @Accept json // @Produce json // @param Authorization header string true "验证参数Bearer和token空格拼接" -// @Param req body md.AddFreePublishUserReq true "页数和行数必填,uid选填" +// @Param req body md.AddFreePublishUserReq true "免罚用户ID" // @Success 200 {int} "插入数据 ID" // @Failure 400 {object} md.Response "具体错误" // @Router /api/institutionalManagement/publicPlatoon/publicPlatoonUserFreePunish/save [post] @@ -556,6 +556,33 @@ func AddFreePublishUser(c *gin.Context) { e.OutSuc(c, id, nil) } +// DeleteFreePublishUser +// @Summary 制度中心-公排管理-免罚用户(删除) +// @Tags 公排管理 +// @Description 免罚用户(删除) +// @Accept json +// @Produce json +// @param Authorization header string true "验证参数Bearer和token空格拼接" +// @Param req body md.DeleteFreePublishUserReq true "免罚用户ID" +// @Success 200 {int} "删除数据数量" +// @Failure 400 {object} md.Response "具体错误" +// @Router /api/institutionalManagement/publicPlatoon/publicPlatoonUserFreePunish/delete [delete] +func DeleteFreePublishUser(c *gin.Context) { + var req *md.DeleteFreePublishUserReq + if err1 := c.ShouldBindJSON(&req); err1 != nil { + e.OutErr(c, e.ERR_INVALID_ARGS, err1.Error()) + return + } + + freePunishWithUserDb := implement.NewPublicPlatoonFreePunishWithUserDb(db.Db) + affected, err := freePunishWithUserDb.PublicPlatoonFreePunishWithUserDeleteOneByUID(utils.StrToInt64(req.Uid)) + if err != nil { + e.OutErr(c, e.ERR_DB_ORM, err.Error()) + return + } + e.OutSuc(c, affected, nil) +} + // ListCommunityDividends // @Summary 制度中心-公排管理-社区分红(查询) // @Tags 公排管理 diff --git a/app/hdl/member_center/hdl_level__management.go b/app/hdl/member_center/hdl_level__management.go index bbc808c..b1d4040 100644 --- a/app/hdl/member_center/hdl_level__management.go +++ b/app/hdl/member_center/hdl_level__management.go @@ -101,3 +101,41 @@ func UpdateLevel(c *gin.Context) { } e.OutSuc(c, affected, nil) } + +// DeleteLevel +// @Summary 制度中心-会员中心-等级管理(删除) +// @Tags 会员中心 +// @Description 等级管理(删除) +// @Accept json +// @Produce json +// @param Authorization header string true "验证参数Bearer和token空格拼接" +// @Param req body md.DeleteLevelReq true "需要删除的等级 ID" +// @Success 200 {int} "成功删除数据数量" +// @Failure 400 {object} md.Response "具体错误" +// @Router /api/memberCenter/levelManagement/deleteLevel [post] +func DeleteLevel(c *gin.Context) { + var req *md.DeleteLevelReq + if err := c.ShouldBindJSON(&req); err != nil { + e.OutErr(c, e.ERR_INVALID_ARGS, err.Error()) + return + } + + session := db.Db.NewSession() + defer session.Close() + session.Begin() + levelDb := implement.NewUserLevelDb(db.Db) + affected, err := levelDb.UserLevelDeleteBySession(session, req.LevelID) + if err != nil { + e.OutErr(c, e.ERR_DB_ORM, err.Error()) + return + } + + sql := "UPDATE `user` SET level = 0 WHERE level = ?" + _, err = session.QueryString(sql, req.LevelID) + if err != nil { + e.OutErr(c, e.ERR_DB_ORM, err.Error()) + return + } + session.Commit() + e.OutSuc(c, affected, nil) +} diff --git a/app/hdl/member_center/hdl_tag__management.go b/app/hdl/member_center/hdl_tag__management.go index 661ba7d..c8f4352 100644 --- a/app/hdl/member_center/hdl_tag__management.go +++ b/app/hdl/member_center/hdl_tag__management.go @@ -8,6 +8,7 @@ import ( "code.fnuoos.com/EggPlanet/egg_models.git/src/implement" "code.fnuoos.com/EggPlanet/egg_models.git/src/model" "github.com/gin-gonic/gin" + "time" ) // GetTagList @@ -63,6 +64,41 @@ func GetTagList(c *gin.Context) { e.OutSuc(c, resp, nil) } +// AddTag +// @Summary 制度中心-会员中心-标签管理(新增) +// @Tags 会员中心 +// @Description 标签管理(新增) +// @Accept json +// @Produce json +// @param Authorization header string true "验证参数Bearer和token空格拼接" +// @Param req body md.AddTagReq true "新增的标签信息" +// @Success 200 {int} "新增的标签 ID" +// @Failure 400 {object} md.Response "具体错误" +// @Router /api/memberCenter/tagManagement/addTag [post] +func AddTag(c *gin.Context) { + var req *md.AddTagReq + if err := c.ShouldBindJSON(&req); err != nil { + e.OutErr(c, e.ERR_INVALID_ARGS, err.Error()) + return + } + + tag := model.UserTag{ + TagName: req.Name, + Memo: req.Memo, + CreateAt: time.Now().Format("2006-01-02 15:04:05"), + } + if req.IsPunish == "1" { + tag.IsPunish = 1 + } + tagDb := implement.NewUserTagDb(db.Db) + tagID, err := tagDb.UserTagInsert(&tag) + if err != nil { + e.OutErr(c, e.ERR_DB_ORM, err.Error()) + return + } + e.OutSuc(c, tagID, nil) +} + // UpdateTag // @Summary 制度中心-会员中心-标签管理(更新) // @Tags 会员中心 diff --git a/app/hdl/member_center/hdl_user_management.go b/app/hdl/member_center/hdl_user_management.go index 0ba3525..3a8b6f3 100644 --- a/app/hdl/member_center/hdl_user_management.go +++ b/app/hdl/member_center/hdl_user_management.go @@ -81,12 +81,10 @@ func UserManagementGetUserList(c *gin.Context) { for i, user := range *users { list[i] = md.UserManagementGetUserListNode{ ID: user.Id, - Tag: tagsMap[user.TagID], Avatar: user.Avatar, Nickname: user.Nickname, Phone: user.Phone, IsRealName: user.IsRealName, - LevelName: levelsMap[user.Level], InviteCode: user.SystemInviteCode, ParentID: user.ParentUid, ParentInviteCode: user.ParentSystemInviteCode, @@ -94,6 +92,14 @@ func UserManagementGetUserList(c *gin.Context) { RegisterTime: user.CreateAt, Memo: user.Memo, } + tag, ok := tagsMap[user.TagID] + if ok { + list[i].Tag = tag + } + level, ok := levelsMap[user.Level] + if ok { + list[i].LevelName = level + } } resp := md.UserManagementGetUserListResp{ @@ -283,15 +289,14 @@ func UserManagementGetOneBasic(c *gin.Context) { TagsList: tagsList, LevelsList: levelsList, BasicInfo: md.BasicInfoNode{ - Avatar: user.Avatar, - Sex: user.Sex, - Nickname: user.Nickname, - LevelName: levelsMap[user.Level], - Phone: user.Phone, - UnionId: user.UnionId, - Password: user.Password, - State: user.State, - Memo: user.Memo, + Avatar: user.Avatar, + Sex: user.Sex, + Nickname: user.Nickname, + Phone: user.Phone, + UnionId: user.UnionId, + Password: user.Password, + State: user.State, + Memo: user.Memo, }, OtherInfo: md.OtherNode{ LastLoginIp: user.LastLoginIp, @@ -307,6 +312,10 @@ func UserManagementGetOneBasic(c *gin.Context) { resp.BasicInfo.ParentName = parent.Nickname resp.BasicInfo.ParentPhone = parent.Phone } + level, ok := levelsMap[user.Level] + if ok { + resp.BasicInfo.LevelName = level + } e.OutSuc(c, resp, nil) } @@ -419,14 +428,21 @@ func UserManagementGetFans(c *gin.Context) { ID: user.Id, Nickname: user.Nickname, Phone: user.Phone, - LevelTotal: levelTotalMap[user.Id], - Amount: walletMap[user.Id], RegisterAt: user.CreateAt, } val, ok := incomeMap[user.Id] if ok { list[i].TotalIncome = val } + levelTotal, ok := levelTotalMap[user.Id] + if ok { + list[i].LevelTotal = levelTotal + } + amount, ok := walletMap[user.Id] + if ok { + list[i].Amount = amount + } + } resp := md.UserManagementGetFansResp{ diff --git a/app/md/institutional_management/member_center/md_level_management.go b/app/md/institutional_management/member_center/md_level_management.go index 9ded92e..38f3ec5 100644 --- a/app/md/institutional_management/member_center/md_level_management.go +++ b/app/md/institutional_management/member_center/md_level_management.go @@ -22,3 +22,7 @@ type UpdateLevelReq struct { Memo string `json:"memo"` // 备注 LevelWeight int `json:"level_weight"` // 等级权重 } + +type DeleteLevelReq struct { + LevelID string `json:"level_id"` +} diff --git a/app/md/institutional_management/member_center/md_tag_management.go b/app/md/institutional_management/member_center/md_tag_management.go index a3e5d36..a0ade12 100644 --- a/app/md/institutional_management/member_center/md_tag_management.go +++ b/app/md/institutional_management/member_center/md_tag_management.go @@ -1,13 +1,11 @@ package md -import "time" - type TagListNode struct { - TagID string `json:"tag_id"` // 标签 ID - Name string `json:"name"` // 名称 - Count string `json:"count"` // 标签人数 - CreateAt time.Time `json:"create_at"` // 创建时间 - Memo string `json:"memo"` // 备注 + TagID string `json:"tag_id"` // 标签 ID + Name string `json:"name"` // 名称 + Count string `json:"count"` // 标签人数 + CreateAt string `json:"create_at"` // 创建时间 + Memo string `json:"memo"` // 备注 } type GetTagListResp struct { @@ -15,6 +13,12 @@ type GetTagListResp struct { Paginate Paginate `json:"paginate"` } +type AddTagReq struct { + Name string `json:"name,required"` // 标签名称 + Memo string `json:"memo,required"` // 备注 + IsPunish string `json:"is_punish,required"` // 是否为处罚标签(0:否 1:是) +} + type UpdateTagReq struct { TagID string `json:"tag_id,required"` // 标签 ID Name string `json:"name,required"` // 标签名称 diff --git a/app/md/institutional_management/member_center/md_user_management.go b/app/md/institutional_management/member_center/md_user_management.go index c5eaafc..4e4635e 100644 --- a/app/md/institutional_management/member_center/md_user_management.go +++ b/app/md/institutional_management/member_center/md_user_management.go @@ -16,7 +16,7 @@ type UserManagementGetUserListReq struct { Sex int `json:"sex"` // 性别 UnionId string `json:"union_id" example:"微信号"` Level int `json:"level"` // 会员等级 - RegisterType int `json:"register_type"` // 注册类型(0.未知, 1.免验证码手机号注册,2.微信授权) + RegisterType int `json:"register_type"` // 注册类型(1:APP注册、2:H5注册) State int `json:"state"` // 状态 Effective int `json:"effective"` // 有效会员 IsRealName int `json:"is_real_name"` // 是否实名 0.未实名,1.已实名 diff --git a/app/md/institutional_management/public_platoon/md_public_platoon.go b/app/md/institutional_management/public_platoon/md_public_platoon.go index 042c28d..d17d531 100644 --- a/app/md/institutional_management/public_platoon/md_public_platoon.go +++ b/app/md/institutional_management/public_platoon/md_public_platoon.go @@ -115,6 +115,10 @@ type AddFreePublishUserReq struct { Uid int64 `json:"uid"` } +type DeleteFreePublishUserReq struct { + Uid string `json:"uid"` +} + type ListCommunityDividendsReq struct { Page int `json:"page,required"` // 页数 Limit int `json:"limit,required"` // 每页大小 diff --git a/app/router/router.go b/app/router/router.go index e750609..79dd5dc 100644 --- a/app/router/router.go +++ b/app/router/router.go @@ -54,9 +54,9 @@ func Init() *gin.Engine { func route(r *gin.RouterGroup) { r.GET("/test", hdl.Demo) r.POST("/login", hdl.Login) - //r.Use(mw.Auth) // 以下接口需要JWT验证 + r.Use(mw.Auth) // 以下接口需要JWT验证 rComm(r.Group("/comm")) - //r.Use(mw.CheckPermission) // 检测权限 + r.Use(mw.CheckPermission) // 检测权限 rInstitutionalManagement(r.Group("/institutionalManagement")) rMarketingApplications(r.Group("/marketingApplications")) rMemberCenter(r.Group("/memberCenter")) @@ -88,6 +88,7 @@ func rInstitutionalManagement(r *gin.RouterGroup) { //制度管理 { rPublicPlatoonUserFreePunish.POST("/index", public_platoon.GetFreePublishUser) rPublicPlatoonUserFreePunish.POST("/save", public_platoon.AddFreePublishUser) + rPublicPlatoonUserFreePunish.DELETE("/delete", public_platoon.DeleteFreePublishUser) } rCommunityDividends := rPublicPlatoon.Group("/communityDividends") { @@ -168,6 +169,7 @@ func rMemberCenter(r *gin.RouterGroup) { // 会员中心 rTagManagement := r.Group("/tagManagement") { rTagManagement.GET("/getTagList", member_center.GetTagList) + rTagManagement.POST("/addTag", member_center.AddTag) rTagManagement.POST("/updateTag", member_center.UpdateTag) rTagManagement.DELETE("/deleteTag", member_center.DeleteTag) } @@ -175,6 +177,7 @@ func rMemberCenter(r *gin.RouterGroup) { // 会员中心 { rLevelManagement.GET("/getLevelList", member_center.GetLevelList) rLevelManagement.POST("/updateLevel", member_center.UpdateLevel) + rLevelManagement.DELETE("/deleteLevel", member_center.DeleteLevel) } } diff --git a/docs/docs.go b/docs/docs.go index 535f0bf..c71102b 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -1592,6 +1592,53 @@ const docTemplate = `{ } } }, + "/api/institutionalManagement/publicPlatoon/publicPlatoonUserFreePunish/delete": { + "delete": { + "description": "免罚用户(删除)", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "公排管理" + ], + "summary": "制度中心-公排管理-免罚用户(删除)", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "description": "免罚用户ID", + "name": "req", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.DeleteFreePublishUserReq" + } + } + ], + "responses": { + "200": { + "description": "删除数据数量", + "schema": { + "type": "int" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, "/api/institutionalManagement/publicPlatoon/publicPlatoonUserFreePunish/index": { "post": { "description": "免罚用户(查询)", @@ -1661,7 +1708,7 @@ const docTemplate = `{ "required": true }, { - "description": "页数和行数必填,uid选填", + "description": "免罚用户ID", "name": "req", "in": "body", "required": true, @@ -1969,7 +2016,546 @@ const docTemplate = `{ "tags": [ "营销应用" ], - "summary": "制度中心-营销应用-新人红包列表明细(查询)", + "summary": "制度中心-营销应用-新人红包列表明细(查询)", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "description": "新人红包列表明细查询条件(分页信息、用户 ID必填)", + "name": "req", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.NewUserRedPackageRecordFlowListReq" + } + } + ], + "responses": { + "200": { + "description": "具体数据", + "schema": { + "$ref": "#/definitions/md.NewUserRedPackageRecordFlowListResp" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/marketingApplications/newUserRedPackage/recordList": { + "post": { + "description": "新人红包列表(查询)", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "营销应用" + ], + "summary": "制度中心-营销应用-新人红包列表(查询)", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "description": "新人红包列表查询条件(分页信息必填)", + "name": "req", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.NewUserRedPackageRecordListReq" + } + } + ], + "responses": { + "200": { + "description": "具体数据", + "schema": { + "$ref": "#/definitions/md.NewUserRedPackageRecordListResp" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/marketingApplications/newUserRedPackage/updateBasic": { + "put": { + "description": "新人红包设置(修改)", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "营销应用" + ], + "summary": "制度中心-营销应用-新人红包设置(修改)", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "description": "新人红包设置表单", + "name": "req", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.NewUserRedPackageUpdateBasicReq" + } + } + ], + "responses": { + "200": { + "description": "success", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/memberCenter/levelManagement/deleteLevel": { + "post": { + "description": "等级管理(删除)", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "会员中心" + ], + "summary": "制度中心-会员中心-等级管理(删除)", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "description": "需要删除的等级 ID", + "name": "req", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.DeleteLevelReq" + } + } + ], + "responses": { + "200": { + "description": "成功删除数据数量", + "schema": { + "type": "int" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/memberCenter/levelManagement/getLevelList": { + "get": { + "description": "标签管理(获取)", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "会员中心" + ], + "summary": "制度中心-会员中心-等级管理(获取)", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "type": "integer", + "description": "每页大小", + "name": "limit", + "in": "query", + "required": true + }, + { + "type": "integer", + "description": "页数", + "name": "page", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "具体数据", + "schema": { + "$ref": "#/definitions/md.GetLevelListResp" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/memberCenter/levelManagement/updateLevel": { + "post": { + "description": "等级管理(更新)", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "会员中心" + ], + "summary": "制度中心-会员中心-等级管理(更新)", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "description": "需要修改的等级信息", + "name": "req", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.UpdateLevelReq" + } + } + ], + "responses": { + "200": { + "description": "成功修改数据条数", + "schema": { + "type": "int" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/memberCenter/tagManagement/addTag": { + "post": { + "description": "标签管理(新增)", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "会员中心" + ], + "summary": "制度中心-会员中心-标签管理(新增)", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "description": "新增的标签信息", + "name": "req", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.AddTagReq" + } + } + ], + "responses": { + "200": { + "description": "新增的标签 ID", + "schema": { + "type": "int" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/memberCenter/tagManagement/deleteTag": { + "post": { + "description": "标签管理(删除)", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "会员中心" + ], + "summary": "制度中心-会员中心-标签管理(删除)", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "description": "需要删除的标签 ID", + "name": "req", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.DeleteTagReq" + } + } + ], + "responses": { + "200": { + "description": "成功删除标签用户数", + "schema": { + "type": "int" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/memberCenter/tagManagement/getTagList": { + "get": { + "description": "标签管理(获取)", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "会员中心" + ], + "summary": "制度中心-会员中心-标签管理(获取)", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "type": "integer", + "description": "每页大小", + "name": "limit", + "in": "query", + "required": true + }, + { + "type": "integer", + "description": "页数", + "name": "page", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "具体数据", + "schema": { + "$ref": "#/definitions/md.GetTagListResp" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/memberCenter/tagManagement/updateTag": { + "post": { + "description": "标签管理(更新)", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "会员中心" + ], + "summary": "制度中心-会员中心-标签管理(更新)", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "description": "需要修改的标签信息", + "name": "req", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.UpdateTagReq" + } + } + ], + "responses": { + "200": { + "description": "成功修改数据条数", + "schema": { + "type": "int" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/memberCenter/userManagement/balanceDetail": { + "get": { + "description": "会员明细(余额获取)", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "会员中心" + ], + "summary": "制度中心-会员中心-用户管理-会员明细(余额获取)", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "type": "string", + "description": "用户 ID", + "name": "uid", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "每页大小", + "name": "limit", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "页数", + "name": "page", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "具体数据", + "schema": { + "$ref": "#/definitions/md.UserManagementGetBalanceDetailResp" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/memberCenter/userManagement/getFans": { + "get": { + "description": "会员明细粉丝情况(获取)", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "会员中心" + ], + "summary": "制度中心-会员中心-用户管理-会员明细粉丝情况(获取)", "parameters": [ { "type": "string", @@ -1979,20 +2565,39 @@ const docTemplate = `{ "required": true }, { - "description": "新人红包列表明细查询条件(分页信息、用户 ID必填)", - "name": "req", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.NewUserRedPackageRecordFlowListReq" - } + "type": "string", + "description": "用户 ID", + "name": "uid", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "粉丝类型(1.全部 2.直推 3.二代 4.二代以后)", + "name": "type", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "每页大小", + "name": "limit", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "页数", + "name": "page", + "in": "query", + "required": true } ], "responses": { "200": { "description": "具体数据", "schema": { - "$ref": "#/definitions/md.NewUserRedPackageRecordFlowListResp" + "$ref": "#/definitions/md.UserManagementGetFansResp" } }, "400": { @@ -2004,9 +2609,9 @@ const docTemplate = `{ } } }, - "/api/marketingApplications/newUserRedPackage/recordList": { + "/api/memberCenter/userManagement/getUserList": { "post": { - "description": "新人红包列表(查询)", + "description": "用户信息管理(获取)", "consumes": [ "application/json" ], @@ -2014,9 +2619,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "营销应用" + "会员中心" ], - "summary": "制度中心-营销应用-新人红包列表(查询)", + "summary": "制度中心-会员中心-用户管理-用户信息管理(获取)", "parameters": [ { "type": "string", @@ -2026,12 +2631,12 @@ const docTemplate = `{ "required": true }, { - "description": "新人红包列表查询条件(分页信息必填)", + "description": "分页信息必填", "name": "req", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.NewUserRedPackageRecordListReq" + "$ref": "#/definitions/md.UserManagementGetUserListReq" } } ], @@ -2039,7 +2644,7 @@ const docTemplate = `{ "200": { "description": "具体数据", "schema": { - "$ref": "#/definitions/md.NewUserRedPackageRecordListResp" + "$ref": "#/definitions/md.UserManagementGetUserListResp" } }, "400": { @@ -2051,9 +2656,9 @@ const docTemplate = `{ } } }, - "/api/marketingApplications/newUserRedPackage/updateBasic": { - "put": { - "description": "新人红包设置(修改)", + "/api/memberCenter/userManagement/getVirtualCoinDetail": { + "get": { + "description": "会员明细(积分明细获取)", "consumes": [ "application/json" ], @@ -2061,9 +2666,9 @@ const docTemplate = `{ "application/json" ], "tags": [ - "营销应用" + "会员中心" ], - "summary": "制度中心-营销应用-新人红包设置(修改)", + "summary": "制度中心-会员中心-用户管理-会员明细(积分明细获取)", "parameters": [ { "type": "string", @@ -2073,20 +2678,39 @@ const docTemplate = `{ "required": true }, { - "description": "新人红包设置表单", - "name": "req", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.NewUserRedPackageUpdateBasicReq" - } + "type": "string", + "description": "用户 ID", + "name": "uid", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "货币 ID", + "name": "coinId", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "每页大小", + "name": "limit", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "页数", + "name": "page", + "in": "query", + "required": true } ], "responses": { "200": { - "description": "success", + "description": "具体数据", "schema": { - "type": "string" + "$ref": "#/definitions/md.UserManagementGetVirtualCoinDetailResp" } }, "400": { @@ -2098,9 +2722,9 @@ const docTemplate = `{ } } }, - "/api/memberCenter/userManagement/getUserList": { + "/api/memberCenter/userManagement/updateUserInfo": { "post": { - "description": "用户信息管理(获取)", + "description": "用户信息管理(更新)", "consumes": [ "application/json" ], @@ -2110,7 +2734,7 @@ const docTemplate = `{ "tags": [ "会员中心" ], - "summary": "制度中心-会员中心-用户信息管理(获取)", + "summary": "制度中心-会员中心-用户管理-用户信息管理(更新)", "parameters": [ { "type": "string", @@ -2120,20 +2744,20 @@ const docTemplate = `{ "required": true }, { - "description": "分页信息必填", + "description": "用户ID 必传", "name": "req", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.UserManagementGetUserListReq" + "$ref": "#/definitions/md.UserManagementUpdateUserInfoReq" } } ], "responses": { "200": { - "description": "具体数据", + "description": "修改数据行数", "schema": { - "$ref": "#/definitions/md.UserManagementGetUserListResp" + "type": "int" } }, "400": { @@ -2145,9 +2769,9 @@ const docTemplate = `{ } } }, - "/api/memberCenter/userManagement/updateUserInfo": { - "post": { - "description": "用户信息管理(更新)", + "/api/memberCenter/userManagement/userData": { + "get": { + "description": "会员明细概况(获取)", "consumes": [ "application/json" ], @@ -2157,7 +2781,7 @@ const docTemplate = `{ "tags": [ "会员中心" ], - "summary": "制度中心-会员中心-用户信息管理(更新)", + "summary": "制度中心-会员中心-用户管理-会员明细概况(获取)", "parameters": [ { "type": "string", @@ -2167,20 +2791,18 @@ const docTemplate = `{ "required": true }, { - "description": "用户ID 必传", - "name": "req", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.UserManagementUpdateUserInfoReq" - } + "type": "string", + "description": "用户 ID", + "name": "uid", + "in": "query", + "required": true } ], "responses": { "200": { - "description": "修改数据行数", + "description": "会员明细概况具体数据", "schema": { - "type": "int" + "$ref": "#/definitions/md.UserManagementGetOneBasicResp" } }, "400": { @@ -2433,6 +3055,109 @@ const docTemplate = `{ } } }, + "md.AddTagReq": { + "type": "object", + "properties": { + "is_punish": { + "description": "是否为处罚标签(0:否 1:是)", + "type": "string" + }, + "memo": { + "description": "备注", + "type": "string" + }, + "name": { + "description": "标签名称", + "type": "string" + } + } + }, + "md.BalanceDetailNode": { + "type": "object", + "properties": { + "after_amount": { + "description": "变更后余额", + "type": "string" + }, + "amount": { + "description": "变更数量", + "type": "string" + }, + "before_amount": { + "description": "变更前余额", + "type": "string" + }, + "create_at": { + "description": "创建时间", + "type": "string" + }, + "id": { + "description": "记录ID", + "type": "integer" + }, + "kind": { + "description": "类型 1:管理员操作增加余额 2:管理员操作扣除余额 3:蛋蛋能量兑换余额 4:余额兑换蛋蛋能量", + "type": "string" + } + } + }, + "md.BasicInfoNode": { + "type": "object", + "properties": { + "avatar": { + "description": "头像", + "type": "string" + }, + "level_name": { + "description": "会员等级名称", + "type": "string" + }, + "memo": { + "description": "备注", + "type": "string" + }, + "nickname": { + "description": "用户名称", + "type": "string" + }, + "parent_name": { + "description": "推荐人名称", + "type": "string" + }, + "parent_phone": { + "description": "推荐人手机号", + "type": "string" + }, + "parent_uid": { + "description": "推荐人", + "type": "integer" + }, + "password": { + "description": "登录密码", + "type": "string" + }, + "phone": { + "description": "手机号", + "type": "string" + }, + "sex": { + "description": "性别", + "type": "integer" + }, + "state": { + "description": "账号状态 1正常,2冻结", + "type": "integer" + }, + "tag_name": { + "description": "标签名称", + "type": "string" + }, + "union_id": { + "description": "微信号", + "type": "string" + } + } + }, "md.DailyActivityAnalysisTopData": { "type": "object", "properties": { @@ -2495,6 +3220,31 @@ const docTemplate = `{ } } }, + "md.DeleteFreePublishUserReq": { + "type": "object", + "properties": { + "uid": { + "type": "string" + } + } + }, + "md.DeleteLevelReq": { + "type": "object", + "properties": { + "level_id": { + "type": "string" + } + } + }, + "md.DeleteTagReq": { + "type": "object", + "properties": { + "tag_id": { + "description": "标签 ID", + "type": "string" + } + } + }, "md.DestructionSettingStruct": { "type": "object", "properties": { @@ -2742,6 +3492,39 @@ const docTemplate = `{ } } }, + "md.FansNode": { + "type": "object", + "properties": { + "amount": { + "description": "可提现余额", + "type": "string" + }, + "id": { + "description": "用户ID", + "type": "integer" + }, + "level_total": { + "description": "所属代数", + "type": "integer" + }, + "nickname": { + "type": "string", + "example": "用户昵称" + }, + "phone": { + "type": "string", + "example": "手机号" + }, + "register_at": { + "description": "注册时间", + "type": "string" + }, + "total_income": { + "description": "累计收益", + "type": "string" + } + } + }, "md.FindSubUserRelationshipMapResp": { "type": "object", "properties": { @@ -3374,6 +4157,20 @@ const docTemplate = `{ } } }, + "md.GetLevelListResp": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/md.LevelListNode" + } + }, + "paginate": { + "$ref": "#/definitions/applet_app_md_institutional_management_member_center.Paginate" + } + } + }, "md.GetPriceCurveResp": { "type": "object", "properties": { @@ -3418,9 +4215,23 @@ const docTemplate = `{ "description": "是否位置滑落 被新用户替换 0否 1是", "type": "integer" }, - "system_punish_replace_value": { - "description": "xx天未活跃,处罚滑落", - "type": "integer" + "system_punish_replace_value": { + "description": "xx天未活跃,处罚滑落", + "type": "integer" + } + } + }, + "md.GetTagListResp": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/md.TagListNode" + } + }, + "paginate": { + "$ref": "#/definitions/applet_app_md_institutional_management_member_center.Paginate" } } }, @@ -3437,6 +4248,39 @@ const docTemplate = `{ } } }, + "md.LevelListNode": { + "type": "object", + "properties": { + "count": { + "description": "等级人数", + "type": "string" + }, + "create_at": { + "description": "创建时间", + "type": "string" + }, + "is_use": { + "description": "是否开启(0.否, 1.是)", + "type": "integer" + }, + "level_id": { + "description": "等级 ID", + "type": "integer" + }, + "level_name": { + "description": "等级名称", + "type": "string" + }, + "level_weight": { + "description": "等级权重", + "type": "integer" + }, + "memo": { + "description": "备注", + "type": "string" + } + } + }, "md.ListCommunityDividendsReq": { "type": "object", "properties": { @@ -3843,6 +4687,23 @@ const docTemplate = `{ } } }, + "md.OtherNode": { + "type": "object", + "properties": { + "create_at": { + "description": "注册时间", + "type": "string" + }, + "last_login_at": { + "description": "最近登录时间", + "type": "string" + }, + "last_login_ip": { + "description": "最后登录 IP", + "type": "string" + } + } + }, "md.PlatformRevenueDataNode": { "type": "object", "properties": { @@ -4307,6 +5168,31 @@ const docTemplate = `{ } } }, + "md.TagListNode": { + "type": "object", + "properties": { + "count": { + "description": "标签人数", + "type": "string" + }, + "create_at": { + "description": "创建时间", + "type": "string" + }, + "memo": { + "description": "备注", + "type": "string" + }, + "name": { + "description": "名称", + "type": "string" + }, + "tag_id": { + "description": "标签 ID", + "type": "string" + } + } + }, "md.TeamRewardSettingStruct": { "type": "object", "properties": { @@ -4451,6 +5337,30 @@ const docTemplate = `{ } } }, + "md.UpdateLevelReq": { + "type": "object", + "properties": { + "is_use": { + "description": "是否开启(0.否, 1.是)", + "type": "integer" + }, + "level_id": { + "type": "string" + }, + "level_name": { + "description": "等级名称", + "type": "string" + }, + "level_weight": { + "description": "等级权重", + "type": "integer" + }, + "memo": { + "description": "备注", + "type": "string" + } + } + }, "md.UpdatePublicPlatoonBasicReq": { "type": "object", "properties": { @@ -4484,6 +5394,23 @@ const docTemplate = `{ } } }, + "md.UpdateTagReq": { + "type": "object", + "properties": { + "memo": { + "description": "备注", + "type": "string" + }, + "name": { + "description": "标签名称", + "type": "string" + }, + "tag_id": { + "description": "标签 ID", + "type": "string" + } + } + }, "md.UserDailyActivityAnalysisReq": { "type": "object", "properties": { @@ -4840,35 +5767,94 @@ const docTemplate = `{ } } }, - "md.UserManagementGetUserListNode": { + "md.UserManagementGetBalanceDetailResp": { "type": "object", "properties": { - "avatar": { - "type": "string" + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/md.BalanceDetailNode" + } }, - "create_at": { - "type": "string" + "paginate": { + "$ref": "#/definitions/applet_app_md_institutional_management_member_center.Paginate" + } + } + }, + "md.UserManagementGetFansResp": { + "type": "object", + "properties": { + "list": { + "description": "用户数据", + "type": "array", + "items": { + "$ref": "#/definitions/md.FansNode" + } + }, + "paginate": { + "description": "分页信息", + "allOf": [ + { + "$ref": "#/definitions/applet_app_md_institutional_management_member_center.Paginate" + } + ] + } + } + }, + "md.UserManagementGetOneBasicResp": { + "type": "object", + "properties": { + "basic_info": { + "description": "基本信息", + "allOf": [ + { + "$ref": "#/definitions/md.BasicInfoNode" + } + ] }, - "custom_invite_code": { + "levels_list": { + "description": "等级列表", + "type": "array", + "items": { + "type": "object", + "additionalProperties": true + } + }, + "other_info": { + "description": "其他信息", + "allOf": [ + { + "$ref": "#/definitions/md.OtherNode" + } + ] + }, + "tags_list": { + "description": "标签列表", + "type": "array", + "items": { + "type": "object", + "additionalProperties": true + } + } + } + }, + "md.UserManagementGetUserListNode": { + "type": "object", + "properties": { + "avatar": { + "description": "头像", "type": "string" }, "id": { + "description": "会员 ID", "type": "integer" }, "invite_code": { "type": "string", "example": "会员邀请码" }, - "invite_total": { - "type": "integer" - }, "is_real_name": { - "type": "integer" - }, - "last_login_ip": { - "type": "string" - }, - "level": { + "description": "是否实名 0.未实名,1.已实名", "type": "integer" }, "level_name": { @@ -4876,12 +5862,11 @@ const docTemplate = `{ "type": "string" }, "memo": { + "description": "备注", "type": "string" }, "nickname": { - "type": "string" - }, - "open_id": { + "description": "昵称", "type": "string" }, "parent_id": { @@ -4896,43 +5881,17 @@ const docTemplate = `{ "type": "string", "example": "推荐人手机号" }, - "parent_uid": { - "type": "integer" - }, - "passcode": { - "type": "string" - }, - "password": { - "type": "string" - }, "phone": { + "description": "手机号", "type": "string" }, "register_time": { "description": "注册时间", "type": "string" }, - "register_type": { - "type": "integer" - }, - "sex": { - "type": "integer" - }, - "state": { - "type": "integer" - }, - "system_invite_code": { - "type": "string" - }, "tag_name": { "description": "会员标签", "type": "string" - }, - "union_id": { - "type": "string" - }, - "update_at": { - "type": "string" } } }, @@ -5062,6 +6021,27 @@ const docTemplate = `{ } } }, + "md.UserManagementGetVirtualCoinDetailResp": { + "type": "object", + "properties": { + "coin_list": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": true + } + }, + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/md.VirtualCoinDetailNode" + } + }, + "paginate": { + "$ref": "#/definitions/applet_app_md_institutional_management_member_center.Paginate" + } + } + }, "md.UserManagementUpdateUserInfoReq": { "type": "object", "properties": { @@ -5069,24 +6049,48 @@ const docTemplate = `{ "description": "头像", "type": "string" }, - "disable": { - "description": "是否禁用用户", - "type": "boolean" - }, "last_login_ip": { "description": "用户最后登录 IP", "type": "string" }, + "level": { + "description": "会员等级 ID", + "type": "string" + }, "memo": { "type": "string", "example": "备注" }, + "nickname": { + "description": "用户名", + "type": "string" + }, + "parent_uid": { + "description": "邀请人 ID", + "type": "string" + }, + "phone": { + "description": "手机号", + "type": "string" + }, + "sex": { + "description": "性别(0:未知 1:男 2:女)", + "type": "string" + }, + "state": { + "description": "账号状态 1正常,2冻结", + "type": "string" + }, "tag": { "description": "用户标签 ID", - "type": "integer" + "type": "string" }, "uid": { "type": "integer" + }, + "union_id": { + "description": "微信号", + "type": "string" } } }, @@ -5224,6 +6228,31 @@ const docTemplate = `{ } } }, + "md.VirtualCoinDetailNode": { + "type": "object", + "properties": { + "after_amount": { + "description": "变更后积分余额", + "type": "string" + }, + "amount": { + "description": "变更数量", + "type": "string" + }, + "create_at": { + "description": "创建时间", + "type": "string" + }, + "direction": { + "description": "类型 1.收入 2.支出", + "type": "integer" + }, + "uid": { + "description": "用户 ID", + "type": "integer" + } + } + }, "md.VirtualCoinListNode": { "type": "object", "properties": { diff --git a/docs/swagger.json b/docs/swagger.json index c4c04d0..d88d454 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -1585,6 +1585,53 @@ } } }, + "/api/institutionalManagement/publicPlatoon/publicPlatoonUserFreePunish/delete": { + "delete": { + "description": "免罚用户(删除)", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "公排管理" + ], + "summary": "制度中心-公排管理-免罚用户(删除)", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "description": "免罚用户ID", + "name": "req", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.DeleteFreePublishUserReq" + } + } + ], + "responses": { + "200": { + "description": "删除数据数量", + "schema": { + "type": "int" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, "/api/institutionalManagement/publicPlatoon/publicPlatoonUserFreePunish/index": { "post": { "description": "免罚用户(查询)", @@ -1654,7 +1701,7 @@ "required": true }, { - "description": "页数和行数必填,uid选填", + "description": "免罚用户ID", "name": "req", "in": "body", "required": true, @@ -1962,7 +2009,546 @@ "tags": [ "营销应用" ], - "summary": "制度中心-营销应用-新人红包列表明细(查询)", + "summary": "制度中心-营销应用-新人红包列表明细(查询)", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "description": "新人红包列表明细查询条件(分页信息、用户 ID必填)", + "name": "req", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.NewUserRedPackageRecordFlowListReq" + } + } + ], + "responses": { + "200": { + "description": "具体数据", + "schema": { + "$ref": "#/definitions/md.NewUserRedPackageRecordFlowListResp" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/marketingApplications/newUserRedPackage/recordList": { + "post": { + "description": "新人红包列表(查询)", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "营销应用" + ], + "summary": "制度中心-营销应用-新人红包列表(查询)", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "description": "新人红包列表查询条件(分页信息必填)", + "name": "req", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.NewUserRedPackageRecordListReq" + } + } + ], + "responses": { + "200": { + "description": "具体数据", + "schema": { + "$ref": "#/definitions/md.NewUserRedPackageRecordListResp" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/marketingApplications/newUserRedPackage/updateBasic": { + "put": { + "description": "新人红包设置(修改)", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "营销应用" + ], + "summary": "制度中心-营销应用-新人红包设置(修改)", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "description": "新人红包设置表单", + "name": "req", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.NewUserRedPackageUpdateBasicReq" + } + } + ], + "responses": { + "200": { + "description": "success", + "schema": { + "type": "string" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/memberCenter/levelManagement/deleteLevel": { + "post": { + "description": "等级管理(删除)", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "会员中心" + ], + "summary": "制度中心-会员中心-等级管理(删除)", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "description": "需要删除的等级 ID", + "name": "req", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.DeleteLevelReq" + } + } + ], + "responses": { + "200": { + "description": "成功删除数据数量", + "schema": { + "type": "int" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/memberCenter/levelManagement/getLevelList": { + "get": { + "description": "标签管理(获取)", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "会员中心" + ], + "summary": "制度中心-会员中心-等级管理(获取)", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "type": "integer", + "description": "每页大小", + "name": "limit", + "in": "query", + "required": true + }, + { + "type": "integer", + "description": "页数", + "name": "page", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "具体数据", + "schema": { + "$ref": "#/definitions/md.GetLevelListResp" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/memberCenter/levelManagement/updateLevel": { + "post": { + "description": "等级管理(更新)", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "会员中心" + ], + "summary": "制度中心-会员中心-等级管理(更新)", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "description": "需要修改的等级信息", + "name": "req", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.UpdateLevelReq" + } + } + ], + "responses": { + "200": { + "description": "成功修改数据条数", + "schema": { + "type": "int" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/memberCenter/tagManagement/addTag": { + "post": { + "description": "标签管理(新增)", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "会员中心" + ], + "summary": "制度中心-会员中心-标签管理(新增)", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "description": "新增的标签信息", + "name": "req", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.AddTagReq" + } + } + ], + "responses": { + "200": { + "description": "新增的标签 ID", + "schema": { + "type": "int" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/memberCenter/tagManagement/deleteTag": { + "post": { + "description": "标签管理(删除)", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "会员中心" + ], + "summary": "制度中心-会员中心-标签管理(删除)", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "description": "需要删除的标签 ID", + "name": "req", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.DeleteTagReq" + } + } + ], + "responses": { + "200": { + "description": "成功删除标签用户数", + "schema": { + "type": "int" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/memberCenter/tagManagement/getTagList": { + "get": { + "description": "标签管理(获取)", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "会员中心" + ], + "summary": "制度中心-会员中心-标签管理(获取)", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "type": "integer", + "description": "每页大小", + "name": "limit", + "in": "query", + "required": true + }, + { + "type": "integer", + "description": "页数", + "name": "page", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "具体数据", + "schema": { + "$ref": "#/definitions/md.GetTagListResp" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/memberCenter/tagManagement/updateTag": { + "post": { + "description": "标签管理(更新)", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "会员中心" + ], + "summary": "制度中心-会员中心-标签管理(更新)", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "description": "需要修改的标签信息", + "name": "req", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/md.UpdateTagReq" + } + } + ], + "responses": { + "200": { + "description": "成功修改数据条数", + "schema": { + "type": "int" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/memberCenter/userManagement/balanceDetail": { + "get": { + "description": "会员明细(余额获取)", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "会员中心" + ], + "summary": "制度中心-会员中心-用户管理-会员明细(余额获取)", + "parameters": [ + { + "type": "string", + "description": "验证参数Bearer和token空格拼接", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "type": "string", + "description": "用户 ID", + "name": "uid", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "每页大小", + "name": "limit", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "页数", + "name": "page", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "具体数据", + "schema": { + "$ref": "#/definitions/md.UserManagementGetBalanceDetailResp" + } + }, + "400": { + "description": "具体错误", + "schema": { + "$ref": "#/definitions/md.Response" + } + } + } + } + }, + "/api/memberCenter/userManagement/getFans": { + "get": { + "description": "会员明细粉丝情况(获取)", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "会员中心" + ], + "summary": "制度中心-会员中心-用户管理-会员明细粉丝情况(获取)", "parameters": [ { "type": "string", @@ -1972,20 +2558,39 @@ "required": true }, { - "description": "新人红包列表明细查询条件(分页信息、用户 ID必填)", - "name": "req", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.NewUserRedPackageRecordFlowListReq" - } + "type": "string", + "description": "用户 ID", + "name": "uid", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "粉丝类型(1.全部 2.直推 3.二代 4.二代以后)", + "name": "type", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "每页大小", + "name": "limit", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "页数", + "name": "page", + "in": "query", + "required": true } ], "responses": { "200": { "description": "具体数据", "schema": { - "$ref": "#/definitions/md.NewUserRedPackageRecordFlowListResp" + "$ref": "#/definitions/md.UserManagementGetFansResp" } }, "400": { @@ -1997,9 +2602,9 @@ } } }, - "/api/marketingApplications/newUserRedPackage/recordList": { + "/api/memberCenter/userManagement/getUserList": { "post": { - "description": "新人红包列表(查询)", + "description": "用户信息管理(获取)", "consumes": [ "application/json" ], @@ -2007,9 +2612,9 @@ "application/json" ], "tags": [ - "营销应用" + "会员中心" ], - "summary": "制度中心-营销应用-新人红包列表(查询)", + "summary": "制度中心-会员中心-用户管理-用户信息管理(获取)", "parameters": [ { "type": "string", @@ -2019,12 +2624,12 @@ "required": true }, { - "description": "新人红包列表查询条件(分页信息必填)", + "description": "分页信息必填", "name": "req", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.NewUserRedPackageRecordListReq" + "$ref": "#/definitions/md.UserManagementGetUserListReq" } } ], @@ -2032,7 +2637,7 @@ "200": { "description": "具体数据", "schema": { - "$ref": "#/definitions/md.NewUserRedPackageRecordListResp" + "$ref": "#/definitions/md.UserManagementGetUserListResp" } }, "400": { @@ -2044,9 +2649,9 @@ } } }, - "/api/marketingApplications/newUserRedPackage/updateBasic": { - "put": { - "description": "新人红包设置(修改)", + "/api/memberCenter/userManagement/getVirtualCoinDetail": { + "get": { + "description": "会员明细(积分明细获取)", "consumes": [ "application/json" ], @@ -2054,9 +2659,9 @@ "application/json" ], "tags": [ - "营销应用" + "会员中心" ], - "summary": "制度中心-营销应用-新人红包设置(修改)", + "summary": "制度中心-会员中心-用户管理-会员明细(积分明细获取)", "parameters": [ { "type": "string", @@ -2066,20 +2671,39 @@ "required": true }, { - "description": "新人红包设置表单", - "name": "req", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.NewUserRedPackageUpdateBasicReq" - } + "type": "string", + "description": "用户 ID", + "name": "uid", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "货币 ID", + "name": "coinId", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "每页大小", + "name": "limit", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "页数", + "name": "page", + "in": "query", + "required": true } ], "responses": { "200": { - "description": "success", + "description": "具体数据", "schema": { - "type": "string" + "$ref": "#/definitions/md.UserManagementGetVirtualCoinDetailResp" } }, "400": { @@ -2091,9 +2715,9 @@ } } }, - "/api/memberCenter/userManagement/getUserList": { + "/api/memberCenter/userManagement/updateUserInfo": { "post": { - "description": "用户信息管理(获取)", + "description": "用户信息管理(更新)", "consumes": [ "application/json" ], @@ -2103,7 +2727,7 @@ "tags": [ "会员中心" ], - "summary": "制度中心-会员中心-用户信息管理(获取)", + "summary": "制度中心-会员中心-用户管理-用户信息管理(更新)", "parameters": [ { "type": "string", @@ -2113,20 +2737,20 @@ "required": true }, { - "description": "分页信息必填", + "description": "用户ID 必传", "name": "req", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/md.UserManagementGetUserListReq" + "$ref": "#/definitions/md.UserManagementUpdateUserInfoReq" } } ], "responses": { "200": { - "description": "具体数据", + "description": "修改数据行数", "schema": { - "$ref": "#/definitions/md.UserManagementGetUserListResp" + "type": "int" } }, "400": { @@ -2138,9 +2762,9 @@ } } }, - "/api/memberCenter/userManagement/updateUserInfo": { - "post": { - "description": "用户信息管理(更新)", + "/api/memberCenter/userManagement/userData": { + "get": { + "description": "会员明细概况(获取)", "consumes": [ "application/json" ], @@ -2150,7 +2774,7 @@ "tags": [ "会员中心" ], - "summary": "制度中心-会员中心-用户信息管理(更新)", + "summary": "制度中心-会员中心-用户管理-会员明细概况(获取)", "parameters": [ { "type": "string", @@ -2160,20 +2784,18 @@ "required": true }, { - "description": "用户ID 必传", - "name": "req", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/md.UserManagementUpdateUserInfoReq" - } + "type": "string", + "description": "用户 ID", + "name": "uid", + "in": "query", + "required": true } ], "responses": { "200": { - "description": "修改数据行数", + "description": "会员明细概况具体数据", "schema": { - "type": "int" + "$ref": "#/definitions/md.UserManagementGetOneBasicResp" } }, "400": { @@ -2426,6 +3048,109 @@ } } }, + "md.AddTagReq": { + "type": "object", + "properties": { + "is_punish": { + "description": "是否为处罚标签(0:否 1:是)", + "type": "string" + }, + "memo": { + "description": "备注", + "type": "string" + }, + "name": { + "description": "标签名称", + "type": "string" + } + } + }, + "md.BalanceDetailNode": { + "type": "object", + "properties": { + "after_amount": { + "description": "变更后余额", + "type": "string" + }, + "amount": { + "description": "变更数量", + "type": "string" + }, + "before_amount": { + "description": "变更前余额", + "type": "string" + }, + "create_at": { + "description": "创建时间", + "type": "string" + }, + "id": { + "description": "记录ID", + "type": "integer" + }, + "kind": { + "description": "类型 1:管理员操作增加余额 2:管理员操作扣除余额 3:蛋蛋能量兑换余额 4:余额兑换蛋蛋能量", + "type": "string" + } + } + }, + "md.BasicInfoNode": { + "type": "object", + "properties": { + "avatar": { + "description": "头像", + "type": "string" + }, + "level_name": { + "description": "会员等级名称", + "type": "string" + }, + "memo": { + "description": "备注", + "type": "string" + }, + "nickname": { + "description": "用户名称", + "type": "string" + }, + "parent_name": { + "description": "推荐人名称", + "type": "string" + }, + "parent_phone": { + "description": "推荐人手机号", + "type": "string" + }, + "parent_uid": { + "description": "推荐人", + "type": "integer" + }, + "password": { + "description": "登录密码", + "type": "string" + }, + "phone": { + "description": "手机号", + "type": "string" + }, + "sex": { + "description": "性别", + "type": "integer" + }, + "state": { + "description": "账号状态 1正常,2冻结", + "type": "integer" + }, + "tag_name": { + "description": "标签名称", + "type": "string" + }, + "union_id": { + "description": "微信号", + "type": "string" + } + } + }, "md.DailyActivityAnalysisTopData": { "type": "object", "properties": { @@ -2488,6 +3213,31 @@ } } }, + "md.DeleteFreePublishUserReq": { + "type": "object", + "properties": { + "uid": { + "type": "string" + } + } + }, + "md.DeleteLevelReq": { + "type": "object", + "properties": { + "level_id": { + "type": "string" + } + } + }, + "md.DeleteTagReq": { + "type": "object", + "properties": { + "tag_id": { + "description": "标签 ID", + "type": "string" + } + } + }, "md.DestructionSettingStruct": { "type": "object", "properties": { @@ -2735,6 +3485,39 @@ } } }, + "md.FansNode": { + "type": "object", + "properties": { + "amount": { + "description": "可提现余额", + "type": "string" + }, + "id": { + "description": "用户ID", + "type": "integer" + }, + "level_total": { + "description": "所属代数", + "type": "integer" + }, + "nickname": { + "type": "string", + "example": "用户昵称" + }, + "phone": { + "type": "string", + "example": "手机号" + }, + "register_at": { + "description": "注册时间", + "type": "string" + }, + "total_income": { + "description": "累计收益", + "type": "string" + } + } + }, "md.FindSubUserRelationshipMapResp": { "type": "object", "properties": { @@ -3367,6 +4150,20 @@ } } }, + "md.GetLevelListResp": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/md.LevelListNode" + } + }, + "paginate": { + "$ref": "#/definitions/applet_app_md_institutional_management_member_center.Paginate" + } + } + }, "md.GetPriceCurveResp": { "type": "object", "properties": { @@ -3411,9 +4208,23 @@ "description": "是否位置滑落 被新用户替换 0否 1是", "type": "integer" }, - "system_punish_replace_value": { - "description": "xx天未活跃,处罚滑落", - "type": "integer" + "system_punish_replace_value": { + "description": "xx天未活跃,处罚滑落", + "type": "integer" + } + } + }, + "md.GetTagListResp": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/md.TagListNode" + } + }, + "paginate": { + "$ref": "#/definitions/applet_app_md_institutional_management_member_center.Paginate" } } }, @@ -3430,6 +4241,39 @@ } } }, + "md.LevelListNode": { + "type": "object", + "properties": { + "count": { + "description": "等级人数", + "type": "string" + }, + "create_at": { + "description": "创建时间", + "type": "string" + }, + "is_use": { + "description": "是否开启(0.否, 1.是)", + "type": "integer" + }, + "level_id": { + "description": "等级 ID", + "type": "integer" + }, + "level_name": { + "description": "等级名称", + "type": "string" + }, + "level_weight": { + "description": "等级权重", + "type": "integer" + }, + "memo": { + "description": "备注", + "type": "string" + } + } + }, "md.ListCommunityDividendsReq": { "type": "object", "properties": { @@ -3836,6 +4680,23 @@ } } }, + "md.OtherNode": { + "type": "object", + "properties": { + "create_at": { + "description": "注册时间", + "type": "string" + }, + "last_login_at": { + "description": "最近登录时间", + "type": "string" + }, + "last_login_ip": { + "description": "最后登录 IP", + "type": "string" + } + } + }, "md.PlatformRevenueDataNode": { "type": "object", "properties": { @@ -4300,6 +5161,31 @@ } } }, + "md.TagListNode": { + "type": "object", + "properties": { + "count": { + "description": "标签人数", + "type": "string" + }, + "create_at": { + "description": "创建时间", + "type": "string" + }, + "memo": { + "description": "备注", + "type": "string" + }, + "name": { + "description": "名称", + "type": "string" + }, + "tag_id": { + "description": "标签 ID", + "type": "string" + } + } + }, "md.TeamRewardSettingStruct": { "type": "object", "properties": { @@ -4444,6 +5330,30 @@ } } }, + "md.UpdateLevelReq": { + "type": "object", + "properties": { + "is_use": { + "description": "是否开启(0.否, 1.是)", + "type": "integer" + }, + "level_id": { + "type": "string" + }, + "level_name": { + "description": "等级名称", + "type": "string" + }, + "level_weight": { + "description": "等级权重", + "type": "integer" + }, + "memo": { + "description": "备注", + "type": "string" + } + } + }, "md.UpdatePublicPlatoonBasicReq": { "type": "object", "properties": { @@ -4477,6 +5387,23 @@ } } }, + "md.UpdateTagReq": { + "type": "object", + "properties": { + "memo": { + "description": "备注", + "type": "string" + }, + "name": { + "description": "标签名称", + "type": "string" + }, + "tag_id": { + "description": "标签 ID", + "type": "string" + } + } + }, "md.UserDailyActivityAnalysisReq": { "type": "object", "properties": { @@ -4833,35 +5760,94 @@ } } }, - "md.UserManagementGetUserListNode": { + "md.UserManagementGetBalanceDetailResp": { "type": "object", "properties": { - "avatar": { - "type": "string" + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/md.BalanceDetailNode" + } }, - "create_at": { - "type": "string" + "paginate": { + "$ref": "#/definitions/applet_app_md_institutional_management_member_center.Paginate" + } + } + }, + "md.UserManagementGetFansResp": { + "type": "object", + "properties": { + "list": { + "description": "用户数据", + "type": "array", + "items": { + "$ref": "#/definitions/md.FansNode" + } + }, + "paginate": { + "description": "分页信息", + "allOf": [ + { + "$ref": "#/definitions/applet_app_md_institutional_management_member_center.Paginate" + } + ] + } + } + }, + "md.UserManagementGetOneBasicResp": { + "type": "object", + "properties": { + "basic_info": { + "description": "基本信息", + "allOf": [ + { + "$ref": "#/definitions/md.BasicInfoNode" + } + ] }, - "custom_invite_code": { + "levels_list": { + "description": "等级列表", + "type": "array", + "items": { + "type": "object", + "additionalProperties": true + } + }, + "other_info": { + "description": "其他信息", + "allOf": [ + { + "$ref": "#/definitions/md.OtherNode" + } + ] + }, + "tags_list": { + "description": "标签列表", + "type": "array", + "items": { + "type": "object", + "additionalProperties": true + } + } + } + }, + "md.UserManagementGetUserListNode": { + "type": "object", + "properties": { + "avatar": { + "description": "头像", "type": "string" }, "id": { + "description": "会员 ID", "type": "integer" }, "invite_code": { "type": "string", "example": "会员邀请码" }, - "invite_total": { - "type": "integer" - }, "is_real_name": { - "type": "integer" - }, - "last_login_ip": { - "type": "string" - }, - "level": { + "description": "是否实名 0.未实名,1.已实名", "type": "integer" }, "level_name": { @@ -4869,12 +5855,11 @@ "type": "string" }, "memo": { + "description": "备注", "type": "string" }, "nickname": { - "type": "string" - }, - "open_id": { + "description": "昵称", "type": "string" }, "parent_id": { @@ -4889,43 +5874,17 @@ "type": "string", "example": "推荐人手机号" }, - "parent_uid": { - "type": "integer" - }, - "passcode": { - "type": "string" - }, - "password": { - "type": "string" - }, "phone": { + "description": "手机号", "type": "string" }, "register_time": { "description": "注册时间", "type": "string" }, - "register_type": { - "type": "integer" - }, - "sex": { - "type": "integer" - }, - "state": { - "type": "integer" - }, - "system_invite_code": { - "type": "string" - }, "tag_name": { "description": "会员标签", "type": "string" - }, - "union_id": { - "type": "string" - }, - "update_at": { - "type": "string" } } }, @@ -5055,6 +6014,27 @@ } } }, + "md.UserManagementGetVirtualCoinDetailResp": { + "type": "object", + "properties": { + "coin_list": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": true + } + }, + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/md.VirtualCoinDetailNode" + } + }, + "paginate": { + "$ref": "#/definitions/applet_app_md_institutional_management_member_center.Paginate" + } + } + }, "md.UserManagementUpdateUserInfoReq": { "type": "object", "properties": { @@ -5062,24 +6042,48 @@ "description": "头像", "type": "string" }, - "disable": { - "description": "是否禁用用户", - "type": "boolean" - }, "last_login_ip": { "description": "用户最后登录 IP", "type": "string" }, + "level": { + "description": "会员等级 ID", + "type": "string" + }, "memo": { "type": "string", "example": "备注" }, + "nickname": { + "description": "用户名", + "type": "string" + }, + "parent_uid": { + "description": "邀请人 ID", + "type": "string" + }, + "phone": { + "description": "手机号", + "type": "string" + }, + "sex": { + "description": "性别(0:未知 1:男 2:女)", + "type": "string" + }, + "state": { + "description": "账号状态 1正常,2冻结", + "type": "string" + }, "tag": { "description": "用户标签 ID", - "type": "integer" + "type": "string" }, "uid": { "type": "integer" + }, + "union_id": { + "description": "微信号", + "type": "string" } } }, @@ -5217,6 +6221,31 @@ } } }, + "md.VirtualCoinDetailNode": { + "type": "object", + "properties": { + "after_amount": { + "description": "变更后积分余额", + "type": "string" + }, + "amount": { + "description": "变更数量", + "type": "string" + }, + "create_at": { + "description": "创建时间", + "type": "string" + }, + "direction": { + "description": "类型 1.收入 2.支出", + "type": "integer" + }, + "uid": { + "description": "用户 ID", + "type": "integer" + } + } + }, "md.VirtualCoinListNode": { "type": "object", "properties": { diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 90fa6bf..5c76aa7 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -166,6 +166,81 @@ definitions: description: 金额 type: string type: object + md.AddTagReq: + properties: + is_punish: + description: 是否为处罚标签(0:否 1:是) + type: string + memo: + description: 备注 + type: string + name: + description: 标签名称 + type: string + type: object + md.BalanceDetailNode: + properties: + after_amount: + description: 变更后余额 + type: string + amount: + description: 变更数量 + type: string + before_amount: + description: 变更前余额 + type: string + create_at: + description: 创建时间 + type: string + id: + description: 记录ID + type: integer + kind: + description: 类型 1:管理员操作增加余额 2:管理员操作扣除余额 3:蛋蛋能量兑换余额 4:余额兑换蛋蛋能量 + type: string + type: object + md.BasicInfoNode: + properties: + avatar: + description: 头像 + type: string + level_name: + description: 会员等级名称 + type: string + memo: + description: 备注 + type: string + nickname: + description: 用户名称 + type: string + parent_name: + description: 推荐人名称 + type: string + parent_phone: + description: 推荐人手机号 + type: string + parent_uid: + description: 推荐人 + type: integer + password: + description: 登录密码 + type: string + phone: + description: 手机号 + type: string + sex: + description: 性别 + type: integer + state: + description: 账号状态 1正常,2冻结 + type: integer + tag_name: + description: 标签名称 + type: string + union_id: + description: 微信号 + type: string + type: object md.DailyActivityAnalysisTopData: properties: activity_count: @@ -213,6 +288,22 @@ definitions: example: 团队区域 type: string type: object + md.DeleteFreePublishUserReq: + properties: + uid: + type: string + type: object + md.DeleteLevelReq: + properties: + level_id: + type: string + type: object + md.DeleteTagReq: + properties: + tag_id: + description: 标签 ID + type: string + type: object md.DestructionSettingStruct: properties: community_dividends: @@ -384,6 +475,30 @@ definitions: description: 位置2,具体值取返回数据中的 system_id type: integer type: object + md.FansNode: + properties: + amount: + description: 可提现余额 + type: string + id: + description: 用户ID + type: integer + level_total: + description: 所属代数 + type: integer + nickname: + example: 用户昵称 + type: string + phone: + example: 手机号 + type: string + register_at: + description: 注册时间 + type: string + total_income: + description: 累计收益 + type: string + type: object md.FindSubUserRelationshipMapResp: properties: basic_setting: @@ -808,6 +923,15 @@ definitions: description: 持有该类型用户数 type: integer type: object + md.GetLevelListResp: + properties: + list: + items: + $ref: '#/definitions/md.LevelListNode' + type: array + paginate: + $ref: '#/definitions/applet_app_md_institutional_management_member_center.Paginate' + type: object md.GetPriceCurveResp: properties: x_data: @@ -844,6 +968,15 @@ definitions: description: xx天未活跃,处罚滑落 type: integer type: object + md.GetTagListResp: + properties: + list: + items: + $ref: '#/definitions/md.TagListNode' + type: array + paginate: + $ref: '#/definitions/applet_app_md_institutional_management_member_center.Paginate' + type: object md.GetVideoRewardResp: properties: ecmp: @@ -853,6 +986,30 @@ definitions: description: 单价 type: string type: object + md.LevelListNode: + properties: + count: + description: 等级人数 + type: string + create_at: + description: 创建时间 + type: string + is_use: + description: 是否开启(0.否, 1.是) + type: integer + level_id: + description: 等级 ID + type: integer + level_name: + description: 等级名称 + type: string + level_weight: + description: 等级权重 + type: integer + memo: + description: 备注 + type: string + type: object md.ListCommunityDividendsReq: properties: end_at: @@ -1137,6 +1294,18 @@ definitions: description: 奖励系数 type: number type: object + md.OtherNode: + properties: + create_at: + description: 注册时间 + type: string + last_login_at: + description: 最近登录时间 + type: string + last_login_ip: + description: 最后登录 IP + type: string + type: object md.PlatformRevenueDataNode: properties: balance_amount: @@ -1463,6 +1632,24 @@ definitions: uid: type: integer type: object + md.TagListNode: + properties: + count: + description: 标签人数 + type: string + create_at: + description: 创建时间 + type: string + memo: + description: 备注 + type: string + name: + description: 名称 + type: string + tag_id: + description: 标签 ID + type: string + type: object md.TeamRewardSettingStruct: properties: member_self_is_open_get_team_reward: @@ -1552,6 +1739,23 @@ definitions: $ref: '#/definitions/md.VipEquitySettingNode' type: array type: object + md.UpdateLevelReq: + properties: + is_use: + description: 是否开启(0.否, 1.是) + type: integer + level_id: + type: string + level_name: + description: 等级名称 + type: string + level_weight: + description: 等级权重 + type: integer + memo: + description: 备注 + type: string + type: object md.UpdatePublicPlatoonBasicReq: properties: is_open: @@ -1576,6 +1780,18 @@ definitions: description: xx天未活跃,处罚滑落 type: integer type: object + md.UpdateTagReq: + properties: + memo: + description: 备注 + type: string + name: + description: 标签名称 + type: string + tag_id: + description: 标签 ID + type: string + type: object md.UserDailyActivityAnalysisReq: properties: end_date: @@ -1832,35 +2048,72 @@ definitions: description: 年份&&周份列表 type: object type: object + md.UserManagementGetBalanceDetailResp: + properties: + list: + items: + $ref: '#/definitions/md.BalanceDetailNode' + type: array + paginate: + $ref: '#/definitions/applet_app_md_institutional_management_member_center.Paginate' + type: object + md.UserManagementGetFansResp: + properties: + list: + description: 用户数据 + items: + $ref: '#/definitions/md.FansNode' + type: array + paginate: + allOf: + - $ref: '#/definitions/applet_app_md_institutional_management_member_center.Paginate' + description: 分页信息 + type: object + md.UserManagementGetOneBasicResp: + properties: + basic_info: + allOf: + - $ref: '#/definitions/md.BasicInfoNode' + description: 基本信息 + levels_list: + description: 等级列表 + items: + additionalProperties: true + type: object + type: array + other_info: + allOf: + - $ref: '#/definitions/md.OtherNode' + description: 其他信息 + tags_list: + description: 标签列表 + items: + additionalProperties: true + type: object + type: array + type: object md.UserManagementGetUserListNode: properties: avatar: - type: string - create_at: - type: string - custom_invite_code: + description: 头像 type: string id: + description: 会员 ID type: integer invite_code: example: 会员邀请码 type: string - invite_total: - type: integer is_real_name: - type: integer - last_login_ip: - type: string - level: + description: 是否实名 0.未实名,1.已实名 type: integer level_name: description: 会员等级 type: string memo: + description: 备注 type: string nickname: - type: string - open_id: + description: 昵称 type: string parent_id: description: 推荐人 ID @@ -1871,32 +2124,15 @@ definitions: parent_phone: example: 推荐人手机号 type: string - parent_uid: - type: integer - passcode: - type: string - password: - type: string phone: + description: 手机号 type: string register_time: description: 注册时间 type: string - register_type: - type: integer - sex: - type: integer - state: - type: integer - system_invite_code: - type: string tag_name: description: 会员标签 type: string - union_id: - type: string - update_at: - type: string type: object md.UserManagementGetUserListReq: properties: @@ -1988,25 +2224,57 @@ definitions: type: object type: array type: object + md.UserManagementGetVirtualCoinDetailResp: + properties: + coin_list: + items: + additionalProperties: true + type: object + type: array + list: + items: + $ref: '#/definitions/md.VirtualCoinDetailNode' + type: array + paginate: + $ref: '#/definitions/applet_app_md_institutional_management_member_center.Paginate' + type: object md.UserManagementUpdateUserInfoReq: properties: avatar: description: 头像 type: string - disable: - description: 是否禁用用户 - type: boolean last_login_ip: description: 用户最后登录 IP type: string + level: + description: 会员等级 ID + type: string memo: example: 备注 type: string + nickname: + description: 用户名 + type: string + parent_uid: + description: 邀请人 ID + type: string + phone: + description: 手机号 + type: string + sex: + description: 性别(0:未知 1:男 2:女) + type: string + state: + description: 账号状态 1正常,2冻结 + type: string tag: description: 用户标签 ID - type: integer + type: string uid: type: integer + union_id: + description: 微信号 + type: string type: object md.UserVirtualCoinFlow: properties: @@ -2102,6 +2370,24 @@ definitions: update_at: type: string type: object + md.VirtualCoinDetailNode: + properties: + after_amount: + description: 变更后积分余额 + type: string + amount: + description: 变更数量 + type: string + create_at: + description: 创建时间 + type: string + direction: + description: 类型 1.收入 2.支出 + type: integer + uid: + description: 用户 ID + type: integer + type: object md.VirtualCoinListNode: properties: coin_id: @@ -3199,42 +3485,42 @@ paths: summary: 制度中心-公排管理-公排基础设置(获取) tags: - 公排管理 - /api/institutionalManagement/publicPlatoon/publicPlatoonUserFreePunish/index: - post: + /api/institutionalManagement/publicPlatoon/publicPlatoonUserFreePunish/delete: + delete: consumes: - application/json - description: 免罚用户(查询) + description: 免罚用户(删除) parameters: - description: 验证参数Bearer和token空格拼接 in: header name: Authorization required: true type: string - - description: 页数和行数必填,uid选填 + - description: 免罚用户ID in: body name: req required: true schema: - $ref: '#/definitions/md.GetFreePublishUserReq' + $ref: '#/definitions/md.DeleteFreePublishUserReq' produces: - application/json responses: "200": - description: 成功返回 + description: 删除数据数量 schema: - $ref: '#/definitions/md.GetFreePublishUserResp' + type: int "400": description: 具体错误 schema: $ref: '#/definitions/md.Response' - summary: 制度中心-公排管理-免罚用户(查询) + summary: 制度中心-公排管理-免罚用户(删除) tags: - 公排管理 - /api/institutionalManagement/publicPlatoon/publicPlatoonUserFreePunish/save: + /api/institutionalManagement/publicPlatoon/publicPlatoonUserFreePunish/index: post: consumes: - application/json - description: 免罚用户(新增) + description: 免罚用户(查询) parameters: - description: 验证参数Bearer和token空格拼接 in: header @@ -3242,6 +3528,37 @@ paths: required: true type: string - description: 页数和行数必填,uid选填 + in: body + name: req + required: true + schema: + $ref: '#/definitions/md.GetFreePublishUserReq' + produces: + - application/json + responses: + "200": + description: 成功返回 + schema: + $ref: '#/definitions/md.GetFreePublishUserResp' + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 制度中心-公排管理-免罚用户(查询) + tags: + - 公排管理 + /api/institutionalManagement/publicPlatoon/publicPlatoonUserFreePunish/save: + post: + consumes: + - application/json + description: 免罚用户(新增) + parameters: + - description: 验证参数Bearer和token空格拼接 + in: header + name: Authorization + required: true + type: string + - description: 免罚用户ID in: body name: req required: true @@ -3533,6 +3850,316 @@ paths: summary: 制度中心-营销应用-新人红包设置(修改) tags: - 营销应用 + /api/memberCenter/levelManagement/deleteLevel: + post: + consumes: + - application/json + description: 等级管理(删除) + parameters: + - description: 验证参数Bearer和token空格拼接 + in: header + name: Authorization + required: true + type: string + - description: 需要删除的等级 ID + in: body + name: req + required: true + schema: + $ref: '#/definitions/md.DeleteLevelReq' + produces: + - application/json + responses: + "200": + description: 成功删除数据数量 + schema: + type: int + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 制度中心-会员中心-等级管理(删除) + tags: + - 会员中心 + /api/memberCenter/levelManagement/getLevelList: + get: + consumes: + - application/json + description: 标签管理(获取) + parameters: + - description: 验证参数Bearer和token空格拼接 + in: header + name: Authorization + required: true + type: string + - description: 每页大小 + in: query + name: limit + required: true + type: integer + - description: 页数 + in: query + name: page + required: true + type: integer + produces: + - application/json + responses: + "200": + description: 具体数据 + schema: + $ref: '#/definitions/md.GetLevelListResp' + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 制度中心-会员中心-等级管理(获取) + tags: + - 会员中心 + /api/memberCenter/levelManagement/updateLevel: + post: + consumes: + - application/json + description: 等级管理(更新) + parameters: + - description: 验证参数Bearer和token空格拼接 + in: header + name: Authorization + required: true + type: string + - description: 需要修改的等级信息 + in: body + name: req + required: true + schema: + $ref: '#/definitions/md.UpdateLevelReq' + produces: + - application/json + responses: + "200": + description: 成功修改数据条数 + schema: + type: int + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 制度中心-会员中心-等级管理(更新) + tags: + - 会员中心 + /api/memberCenter/tagManagement/addTag: + post: + consumes: + - application/json + description: 标签管理(新增) + parameters: + - description: 验证参数Bearer和token空格拼接 + in: header + name: Authorization + required: true + type: string + - description: 新增的标签信息 + in: body + name: req + required: true + schema: + $ref: '#/definitions/md.AddTagReq' + produces: + - application/json + responses: + "200": + description: 新增的标签 ID + schema: + type: int + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 制度中心-会员中心-标签管理(新增) + tags: + - 会员中心 + /api/memberCenter/tagManagement/deleteTag: + post: + consumes: + - application/json + description: 标签管理(删除) + parameters: + - description: 验证参数Bearer和token空格拼接 + in: header + name: Authorization + required: true + type: string + - description: 需要删除的标签 ID + in: body + name: req + required: true + schema: + $ref: '#/definitions/md.DeleteTagReq' + produces: + - application/json + responses: + "200": + description: 成功删除标签用户数 + schema: + type: int + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 制度中心-会员中心-标签管理(删除) + tags: + - 会员中心 + /api/memberCenter/tagManagement/getTagList: + get: + consumes: + - application/json + description: 标签管理(获取) + parameters: + - description: 验证参数Bearer和token空格拼接 + in: header + name: Authorization + required: true + type: string + - description: 每页大小 + in: query + name: limit + required: true + type: integer + - description: 页数 + in: query + name: page + required: true + type: integer + produces: + - application/json + responses: + "200": + description: 具体数据 + schema: + $ref: '#/definitions/md.GetTagListResp' + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 制度中心-会员中心-标签管理(获取) + tags: + - 会员中心 + /api/memberCenter/tagManagement/updateTag: + post: + consumes: + - application/json + description: 标签管理(更新) + parameters: + - description: 验证参数Bearer和token空格拼接 + in: header + name: Authorization + required: true + type: string + - description: 需要修改的标签信息 + in: body + name: req + required: true + schema: + $ref: '#/definitions/md.UpdateTagReq' + produces: + - application/json + responses: + "200": + description: 成功修改数据条数 + schema: + type: int + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 制度中心-会员中心-标签管理(更新) + tags: + - 会员中心 + /api/memberCenter/userManagement/balanceDetail: + get: + consumes: + - application/json + description: 会员明细(余额获取) + parameters: + - description: 验证参数Bearer和token空格拼接 + in: header + name: Authorization + required: true + type: string + - description: 用户 ID + in: query + name: uid + required: true + type: string + - description: 每页大小 + in: query + name: limit + required: true + type: string + - description: 页数 + in: query + name: page + required: true + type: string + produces: + - application/json + responses: + "200": + description: 具体数据 + schema: + $ref: '#/definitions/md.UserManagementGetBalanceDetailResp' + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 制度中心-会员中心-用户管理-会员明细(余额获取) + tags: + - 会员中心 + /api/memberCenter/userManagement/getFans: + get: + consumes: + - application/json + description: 会员明细粉丝情况(获取) + parameters: + - description: 验证参数Bearer和token空格拼接 + in: header + name: Authorization + required: true + type: string + - description: 用户 ID + in: query + name: uid + required: true + type: string + - description: 粉丝类型(1.全部 2.直推 3.二代 4.二代以后) + in: query + name: type + required: true + type: string + - description: 每页大小 + in: query + name: limit + required: true + type: string + - description: 页数 + in: query + name: page + required: true + type: string + produces: + - application/json + responses: + "200": + description: 具体数据 + schema: + $ref: '#/definitions/md.UserManagementGetFansResp' + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 制度中心-会员中心-用户管理-会员明细粉丝情况(获取) + tags: + - 会员中心 /api/memberCenter/userManagement/getUserList: post: consumes: @@ -3561,7 +4188,52 @@ paths: description: 具体错误 schema: $ref: '#/definitions/md.Response' - summary: 制度中心-会员中心-用户信息管理(获取) + summary: 制度中心-会员中心-用户管理-用户信息管理(获取) + tags: + - 会员中心 + /api/memberCenter/userManagement/getVirtualCoinDetail: + get: + consumes: + - application/json + description: 会员明细(积分明细获取) + parameters: + - description: 验证参数Bearer和token空格拼接 + in: header + name: Authorization + required: true + type: string + - description: 用户 ID + in: query + name: uid + required: true + type: string + - description: 货币 ID + in: query + name: coinId + required: true + type: string + - description: 每页大小 + in: query + name: limit + required: true + type: string + - description: 页数 + in: query + name: page + required: true + type: string + produces: + - application/json + responses: + "200": + description: 具体数据 + schema: + $ref: '#/definitions/md.UserManagementGetVirtualCoinDetailResp' + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 制度中心-会员中心-用户管理-会员明细(积分明细获取) tags: - 会员中心 /api/memberCenter/userManagement/updateUserInfo: @@ -3592,7 +4264,37 @@ paths: description: 具体错误 schema: $ref: '#/definitions/md.Response' - summary: 制度中心-会员中心-用户信息管理(更新) + summary: 制度中心-会员中心-用户管理-用户信息管理(更新) + tags: + - 会员中心 + /api/memberCenter/userManagement/userData: + get: + consumes: + - application/json + description: 会员明细概况(获取) + parameters: + - description: 验证参数Bearer和token空格拼接 + in: header + name: Authorization + required: true + type: string + - description: 用户 ID + in: query + name: uid + required: true + type: string + produces: + - application/json + responses: + "200": + description: 会员明细概况具体数据 + schema: + $ref: '#/definitions/md.UserManagementGetOneBasicResp' + "400": + description: 具体错误 + schema: + $ref: '#/definitions/md.Response' + summary: 制度中心-会员中心-用户管理-会员明细概况(获取) tags: - 会员中心 securityDefinitions: diff --git a/go.mod b/go.mod index bcbf905..a2509de 100644 --- a/go.mod +++ b/go.mod @@ -2,9 +2,9 @@ module applet go 1.19 -//replace code.fnuoos.com/EggPlanet/egg_models.git => E:/company/Egg/egg_models +// replace code.fnuoos.com/EggPlanet/egg_models.git => E:/company/Egg/egg_models -//replace code.fnuoos.com/EggPlanet/egg_system_rules.git => E:/company/Egg/egg_system_rules +// replace code.fnuoos.com/EggPlanet/egg_system_rules.git => E:/company/Egg/egg_system_rules require ( github.com/boombuler/barcode v1.0.1 @@ -33,8 +33,8 @@ require ( ) require ( - code.fnuoos.com/EggPlanet/egg_models.git v0.2.1-0.20241119072710-bbf44c7edfcf - code.fnuoos.com/EggPlanet/egg_system_rules.git v0.0.4-0.20241119073336-d4afc68102da + code.fnuoos.com/EggPlanet/egg_models.git v0.2.1-0.20241119094250-95864f7c9763 + code.fnuoos.com/EggPlanet/egg_system_rules.git v0.0.4-0.20241119094006-9ba1ab4607e9 code.fnuoos.com/go_rely_warehouse/zyos_go_es.git v1.0.1-0.20241118083738-0f22da9ba0be code.fnuoos.com/go_rely_warehouse/zyos_go_mq.git v0.0.5 github.com/aliyun/aliyun-oss-go-sdk v3.0.2+incompatible