Kaynağa Gözat

git fix

master
dengbiao 1 hafta önce
ebeveyn
işleme
0ed6997162
14 değiştirilmiş dosya ile 1290 ekleme ve 37 silme
  1. +2
    -2
      app/hdl/institutional_management/egg_energy/hdl_user_coin.go
  2. +21
    -0
      app/hdl/institutional_management/public_platoon/hdl_basic.go
  3. +4
    -4
      app/hdl/member_center/hdl_certificate.go
  4. +262
    -2
      app/hdl/member_center/hdl_user_management.go
  5. +5
    -0
      app/md/md_mq.go
  6. +4
    -4
      app/md/md_website.go
  7. +4
    -1
      app/md/member_center/md_user_management.go
  8. +5
    -0
      app/router/router.go
  9. +1
    -1
      app/svc/member_center/svc_certificate.go
  10. +6
    -1
      app/svc/member_center/svc_user_management.go
  11. +366
    -9
      docs/docs.go
  12. +364
    -6
      docs/swagger.json
  13. +245
    -6
      docs/swagger.yaml
  14. +1
    -1
      go.mod

+ 2
- 2
app/hdl/institutional_management/egg_energy/hdl_user_coin.go Dosyayı Görüntüle

@@ -68,7 +68,7 @@ func GetEggEnergyUserCoinList(c *gin.Context) {
e.OutErr(c, e.ERR_DB_ORM, err3.Error())
return
}
activePointsWalletList := make([]md.ActivePointsWalletNode, len(wallets))
activePointsWalletList := make([]md.ActivePointsWalletNode, 0, len(wallets))
userDb := implement.NewUserDb(db.Db)
userIDs := make([]int64, len(wallets))
for i, wallet := range wallets {
@@ -236,7 +236,7 @@ func GetEggPointsUserCoinList(c *gin.Context) {
e.OutErr(c, e.ERR_DB_ORM, err3.Error())
return
}
activePointsWalletList := make([]md.ActivePointsWalletNode, len(wallets))
activePointsWalletList := make([]md.ActivePointsWalletNode, 0, len(wallets))
userDb := implement.NewUserDb(db.Db)
userIDs := make([]int64, len(wallets))
for i, wallet := range wallets {


+ 21
- 0
app/hdl/institutional_management/public_platoon/hdl_basic.go Dosyayı Görüntüle

@@ -800,6 +800,27 @@ func AddCommunityDividendsWithUser(c *gin.Context) {
e.OutSuc(c, id, nil)
}

// DelCommunityDividendsWithUser
// @Summary 制度中心-公排管理-社区长列表(删除)
// @Tags 公排管理
// @Description 社区长列表(删除)
// @param Authorization header string true "验证参数Bearer和token空格拼接"
// @Accept json
// @Produce json
// @Success 200 {int} "删除数据数量"
// @Failure 400 {object} md.Response "具体错误"
// @Router /api/institutionalManagement/publicPlatoon/communityDividends/communityDividendsWithUserDel/{$id} [DELETE]
func DelCommunityDividendsWithUser(c *gin.Context) {
id := c.Param("id")
dividendsWithUserDb := implement.NewEggEnergyCommunityDividendsWithUserDb(db.Db)
affected, err := dividendsWithUserDb.EggEnergyCommunityDividendsWithUserDel(id)
if err != nil {
e.OutErr(c, e.ERR_DB_ORM, err.Error())
return
}
e.OutSuc(c, affected, nil)
}

// UserDailyActivityAnalysis
// @Summary 制度中心-公排管理-日活分析
// @Tags 公排管理


+ 4
- 4
app/hdl/member_center/hdl_certificate.go Dosyayı Görüntüle

@@ -12,8 +12,8 @@ import (
// @Accept json
// @Produce json
// @param Authorization header string true "验证参数Bearer和token空格拼接"
// @Param req body md.AdvertisingListReq true "(分页信息必填)"
// @Success 200 {object} md.AdvertisingListResp "具体数据"
// @Param req body md.CertificateListReq true "(分页信息必填)"
// @Success 200 {object} md.CertificateListResp "具体数据"
// @Failure 400 {object} md.Response "具体错误"
// @Router /api/memberCenter/certificate/list [post]
func CertificateList(c *gin.Context) {
@@ -27,7 +27,7 @@ func CertificateList(c *gin.Context) {
// @Accept json
// @Produce json
// @param Authorization header string true "验证参数Bearer和token空格拼接"
// @Param req body md.AdvertisingDelReq true "(分页信息必填)"
// @Param req body md.CertificateDelReq true "(分页信息必填)"
// @Success 200 {string} "具体数据"
// @Failure 400 {object} md.Response "具体错误"
// @Router /api/memberCenter/certificate/del [post]
@@ -42,7 +42,7 @@ func CertificateDel(c *gin.Context) {
// @Accept json
// @Produce json
// @param Authorization header string true "验证参数Bearer和token空格拼接"
// @Param req body md.AdvertisingSaveReq true "(分页信息必填)"
// @Param req body md.CertificateSave true "(分页信息必填)"
// @Success 200 {string} "具体数据"
// @Failure 400 {object} md.Response "具体错误"
// @Router /api/memberCenter/certificate/save [post]


+ 262
- 2
app/hdl/member_center/hdl_user_management.go Dosyayı Görüntüle

@@ -3,15 +3,20 @@ package member_center
import (
"applet/app/db"
"applet/app/e"
md2 "applet/app/md"
"applet/app/md/member_center"
svc2 "applet/app/svc"
svc "applet/app/svc/member_center"
"applet/app/utils"
"applet/app/utils/cache"
"code.fnuoos.com/EggPlanet/egg_models.git/src/implement"
"code.fnuoos.com/EggPlanet/egg_models.git/src/model"
"code.fnuoos.com/go_rely_warehouse/zyos_go_mq.git/rabbit"
"errors"
"fmt"
"github.com/gin-gonic/gin"
"strings"
"time"
)

// UserManagementGetUserList
@@ -115,7 +120,7 @@ func UserManagementGetUserList(c *gin.Context) {
InviteCode: user.SystemInviteCode,
ParentID: user.ParentUid,
ParentInviteCode: user.ParentSystemInviteCode,
ParentPhone: user.Phone,
ParentPhone: user.ParentPhone,
RegisterTime: user.CreateAt,
Memo: user.Memo,
Wechat: user.UnionId,
@@ -180,6 +185,261 @@ func UserManagementUpdateUserInfo(c *gin.Context) {
e.OutSuc(c, affected, nil)
}

// UserManagementGetUserRecycleList
// @Summary 会员中心-用户管理-回收站列表
// @Tags 会员中心
// @Description 回收站列表
// @Accept json
// @Produce json
// @param Authorization header string true "验证参数Bearer和token空格拼接"
// @Param req body md.UserManagementGetUserListReq true "分页信息必填"
// @Success 200 {object} md.UserManagementGetUserListResp "具体数据"
// @Failure 400 {object} md.Response "具体错误"
// @Router /api/memberCenter/userManagement/userRecycleList [post]
func UserManagementGetUserRecycleList(c *gin.Context) {
var req *md.UserManagementGetUserListReq
if err := c.ShouldBindJSON(&req); err != nil {
e.OutErr(c, e.ERR_INVALID_ARGS, err.Error())
return
}
req.IsRecycle = "1"
levelDb := implement.NewUserLevelDb(db.Db)
levels, err1 := levelDb.UserLevelAllByAsc()
if err1 != nil {
e.OutErr(c, e.ERR_DB_ORM, err1.Error())
return
}
levelsList := make([]map[string]interface{}, 0)
levelsMap := make(map[int]string)
for _, level := range levels {
levelsList = append(levelsList, map[string]interface{}{
"id": level.Id,
"name": level.LevelName,
})
levelsMap[level.Id] = level.LevelName
}

tagDb := implement.NewUserTagDb(db.Db)
tags, err2 := tagDb.UserTagAllByAsc()
if err2 != nil {
e.OutErr(c, e.ERR_DB_ORM, err2.Error())
return
}
tagsList := make([]map[string]interface{}, 0)
tagsMap := make(map[int]string)
for _, tag := range tags {
tagsList = append(tagsList, map[string]interface{}{
"id": tag.Id,
"name": tag.TagName,
})
tagsMap[tag.Id] = tag.TagName
}

stateList := []map[string]interface{}{
{
"name": "正常",
"value": "1",
},
{
"name": "冻结",
"value": "2",
},
}

users, total, err3 := svc.UserManagementGetUsers(req)
if err3 != nil {
e.OutErr(c, e.ERR_DB_ORM, err3.Error())
return
}
userIDs := make([]int64, len(users))
for i, user := range users {
userIDs[i] = user.Id
}

recordsDb := implement.NewUserTagRecordsDb(db.Db)
records, err := recordsDb.UserTagRecordsFindByParams(map[string]interface{}{
"key": "uid",
"value": userIDs,
})
if err != nil {
e.OutErr(c, e.ERR_DB_ORM, err.Error())
return
}

var levelCounts []md.LevelCount
err4 := db.Db.Table("user").Select("level, Count(*) AS count").GroupBy("level").Find(&levelCounts)
if err4 != nil {
e.OutErr(c, e.ERR_DB_ORM, err4.Error())
return
}

userMap := make(map[int64]int, len(users))
list := make([]md.UserManagementGetUserListNode, len(users))
for i, user := range users {
list[i] = md.UserManagementGetUserListNode{
ID: user.Id,
Sex: user.Sex,
Avatar: svc2.GetOssUrl(user.Avatar),
Nickname: user.Nickname,
Phone: user.Phone,
IsRealName: user.IsRealName,
InviteCode: user.SystemInviteCode,
ParentID: user.ParentUid,
ParentInviteCode: user.ParentSystemInviteCode,
ParentPhone: user.ParentPhone,
RegisterTime: user.CreateAt,
Memo: user.Memo,
Wechat: user.UnionId,
RegisterType: user.RegisterType,
State: user.State,
LastLoginAt: user.UpdateAt,
}
var tempTagList []md.TagNode
list[i].Tag = tempTagList
userMap[user.Id] = i
level, ok := levelsMap[user.Level]
if ok {
list[i].LevelName = level
}
}

for _, record := range *records {
tempTagNode := md.TagNode{
TagID: record.TagId,
TagName: tagsMap[record.TagId],
}
list[userMap[record.Uid]].Tag = append(list[userMap[record.Uid]].Tag, tempTagNode)
}

resp := md.UserManagementGetUserListResp{
LevelsList: levelsList,
TagsList: tagsList,
StateList: stateList,
List: list,
Paginate: md.Paginate{
Limit: req.Limit,
Page: req.Page,
Total: total,
},
}
e.OutSuc(c, resp, nil)
}

// UserManagementUserRecycle
// @Summary 会员中心-用户管理-删除到回收站
// @Tags 会员中心
// @Description 删除到回收站
// @Accept json
// @Produce json
// @param Authorization header string true "验证参数Bearer和token空格拼接"
// @Param req body md.UserManagementUserInfoReq true "用户ID 必传"
// @Success 200 {int} "修改数据行数"
// @Failure 400 {object} md.Response "具体错误"
// @Router /api/memberCenter/userManagement/userRecycle [post]
func UserManagementUserRecycle(c *gin.Context) {
var req *md.UserManagementUserInfoReq
if err := c.ShouldBindJSON(&req); err != nil {
e.OutErr(c, e.ERR_INVALID_ARGS, err.Error())
return
}
NewUserDb := implement.NewUserDb(db.Db)
user, _ := NewUserDb.GetUser(utils.StrToInt64(req.UID))
if user == nil {
e.OutErr(c, 400, e.NewErr(400, "用户不存在"))
return
}
user.State = 4
db.Db.Where("id=?", user.Id).Cols("state").Update(user)
admin := svc2.GetUser(c)
svc2.AddAdminLog(c, admin.AdmId, "用户回收", "用户id:"+utils.Int64ToStr(user.Id)+",用户手机号:"+user.Phone+" 删除到回收站", utils.SerializeStr(user))
e.OutSuc(c, "success", nil)
}

// UserManagementUserRecycleCancel
// @Summary 会员中心-用户管理-恢复到会员列表
// @Tags 会员中心
// @Description 恢复到会员列表
// @Accept json
// @Produce json
// @param Authorization header string true "验证参数Bearer和token空格拼接"
// @Param req body md.UserManagementUserInfoReq true "用户ID 必传"
// @Success 200 {int} "修改数据行数"
// @Failure 400 {object} md.Response "具体错误"
// @Router /api/memberCenter/userManagement/userRecycleCancel [post]
func UserManagementUserRecycleCancel(c *gin.Context) {
var req *md.UserManagementUserInfoReq
if err := c.ShouldBindJSON(&req); err != nil {
e.OutErr(c, e.ERR_INVALID_ARGS, err.Error())
return
}
NewUserDb := implement.NewUserDb(db.Db)
user, _ := NewUserDb.GetUser(utils.StrToInt64(req.UID))
if user == nil {
e.OutErr(c, 400, e.NewErr(400, "用户不存在"))
return
}
user.State = 1
db.Db.Where("id=?", user.Id).Cols("state").Update(user)
admin := svc2.GetUser(c)
svc2.AddAdminLog(c, admin.AdmId, "用户恢复", "用户id:"+utils.Int64ToStr(user.Id)+",用户手机号:"+user.Phone+" 恢复到会员列表", utils.SerializeStr(user))
e.OutSuc(c, "success", nil)
}

// UserManagementUserDelete
// @Summary 会员中心-用户管理-永久删除
// @Tags 会员中心
// @Description 删除到回收站
// @Accept json
// @Produce json
// @param Authorization header string true "验证参数Bearer和token空格拼接"
// @Param req body md.UserManagementUserInfoReq true "用户ID 必传"
// @Success 200 {int} "修改数据行数"
// @Failure 400 {object} md.Response "具体错误"
// @Router /api/memberCenter/userManagement/userDelete [post]
func UserManagementUserDelete(c *gin.Context) {
var req *md.UserManagementUserInfoReq
if err := c.ShouldBindJSON(&req); err != nil {
e.OutErr(c, e.ERR_INVALID_ARGS, err.Error())
return
}
NewUserDb := implement.NewUserDb(db.Db)
user, _ := NewUserDb.GetUser(utils.StrToInt64(req.UID))
if user == nil {
e.OutErr(c, 400, e.NewErr(400, "用户不存在"))
return
}
if user.State != 4 {
e.OutErr(c, 400, e.NewErr(400, "不能删除"))
return
}
user.State = 3
db.Db.Where("id=?", user.Id).Cols("state").Update(user)
tmp := model.UserDeleteInfo{
Uid: int(user.Id),
Phone: user.Phone,
CreateAt: time.Now(),
}
db.Db.Insert(&tmp)
ch, err := rabbit.Cfg.Pool.GetChannel()
if err == nil {
defer ch.Release()
err = ch.PublishV2(md2.EggUserExchange, md2.CommUserId{
Uid: utils.Int64ToStr(user.Id),
}, md2.EggUserDelete)
if err != nil {
ch.PublishV2(md2.EggUserExchange, md2.CommUserId{
Uid: utils.Int64ToStr(user.Id),
}, md2.EggUserDelete)
}
}
// 清掉token
cacheKey := fmt.Sprintf("egg_app_jwt_token:%d", user.Id)
_, err = cache.SetEx(cacheKey, "", 1)
admin := svc2.GetUser(c)
svc2.AddAdminLog(c, admin.AdmId, "用户永久删除", "用户id:"+utils.Int64ToStr(user.Id)+",用户手机号:"+user.Phone+" 永久删除", utils.SerializeStr(user))
e.OutSuc(c, "success", nil)
}

// UserManagementGetOneBasic
// @Summary 制度中心-会员中心-用户管理-会员明细概况(获取)
// @Tags 会员中心
@@ -262,7 +522,7 @@ func UserManagementGetOneBasic(c *gin.Context) {
TagsList: tagsList,
LevelsList: levelsList,
BasicInfo: md.BasicInfoNode{
Avatar: user.Avatar,
Avatar: svc2.GetOssUrl(user.Avatar),
Sex: user.Sex,
Nickname: user.Nickname,
LevelId: user.Level,


+ 5
- 0
app/md/md_mq.go Dosyayı Görüntüle

@@ -3,8 +3,13 @@ package md
const (
EggJpushRecordQueueExchange = "egg.jpush"
EggJpushRecordQueue = "jpush_record"
EggUserExchange = "egg.user"
EggUserDelete = "user_delete"
)

type JpushRecordFundData struct {
Id string `json:"id"`
}
type CommUserId struct {
Uid string `json:"uid"`
}

+ 4
- 4
app/md/md_website.go Dosyayı Görüntüle

@@ -31,9 +31,9 @@ type CertificateResp struct {
}

var Certificate = CertificateResp{
Logo: "default_icon/certificate_logo.jpg",
Logo: "default_icon/certificate_logo.png",
BgImg: "default_icon/certificate_bg_img.jpg",
NameIcon: "default_icon/certificate_name_icon.jpg",
Medal: "default_icon/certificate_medal.jpg",
Seal: "default_icon/certificate_seal.jpg",
NameIcon: "default_icon/certificate_name_icon.png",
Medal: "default_icon/certificate_medal.png",
Seal: "default_icon/certificate_seal.png",
}

+ 4
- 1
app/md/member_center/md_user_management.go Dosyayı Görüntüle

@@ -27,6 +27,7 @@ type UserManagementGetUserListReq struct {
LoginAfter string `json:"login_after"` // 最近登录结束时间
Page int `json:"page,required"`
Limit int `json:"limit,required"`
IsRecycle string `json:"is_recycle"`
}

type Paginate struct {
@@ -92,7 +93,9 @@ type UserManagementUpdateUserInfoReq struct {
ParentUid string `json:"parent_uid"` // 邀请人 ID
Password string `json:"password"` // 登录密码
}

type UserManagementUserInfoReq struct {
UID string `json:"uid"`
}
type TagNode struct {
TagID int `json:"tag_id"` // 标签 ID
TagName string `json:"tag_name"` // 标签名称


+ 5
- 0
app/router/router.go Dosyayı Görüntüle

@@ -235,6 +235,7 @@ func rInstitutionalManagement(r *gin.RouterGroup) { //制度管理
rCommunityDividends.POST("/communityDividendsAdd", public_platoon.AddCommunityDividends)
rCommunityDividends.POST("/communityDividendsWithUserList", public_platoon.ListCommunityDividendsWithUser)
rCommunityDividends.POST("/communityDividendsWithUserAdd", public_platoon.AddCommunityDividendsWithUser)
rCommunityDividends.DELETE("/communityDividendsWithUserDel/:id", public_platoon.DelCommunityDividendsWithUser)
}
rUserDailyActivityAnalysis := rPublicPlatoon.Group("/userDailyActivityAnalysis")
{
@@ -335,6 +336,10 @@ func rMemberCenter(r *gin.RouterGroup) { // 会员中心
rUserManagement.POST("/getUserList", member_center.UserManagementGetUserList)
rUserManagement.GET("/userData", member_center.UserManagementGetOneBasic)
rUserManagement.POST("/updateUserInfo", member_center.UserManagementUpdateUserInfo)
rUserManagement.POST("/userRecycle", member_center.UserManagementUserRecycle)
rUserManagement.POST("/userRecycleCancel", member_center.UserManagementUserRecycleCancel)
rUserManagement.POST("/userRecycleList", member_center.UserManagementGetUserRecycleList)
rUserManagement.POST("/userDelete", member_center.UserManagementUserDelete)
rUserManagement.GET("/getFans", member_center.UserManagementGetFans)
rUserManagement.GET("/balanceDetail", member_center.UserManagementGetBalanceDetail)
rUserManagement.GET("/getVirtualCoinDetail", member_center.UserManagementGetVirtualCoinDetail)


+ 1
- 1
app/svc/member_center/svc_certificate.go Dosyayı Görüntüle

@@ -21,7 +21,7 @@ func CertificateList(c *gin.Context) {
if req.Phone != "" {
NewUserDb := implement.NewUserDb(db.Db)
user, _ := NewUserDb.UserGetOneByParams(map[string]interface{}{
"key": "id",
"key": "phone",
"value": req.Phone,
})
req.Uid = "0"


+ 6
- 1
app/svc/member_center/svc_user_management.go Dosyayı Görüntüle

@@ -22,7 +22,7 @@ func UserManagementGetUsers(req *md.UserManagementGetUserListReq) ([]*md.UserInf
return nil, 0, err
}

err = pageSess.Distinct("a.*").Limit(req.Limit, (req.Page-1)*req.Limit).Asc("a.id").Find(&users)
err = pageSess.Distinct("a.*").Limit(req.Limit, (req.Page-1)*req.Limit).Desc("a.id").Find(&users)
if err != nil {
return nil, 0, err
}
@@ -33,6 +33,11 @@ func userManagementGetUsersBindQuery(engine *xorm.Engine, req *md.UserManagement
session := engine.Table("user").Alias("a").
Join("LEFT OUTER", []string{"user", "b"}, "a.parent_uid = b.id").
Join("LEFT OUTER", "user_tag_records", "user_tag_records.uid = a.id")
if req.IsRecycle == "1" {
session = session.In("a.state", []string{"4"})
} else {
session = session.In("a.state", []string{"1", "2"})
}
if req.ID != 0 {
session = session.Where("a.id = ?", req.ID)
}


+ 366
- 9
docs/docs.go Dosyayı Görüntüle

@@ -1,4 +1,5 @@
// Package docs Code generated by swaggo/swag. DO NOT EDIT
// Code generated by swaggo/swag. DO NOT EDIT.

package docs

import "github.com/swaggo/swag"
@@ -1523,7 +1524,9 @@ const docTemplate = `{
"name": "req",
"in": "body",
"required": true,
"schema": {}
"schema": {
"type": "object"
}
}
],
"responses": {
@@ -4961,6 +4964,44 @@ const docTemplate = `{
}
}
},
"/api/institutionalManagement/publicPlatoon/communityDividends/communityDividendsWithUserDel/{$id}": {
"delete": {
"description": "社区长列表(删除)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"公排管理"
],
"summary": "制度中心-公排管理-社区长列表(删除)",
"parameters": [
{
"type": "string",
"description": "验证参数Bearer和token空格拼接",
"name": "Authorization",
"in": "header",
"required": true
}
],
"responses": {
"200": {
"description": "删除数据数量",
"schema": {
"type": "int"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/institutionalManagement/publicPlatoon/communityDividends/communityDividendsWithUserList": {
"post": {
"description": "社区长列表(查询)",
@@ -5763,7 +5804,7 @@ const docTemplate = `{
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.AdvertisingDelReq"
"$ref": "#/definitions/md.CertificateDelReq"
}
}
],
@@ -5810,7 +5851,7 @@ const docTemplate = `{
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.AdvertisingListReq"
"$ref": "#/definitions/md.CertificateListReq"
}
}
],
@@ -5818,7 +5859,7 @@ const docTemplate = `{
"200": {
"description": "具体数据",
"schema": {
"$ref": "#/definitions/md.AdvertisingListResp"
"$ref": "#/definitions/md.CertificateListResp"
}
},
"400": {
@@ -5857,7 +5898,7 @@ const docTemplate = `{
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.AdvertisingSaveReq"
"$ref": "#/definitions/md.CertificateSave"
}
}
],
@@ -6685,6 +6726,194 @@ const docTemplate = `{
}
}
},
"/api/memberCenter/userManagement/userDelete": {
"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.UserManagementUserInfoReq"
}
}
],
"responses": {
"200": {
"description": "修改数据行数",
"schema": {
"type": "int"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/memberCenter/userManagement/userRecycle": {
"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.UserManagementUserInfoReq"
}
}
],
"responses": {
"200": {
"description": "修改数据行数",
"schema": {
"type": "int"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/memberCenter/userManagement/userRecycleCancel": {
"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.UserManagementUserInfoReq"
}
}
],
"responses": {
"200": {
"description": "修改数据行数",
"schema": {
"type": "int"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/memberCenter/userManagement/userRecycleList": {
"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.UserManagementGetUserListReq"
}
}
],
"responses": {
"200": {
"description": "具体数据",
"schema": {
"$ref": "#/definitions/md.UserManagementGetUserListResp"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/notice/aliyunSms/file/phone": {
"post": {
"description": "短信推送记录-通知模板",
@@ -10455,6 +10684,98 @@ const docTemplate = `{
}
}
},
"md.CertificateDelReq": {
"type": "object",
"properties": {
"id": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"md.CertificateList": {
"type": "object",
"properties": {
"bg_img": {
"type": "string",
"example": "背景图"
},
"end_time": {
"type": "string",
"example": "结束时间"
},
"id": {
"type": "string"
},
"logo": {
"type": "string",
"example": "logo"
},
"medal": {
"type": "string",
"example": "勋章"
},
"name": {
"type": "string",
"example": "姓名"
},
"name_icon": {
"type": "string",
"example": "蛋蛋星球文字图"
},
"no": {
"type": "string",
"example": "编号"
},
"phone": {
"type": "string"
},
"seal": {
"type": "string",
"example": "印章"
},
"start_time": {
"type": "string",
"example": "开始时间"
},
"uid": {
"type": "string"
}
}
},
"md.CertificateListReq": {
"type": "object",
"properties": {
"limit": {
"type": "string"
},
"page": {
"type": "string"
},
"phone": {
"type": "string"
},
"uid": {
"type": "string"
}
}
},
"md.CertificateListResp": {
"type": "object",
"properties": {
"list": {
"type": "array",
"items": {
"$ref": "#/definitions/md.CertificateList"
}
},
"total": {
"type": "integer"
}
}
},
"md.CertificateReq": {
"type": "object",
"properties": {
@@ -10505,6 +10826,33 @@ const docTemplate = `{
}
}
},
"md.CertificateSave": {
"type": "object",
"properties": {
"end_time": {
"type": "string",
"example": "结束时间"
},
"id": {
"type": "string"
},
"name": {
"type": "string",
"example": "姓名"
},
"no": {
"type": "string",
"example": "编号"
},
"start_time": {
"type": "string",
"example": "开始时间"
},
"uid": {
"type": "string"
}
}
},
"md.CloudBundleBaseResp": {
"type": "object",
"properties": {
@@ -14791,7 +15139,7 @@ const docTemplate = `{
"properties": {
"is_punish": {
"description": "是否是惩罚标签",
"type": "string"
"type": "integer"
},
"memo": {
"description": "备注",
@@ -15684,6 +16032,9 @@ const docTemplate = `{
"description": "是否实名 0.未实名,1.已实名",
"type": "integer"
},
"is_recycle": {
"type": "string"
},
"level": {
"description": "会员等级",
"type": "integer"
@@ -15876,6 +16227,14 @@ const docTemplate = `{
}
}
},
"md.UserManagementUserInfoReq": {
"type": "object",
"properties": {
"uid": {
"type": "string"
}
}
},
"md.UserRealName": {
"type": "object",
"properties": {
@@ -16452,8 +16811,6 @@ var SwaggerInfo = &swag.Spec{
Description: "管理后台接口文档",
InfoInstanceName: "swagger",
SwaggerTemplate: docTemplate,
LeftDelim: "{{",
RightDelim: "}}",
}

func init() {


+ 364
- 6
docs/swagger.json Dosyayı Görüntüle

@@ -1516,7 +1516,9 @@
"name": "req",
"in": "body",
"required": true,
"schema": {}
"schema": {
"type": "object"
}
}
],
"responses": {
@@ -4954,6 +4956,44 @@
}
}
},
"/api/institutionalManagement/publicPlatoon/communityDividends/communityDividendsWithUserDel/{$id}": {
"delete": {
"description": "社区长列表(删除)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"公排管理"
],
"summary": "制度中心-公排管理-社区长列表(删除)",
"parameters": [
{
"type": "string",
"description": "验证参数Bearer和token空格拼接",
"name": "Authorization",
"in": "header",
"required": true
}
],
"responses": {
"200": {
"description": "删除数据数量",
"schema": {
"type": "int"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/institutionalManagement/publicPlatoon/communityDividends/communityDividendsWithUserList": {
"post": {
"description": "社区长列表(查询)",
@@ -5756,7 +5796,7 @@
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.AdvertisingDelReq"
"$ref": "#/definitions/md.CertificateDelReq"
}
}
],
@@ -5803,7 +5843,7 @@
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.AdvertisingListReq"
"$ref": "#/definitions/md.CertificateListReq"
}
}
],
@@ -5811,7 +5851,7 @@
"200": {
"description": "具体数据",
"schema": {
"$ref": "#/definitions/md.AdvertisingListResp"
"$ref": "#/definitions/md.CertificateListResp"
}
},
"400": {
@@ -5850,7 +5890,7 @@
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/md.AdvertisingSaveReq"
"$ref": "#/definitions/md.CertificateSave"
}
}
],
@@ -6678,6 +6718,194 @@
}
}
},
"/api/memberCenter/userManagement/userDelete": {
"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.UserManagementUserInfoReq"
}
}
],
"responses": {
"200": {
"description": "修改数据行数",
"schema": {
"type": "int"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/memberCenter/userManagement/userRecycle": {
"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.UserManagementUserInfoReq"
}
}
],
"responses": {
"200": {
"description": "修改数据行数",
"schema": {
"type": "int"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/memberCenter/userManagement/userRecycleCancel": {
"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.UserManagementUserInfoReq"
}
}
],
"responses": {
"200": {
"description": "修改数据行数",
"schema": {
"type": "int"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/memberCenter/userManagement/userRecycleList": {
"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.UserManagementGetUserListReq"
}
}
],
"responses": {
"200": {
"description": "具体数据",
"schema": {
"$ref": "#/definitions/md.UserManagementGetUserListResp"
}
},
"400": {
"description": "具体错误",
"schema": {
"$ref": "#/definitions/md.Response"
}
}
}
}
},
"/api/notice/aliyunSms/file/phone": {
"post": {
"description": "短信推送记录-通知模板",
@@ -10448,6 +10676,98 @@
}
}
},
"md.CertificateDelReq": {
"type": "object",
"properties": {
"id": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"md.CertificateList": {
"type": "object",
"properties": {
"bg_img": {
"type": "string",
"example": "背景图"
},
"end_time": {
"type": "string",
"example": "结束时间"
},
"id": {
"type": "string"
},
"logo": {
"type": "string",
"example": "logo"
},
"medal": {
"type": "string",
"example": "勋章"
},
"name": {
"type": "string",
"example": "姓名"
},
"name_icon": {
"type": "string",
"example": "蛋蛋星球文字图"
},
"no": {
"type": "string",
"example": "编号"
},
"phone": {
"type": "string"
},
"seal": {
"type": "string",
"example": "印章"
},
"start_time": {
"type": "string",
"example": "开始时间"
},
"uid": {
"type": "string"
}
}
},
"md.CertificateListReq": {
"type": "object",
"properties": {
"limit": {
"type": "string"
},
"page": {
"type": "string"
},
"phone": {
"type": "string"
},
"uid": {
"type": "string"
}
}
},
"md.CertificateListResp": {
"type": "object",
"properties": {
"list": {
"type": "array",
"items": {
"$ref": "#/definitions/md.CertificateList"
}
},
"total": {
"type": "integer"
}
}
},
"md.CertificateReq": {
"type": "object",
"properties": {
@@ -10498,6 +10818,33 @@
}
}
},
"md.CertificateSave": {
"type": "object",
"properties": {
"end_time": {
"type": "string",
"example": "结束时间"
},
"id": {
"type": "string"
},
"name": {
"type": "string",
"example": "姓名"
},
"no": {
"type": "string",
"example": "编号"
},
"start_time": {
"type": "string",
"example": "开始时间"
},
"uid": {
"type": "string"
}
}
},
"md.CloudBundleBaseResp": {
"type": "object",
"properties": {
@@ -14784,7 +15131,7 @@
"properties": {
"is_punish": {
"description": "是否是惩罚标签",
"type": "string"
"type": "integer"
},
"memo": {
"description": "备注",
@@ -15677,6 +16024,9 @@
"description": "是否实名 0.未实名,1.已实名",
"type": "integer"
},
"is_recycle": {
"type": "string"
},
"level": {
"description": "会员等级",
"type": "integer"
@@ -15869,6 +16219,14 @@
}
}
},
"md.UserManagementUserInfoReq": {
"type": "object",
"properties": {
"uid": {
"type": "string"
}
}
},
"md.UserRealName": {
"type": "object",
"properties": {


+ 245
- 6
docs/swagger.yaml Dosyayı Görüntüle

@@ -1052,6 +1052,69 @@ definitions:
required:
- adm_id
type: object
md.CertificateDelReq:
properties:
id:
items:
type: string
type: array
type: object
md.CertificateList:
properties:
bg_img:
example: 背景图
type: string
end_time:
example: 结束时间
type: string
id:
type: string
logo:
example: logo
type: string
medal:
example: 勋章
type: string
name:
example: 姓名
type: string
name_icon:
example: 蛋蛋星球文字图
type: string
"no":
example: 编号
type: string
phone:
type: string
seal:
example: 印章
type: string
start_time:
example: 开始时间
type: string
uid:
type: string
type: object
md.CertificateListReq:
properties:
limit:
type: string
page:
type: string
phone:
type: string
uid:
type: string
type: object
md.CertificateListResp:
properties:
list:
items:
$ref: '#/definitions/md.CertificateList'
type: array
total:
type: integer
type: object
md.CertificateReq:
properties:
"no":
@@ -1088,6 +1151,25 @@ definitions:
example: 开始时间
type: string
type: object
md.CertificateSave:
properties:
end_time:
example: 结束时间
type: string
id:
type: string
name:
example: 姓名
type: string
"no":
example: 编号
type: string
start_time:
example: 开始时间
type: string
uid:
type: string
type: object
md.CloudBundleBaseResp:
properties:
android_logo:
@@ -4061,7 +4143,7 @@ definitions:
properties:
is_punish:
description: 是否是惩罚标签
type: string
type: integer
memo:
description: 备注
type: string
@@ -4678,6 +4760,8 @@ definitions:
is_real_name:
description: 是否实名 0.未实名,1.已实名
type: integer
is_recycle:
type: string
level:
description: 会员等级
type: integer
@@ -4815,6 +4899,11 @@ definitions:
description: 微信号
type: string
type: object
md.UserManagementUserInfoReq:
properties:
uid:
type: string
type: object
md.UserRealName:
properties:
create_time:
@@ -6194,7 +6283,8 @@ paths:
in: body
name: req
required: true
schema: {}
schema:
type: object
produces:
- application/json
responses:
@@ -8465,6 +8555,31 @@ paths:
summary: 制度中心-公排管理-社区长列表(新增)
tags:
- 公排管理
/api/institutionalManagement/publicPlatoon/communityDividends/communityDividendsWithUserDel/{$id}:
delete:
consumes:
- application/json
description: 社区长列表(删除)
parameters:
- description: 验证参数Bearer和token空格拼接
in: header
name: Authorization
required: true
type: string
produces:
- application/json
responses:
"200":
description: 删除数据数量
schema:
type: int
"400":
description: 具体错误
schema:
$ref: '#/definitions/md.Response'
summary: 制度中心-公排管理-社区长列表(删除)
tags:
- 公排管理
/api/institutionalManagement/publicPlatoon/communityDividends/communityDividendsWithUserList:
post:
consumes:
@@ -8993,7 +9108,7 @@ paths:
name: req
required: true
schema:
$ref: '#/definitions/md.AdvertisingDelReq'
$ref: '#/definitions/md.CertificateDelReq'
produces:
- application/json
responses:
@@ -9024,14 +9139,14 @@ paths:
name: req
required: true
schema:
$ref: '#/definitions/md.AdvertisingListReq'
$ref: '#/definitions/md.CertificateListReq'
produces:
- application/json
responses:
"200":
description: 具体数据
schema:
$ref: '#/definitions/md.AdvertisingListResp'
$ref: '#/definitions/md.CertificateListResp'
"400":
description: 具体错误
schema:
@@ -9055,7 +9170,7 @@ paths:
name: req
required: true
schema:
$ref: '#/definitions/md.AdvertisingSaveReq'
$ref: '#/definitions/md.CertificateSave'
produces:
- application/json
responses:
@@ -9609,6 +9724,130 @@ paths:
summary: 制度中心-会员中心-用户管理-会员明细概况(获取)
tags:
- 会员中心
/api/memberCenter/userManagement/userDelete:
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.UserManagementUserInfoReq'
produces:
- application/json
responses:
"200":
description: 修改数据行数
schema:
type: int
"400":
description: 具体错误
schema:
$ref: '#/definitions/md.Response'
summary: 会员中心-用户管理-永久删除
tags:
- 会员中心
/api/memberCenter/userManagement/userRecycle:
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.UserManagementUserInfoReq'
produces:
- application/json
responses:
"200":
description: 修改数据行数
schema:
type: int
"400":
description: 具体错误
schema:
$ref: '#/definitions/md.Response'
summary: 会员中心-用户管理-删除到回收站
tags:
- 会员中心
/api/memberCenter/userManagement/userRecycleCancel:
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.UserManagementUserInfoReq'
produces:
- application/json
responses:
"200":
description: 修改数据行数
schema:
type: int
"400":
description: 具体错误
schema:
$ref: '#/definitions/md.Response'
summary: 会员中心-用户管理-恢复到会员列表
tags:
- 会员中心
/api/memberCenter/userManagement/userRecycleList:
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.UserManagementGetUserListReq'
produces:
- application/json
responses:
"200":
description: 具体数据
schema:
$ref: '#/definitions/md.UserManagementGetUserListResp'
"400":
description: 具体错误
schema:
$ref: '#/definitions/md.Response'
summary: 会员中心-用户管理-回收站列表
tags:
- 会员中心
/api/notice/aliyunSms/file/phone:
post:
consumes:


+ 1
- 1
go.mod Dosyayı Görüntüle

@@ -33,7 +33,7 @@ require (
)

require (
code.fnuoos.com/EggPlanet/egg_models.git v0.2.1-0.20241211091343-ac9cda7c7f7b
code.fnuoos.com/EggPlanet/egg_models.git v0.2.1-0.20241211131723-5b61ee87000b
code.fnuoos.com/EggPlanet/egg_system_rules.git v0.0.4-0.20241211143147-17b736995b8f
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


Yükleniyor…
İptal
Kaydet