2514 lines
86 KiB
Go
2514 lines
86 KiB
Go
// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
||
// This file was generated by swaggo/swag
|
||
|
||
package docs
|
||
|
||
import (
|
||
"bytes"
|
||
"encoding/json"
|
||
"strings"
|
||
|
||
"github.com/alecthomas/template"
|
||
"github.com/swaggo/swag"
|
||
)
|
||
|
||
var doc = `{
|
||
"schemes": {{ marshal .Schemes }},
|
||
"swagger": "2.0",
|
||
"info": {
|
||
"description": "{{.Description}}",
|
||
"title": "{{.Title}}",
|
||
"contact": {},
|
||
"version": "{{.Version}}"
|
||
},
|
||
"host": "{{.Host}}",
|
||
"basePath": "{{.BasePath}}",
|
||
"paths": {
|
||
"/app/accept-group-apply": {
|
||
"post": {
|
||
"tags": [
|
||
"group 群审批"
|
||
],
|
||
"summary": "接受加群审批",
|
||
"parameters": [
|
||
{
|
||
"type": "string",
|
||
"description": "MOCK",
|
||
"name": "FZM-SIGNATURE",
|
||
"in": "header",
|
||
"required": true
|
||
},
|
||
{
|
||
"description": "body",
|
||
"name": "data",
|
||
"in": "body",
|
||
"schema": {
|
||
"$ref": "#/definitions/types.AcceptGroupApplyReq"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "OK",
|
||
"schema": {
|
||
"allOf": [
|
||
{
|
||
"$ref": "#/definitions/types.GeneralResponse"
|
||
},
|
||
{
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"$ref": "#/definitions/types.AcceptGroupApplyResp"
|
||
}
|
||
}
|
||
}
|
||
]
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"/app/avatar": {
|
||
"post": {
|
||
"tags": [
|
||
"group 群信息"
|
||
],
|
||
"summary": "更新群头像",
|
||
"parameters": [
|
||
{
|
||
"type": "string",
|
||
"description": "MOCK",
|
||
"name": "FZM-SIGNATURE",
|
||
"in": "header",
|
||
"required": true
|
||
},
|
||
{
|
||
"description": "body",
|
||
"name": "data",
|
||
"in": "body",
|
||
"schema": {
|
||
"$ref": "#/definitions/types.UpdateGroupAvatarRequest"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "OK",
|
||
"schema": {
|
||
"allOf": [
|
||
{
|
||
"$ref": "#/definitions/types.GeneralResponse"
|
||
},
|
||
{
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"$ref": "#/definitions/types.UpdateGroupAvatarResponse"
|
||
}
|
||
}
|
||
}
|
||
]
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"/app/change-owner": {
|
||
"post": {
|
||
"tags": [
|
||
"group 群动作"
|
||
],
|
||
"summary": "转让群",
|
||
"parameters": [
|
||
{
|
||
"type": "string",
|
||
"description": "MOCK",
|
||
"name": "FZM-SIGNATURE",
|
||
"in": "header",
|
||
"required": true
|
||
},
|
||
{
|
||
"description": "body",
|
||
"name": "data",
|
||
"in": "body",
|
||
"schema": {
|
||
"$ref": "#/definitions/types.ChangeOwnerRequest"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "OK",
|
||
"schema": {
|
||
"allOf": [
|
||
{
|
||
"$ref": "#/definitions/types.GeneralResponse"
|
||
},
|
||
{
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"$ref": "#/definitions/types.ChangeOwnerResponse"
|
||
}
|
||
}
|
||
}
|
||
]
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"/app/create-group": {
|
||
"post": {
|
||
"tags": [
|
||
"group 群动作"
|
||
],
|
||
"summary": "创建群",
|
||
"parameters": [
|
||
{
|
||
"type": "string",
|
||
"description": "MOCK",
|
||
"name": "FZM-SIGNATURE",
|
||
"in": "header",
|
||
"required": true
|
||
},
|
||
{
|
||
"description": "body",
|
||
"name": "data",
|
||
"in": "body",
|
||
"schema": {
|
||
"$ref": "#/definitions/types.CreateGroupRequest"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "OK",
|
||
"schema": {
|
||
"allOf": [
|
||
{
|
||
"$ref": "#/definitions/types.GeneralResponse"
|
||
},
|
||
{
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"$ref": "#/definitions/types.CreateGroupResponse"
|
||
}
|
||
}
|
||
}
|
||
]
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"/app/create-group-apply": {
|
||
"post": {
|
||
"tags": [
|
||
"group 群审批"
|
||
],
|
||
"summary": "创建加群审批",
|
||
"parameters": [
|
||
{
|
||
"type": "string",
|
||
"description": "MOCK",
|
||
"name": "FZM-SIGNATURE",
|
||
"in": "header",
|
||
"required": true
|
||
},
|
||
{
|
||
"description": "body",
|
||
"name": "data",
|
||
"in": "body",
|
||
"schema": {
|
||
"$ref": "#/definitions/types.CreateGroupApplyReq"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "OK",
|
||
"schema": {
|
||
"allOf": [
|
||
{
|
||
"$ref": "#/definitions/types.GeneralResponse"
|
||
},
|
||
{
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"$ref": "#/definitions/types.CreateGroupApplyResp"
|
||
}
|
||
}
|
||
}
|
||
]
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"/app/friendType": {
|
||
"post": {
|
||
"tags": [
|
||
"group 群信息"
|
||
],
|
||
"summary": "更新群内加好友设置",
|
||
"parameters": [
|
||
{
|
||
"type": "string",
|
||
"description": "MOCK",
|
||
"name": "FZM-SIGNATURE",
|
||
"in": "header",
|
||
"required": true
|
||
},
|
||
{
|
||
"description": "body",
|
||
"name": "data",
|
||
"in": "body",
|
||
"schema": {
|
||
"$ref": "#/definitions/types.UpdateGroupFriendTypeRequest"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "OK",
|
||
"schema": {
|
||
"allOf": [
|
||
{
|
||
"$ref": "#/definitions/types.GeneralResponse"
|
||
},
|
||
{
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"$ref": "#/definitions/types.UpdateGroupFriendTypeResponse"
|
||
}
|
||
}
|
||
}
|
||
]
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"/app/get-group-apply": {
|
||
"post": {
|
||
"tags": [
|
||
"group 群审批"
|
||
],
|
||
"summary": "查询加群审批",
|
||
"parameters": [
|
||
{
|
||
"type": "string",
|
||
"description": "MOCK",
|
||
"name": "FZM-SIGNATURE",
|
||
"in": "header",
|
||
"required": true
|
||
},
|
||
{
|
||
"description": "body",
|
||
"name": "data",
|
||
"in": "body",
|
||
"schema": {
|
||
"$ref": "#/definitions/types.GetGroupApplyByIdReq"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "OK",
|
||
"schema": {
|
||
"allOf": [
|
||
{
|
||
"$ref": "#/definitions/types.GeneralResponse"
|
||
},
|
||
{
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"$ref": "#/definitions/types.GetGroupApplysResp"
|
||
}
|
||
}
|
||
}
|
||
]
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"/app/get-group-applys": {
|
||
"post": {
|
||
"tags": [
|
||
"group 群审批"
|
||
],
|
||
"summary": "查询加群审批列表",
|
||
"parameters": [
|
||
{
|
||
"type": "string",
|
||
"description": "MOCK",
|
||
"name": "FZM-SIGNATURE",
|
||
"in": "header",
|
||
"required": true
|
||
},
|
||
{
|
||
"description": "body",
|
||
"name": "data",
|
||
"in": "body",
|
||
"schema": {
|
||
"$ref": "#/definitions/types.GetGroupApplysReq"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "OK",
|
||
"schema": {
|
||
"allOf": [
|
||
{
|
||
"$ref": "#/definitions/types.GeneralResponse"
|
||
},
|
||
{
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"$ref": "#/definitions/types.GetGroupApplysResp"
|
||
}
|
||
}
|
||
}
|
||
]
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"/app/group-disband": {
|
||
"post": {
|
||
"tags": [
|
||
"group 群动作"
|
||
],
|
||
"summary": "解散群",
|
||
"parameters": [
|
||
{
|
||
"type": "string",
|
||
"description": "MOCK",
|
||
"name": "FZM-SIGNATURE",
|
||
"in": "header",
|
||
"required": true
|
||
},
|
||
{
|
||
"description": "body",
|
||
"name": "data",
|
||
"in": "body",
|
||
"schema": {
|
||
"$ref": "#/definitions/types.GroupDisbandRequest"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "OK",
|
||
"schema": {
|
||
"allOf": [
|
||
{
|
||
"$ref": "#/definitions/types.GeneralResponse"
|
||
},
|
||
{
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"$ref": "#/definitions/types.GroupDisbandResponse"
|
||
}
|
||
}
|
||
}
|
||
]
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"/app/group-exit": {
|
||
"post": {
|
||
"tags": [
|
||
"group 群动作"
|
||
],
|
||
"summary": "退群",
|
||
"parameters": [
|
||
{
|
||
"type": "string",
|
||
"description": "MOCK",
|
||
"name": "FZM-SIGNATURE",
|
||
"in": "header",
|
||
"required": true
|
||
},
|
||
{
|
||
"description": "body",
|
||
"name": "data",
|
||
"in": "body",
|
||
"schema": {
|
||
"$ref": "#/definitions/types.GroupExitRequest"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "OK",
|
||
"schema": {
|
||
"allOf": [
|
||
{
|
||
"$ref": "#/definitions/types.GeneralResponse"
|
||
},
|
||
{
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"$ref": "#/definitions/types.GroupExitResponse"
|
||
}
|
||
}
|
||
}
|
||
]
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"/app/group-info": {
|
||
"post": {
|
||
"tags": [
|
||
"group 群信息"
|
||
],
|
||
"summary": "查询群信息",
|
||
"parameters": [
|
||
{
|
||
"type": "string",
|
||
"description": "MOCK",
|
||
"name": "FZM-SIGNATURE",
|
||
"in": "header",
|
||
"required": true
|
||
},
|
||
{
|
||
"description": "body",
|
||
"name": "data",
|
||
"in": "body",
|
||
"schema": {
|
||
"$ref": "#/definitions/types.GetGroupInfoRequest"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "OK",
|
||
"schema": {
|
||
"allOf": [
|
||
{
|
||
"$ref": "#/definitions/types.GeneralResponse"
|
||
},
|
||
{
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"$ref": "#/definitions/types.GetGroupInfoResponse"
|
||
}
|
||
}
|
||
}
|
||
]
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"/app/group-list": {
|
||
"post": {
|
||
"tags": [
|
||
"group 群信息"
|
||
],
|
||
"summary": "查询群列表",
|
||
"parameters": [
|
||
{
|
||
"type": "string",
|
||
"description": "MOCK",
|
||
"name": "FZM-SIGNATURE",
|
||
"in": "header",
|
||
"required": true
|
||
},
|
||
{
|
||
"description": "body",
|
||
"name": "data",
|
||
"in": "body",
|
||
"schema": {
|
||
"$ref": "#/definitions/types.GetGroupListRequest"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "OK",
|
||
"schema": {
|
||
"allOf": [
|
||
{
|
||
"$ref": "#/definitions/types.GeneralResponse"
|
||
},
|
||
{
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"$ref": "#/definitions/types.GetGroupListResponse"
|
||
}
|
||
}
|
||
}
|
||
]
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"/app/group-member-info": {
|
||
"post": {
|
||
"tags": [
|
||
"group 群成员信息"
|
||
],
|
||
"summary": "查询群成员信息",
|
||
"parameters": [
|
||
{
|
||
"type": "string",
|
||
"description": "MOCK",
|
||
"name": "FZM-SIGNATURE",
|
||
"in": "header",
|
||
"required": true
|
||
},
|
||
{
|
||
"description": "body",
|
||
"name": "data",
|
||
"in": "body",
|
||
"schema": {
|
||
"$ref": "#/definitions/types.GetGroupMemberInfoRequest"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "OK",
|
||
"schema": {
|
||
"allOf": [
|
||
{
|
||
"$ref": "#/definitions/types.GeneralResponse"
|
||
},
|
||
{
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"$ref": "#/definitions/types.GetGroupMemberInfoResponse"
|
||
}
|
||
}
|
||
}
|
||
]
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"/app/group-member-list": {
|
||
"post": {
|
||
"tags": [
|
||
"group 群成员信息"
|
||
],
|
||
"summary": "查询群成员列表",
|
||
"parameters": [
|
||
{
|
||
"type": "string",
|
||
"description": "MOCK",
|
||
"name": "FZM-SIGNATURE",
|
||
"in": "header",
|
||
"required": true
|
||
},
|
||
{
|
||
"description": "body",
|
||
"name": "data",
|
||
"in": "body",
|
||
"schema": {
|
||
"$ref": "#/definitions/types.GetGroupMemberListRequest"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "OK",
|
||
"schema": {
|
||
"allOf": [
|
||
{
|
||
"$ref": "#/definitions/types.GeneralResponse"
|
||
},
|
||
{
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"$ref": "#/definitions/types.GetGroupMemberListResponse"
|
||
}
|
||
}
|
||
}
|
||
]
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"/app/group-pub-info": {
|
||
"post": {
|
||
"tags": [
|
||
"group 群信息"
|
||
],
|
||
"summary": "查询群公开信息",
|
||
"parameters": [
|
||
{
|
||
"type": "string",
|
||
"description": "MOCK",
|
||
"name": "FZM-SIGNATURE",
|
||
"in": "header",
|
||
"required": true
|
||
},
|
||
{
|
||
"description": "body",
|
||
"name": "data",
|
||
"in": "body",
|
||
"schema": {
|
||
"$ref": "#/definitions/types.GetGroupPubInfoRequest"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "OK",
|
||
"schema": {
|
||
"allOf": [
|
||
{
|
||
"$ref": "#/definitions/types.GeneralResponse"
|
||
},
|
||
{
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"$ref": "#/definitions/types.GetGroupPubInfoResponse"
|
||
}
|
||
}
|
||
}
|
||
]
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"/app/group-remove": {
|
||
"post": {
|
||
"tags": [
|
||
"group 群动作"
|
||
],
|
||
"summary": "踢人",
|
||
"parameters": [
|
||
{
|
||
"type": "string",
|
||
"description": "MOCK",
|
||
"name": "FZM-SIGNATURE",
|
||
"in": "header",
|
||
"required": true
|
||
},
|
||
{
|
||
"description": "body",
|
||
"name": "data",
|
||
"in": "body",
|
||
"schema": {
|
||
"$ref": "#/definitions/types.GroupRemoveRequest"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "OK",
|
||
"schema": {
|
||
"allOf": [
|
||
{
|
||
"$ref": "#/definitions/types.GeneralResponse"
|
||
},
|
||
{
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"$ref": "#/definitions/types.GroupRemoveResponse"
|
||
}
|
||
}
|
||
}
|
||
]
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"/app/group-search": {
|
||
"post": {
|
||
"tags": [
|
||
"group 群信息"
|
||
],
|
||
"summary": "搜索群列表",
|
||
"parameters": [
|
||
{
|
||
"type": "string",
|
||
"description": "MOCK",
|
||
"name": "FZM-SIGNATURE",
|
||
"in": "header",
|
||
"required": true
|
||
},
|
||
{
|
||
"description": "body",
|
||
"name": "data",
|
||
"in": "body",
|
||
"schema": {
|
||
"$ref": "#/definitions/types.GetGroupInfoByConditionReq"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "OK",
|
||
"schema": {
|
||
"allOf": [
|
||
{
|
||
"$ref": "#/definitions/types.GeneralResponse"
|
||
},
|
||
{
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"$ref": "#/definitions/types.GetGroupInfoByConditionResp"
|
||
}
|
||
}
|
||
}
|
||
]
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"/app/group/{id}": {
|
||
"get": {
|
||
"tags": [
|
||
"group 群信息"
|
||
],
|
||
"summary": "查询群信息",
|
||
"parameters": [
|
||
{
|
||
"type": "string",
|
||
"description": "MOCK",
|
||
"name": "FZM-SIGNATURE",
|
||
"in": "header",
|
||
"required": true
|
||
},
|
||
{
|
||
"type": "integer",
|
||
"description": "群id",
|
||
"name": "id",
|
||
"in": "path",
|
||
"required": true
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "OK",
|
||
"schema": {
|
||
"allOf": [
|
||
{
|
||
"$ref": "#/definitions/types.GeneralResponse"
|
||
},
|
||
{
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"$ref": "#/definitions/types.GetGroupInfoResponse"
|
||
}
|
||
}
|
||
}
|
||
]
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"/app/group/{id}/member/{memberId}": {
|
||
"get": {
|
||
"tags": [
|
||
"group 群成员信息"
|
||
],
|
||
"summary": "查询群成员信息",
|
||
"parameters": [
|
||
{
|
||
"type": "string",
|
||
"description": "MOCK",
|
||
"name": "FZM-SIGNATURE",
|
||
"in": "header",
|
||
"required": true
|
||
},
|
||
{
|
||
"type": "integer",
|
||
"description": "群id",
|
||
"name": "id",
|
||
"in": "path",
|
||
"required": true
|
||
},
|
||
{
|
||
"type": "integer",
|
||
"description": "群成员id",
|
||
"name": "memberId",
|
||
"in": "path",
|
||
"required": true
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "OK",
|
||
"schema": {
|
||
"allOf": [
|
||
{
|
||
"$ref": "#/definitions/types.GeneralResponse"
|
||
},
|
||
{
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"$ref": "#/definitions/types.GetGroupMemberInfoResponse"
|
||
}
|
||
}
|
||
}
|
||
]
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"/app/group/{id}/members": {
|
||
"get": {
|
||
"tags": [
|
||
"group 群成员信息"
|
||
],
|
||
"summary": "查询群成员列表",
|
||
"parameters": [
|
||
{
|
||
"type": "string",
|
||
"description": "MOCK",
|
||
"name": "FZM-SIGNATURE",
|
||
"in": "header",
|
||
"required": true
|
||
},
|
||
{
|
||
"type": "integer",
|
||
"description": "群id",
|
||
"name": "id",
|
||
"in": "path",
|
||
"required": true
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "OK",
|
||
"schema": {
|
||
"allOf": [
|
||
{
|
||
"$ref": "#/definitions/types.GeneralResponse"
|
||
},
|
||
{
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"$ref": "#/definitions/types.GetGroupMemberListResponse"
|
||
}
|
||
}
|
||
}
|
||
]
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"/app/groups": {
|
||
"get": {
|
||
"tags": [
|
||
"group 群信息"
|
||
],
|
||
"summary": "查询群列表",
|
||
"parameters": [
|
||
{
|
||
"type": "string",
|
||
"description": "MOCK",
|
||
"name": "FZM-SIGNATURE",
|
||
"in": "header",
|
||
"required": true
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "OK",
|
||
"schema": {
|
||
"allOf": [
|
||
{
|
||
"$ref": "#/definitions/types.GeneralResponse"
|
||
},
|
||
{
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"$ref": "#/definitions/types.GetGroupListResponse"
|
||
}
|
||
}
|
||
}
|
||
]
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"/app/invite-group-members": {
|
||
"post": {
|
||
"tags": [
|
||
"group 群动作"
|
||
],
|
||
"summary": "邀请新群员",
|
||
"parameters": [
|
||
{
|
||
"type": "string",
|
||
"description": "MOCK",
|
||
"name": "FZM-SIGNATURE",
|
||
"in": "header",
|
||
"required": true
|
||
},
|
||
{
|
||
"description": "body",
|
||
"name": "data",
|
||
"in": "body",
|
||
"schema": {
|
||
"$ref": "#/definitions/types.InviteGroupMembersRequest"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "OK",
|
||
"schema": {
|
||
"allOf": [
|
||
{
|
||
"$ref": "#/definitions/types.GeneralResponse"
|
||
},
|
||
{
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"$ref": "#/definitions/types.InviteGroupMembersResponse"
|
||
}
|
||
}
|
||
}
|
||
]
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"/app/join-group": {
|
||
"post": {
|
||
"tags": [
|
||
"group 群动作"
|
||
],
|
||
"summary": "直接进群",
|
||
"parameters": [
|
||
{
|
||
"type": "string",
|
||
"description": "MOCK",
|
||
"name": "FZM-SIGNATURE",
|
||
"in": "header",
|
||
"required": true
|
||
},
|
||
{
|
||
"description": "body",
|
||
"name": "data",
|
||
"in": "body",
|
||
"schema": {
|
||
"$ref": "#/definitions/types.JoinGroupReq"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "OK",
|
||
"schema": {
|
||
"allOf": [
|
||
{
|
||
"$ref": "#/definitions/types.GeneralResponse"
|
||
},
|
||
{
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"$ref": "#/definitions/types.JoinGroupResp"
|
||
}
|
||
}
|
||
}
|
||
]
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"/app/joinType": {
|
||
"post": {
|
||
"tags": [
|
||
"group 群信息"
|
||
],
|
||
"summary": "更新加群设置",
|
||
"parameters": [
|
||
{
|
||
"type": "string",
|
||
"description": "MOCK",
|
||
"name": "FZM-SIGNATURE",
|
||
"in": "header",
|
||
"required": true
|
||
},
|
||
{
|
||
"description": "body",
|
||
"name": "data",
|
||
"in": "body",
|
||
"schema": {
|
||
"$ref": "#/definitions/types.UpdateGroupJoinTypeRequest"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "OK",
|
||
"schema": {
|
||
"allOf": [
|
||
{
|
||
"$ref": "#/definitions/types.GeneralResponse"
|
||
},
|
||
{
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"$ref": "#/definitions/types.UpdateGroupJoinTypeResponse"
|
||
}
|
||
}
|
||
}
|
||
]
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"/app/member/muteTime": {
|
||
"post": {
|
||
"tags": [
|
||
"group 禁言"
|
||
],
|
||
"summary": "更新群成员禁言时间",
|
||
"parameters": [
|
||
{
|
||
"type": "string",
|
||
"description": "MOCK",
|
||
"name": "FZM-SIGNATURE",
|
||
"in": "header",
|
||
"required": true
|
||
},
|
||
{
|
||
"description": "body",
|
||
"name": "data",
|
||
"in": "body",
|
||
"schema": {
|
||
"$ref": "#/definitions/types.UpdateGroupMemberMuteTimeRequest"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "OK",
|
||
"schema": {
|
||
"allOf": [
|
||
{
|
||
"$ref": "#/definitions/types.GeneralResponse"
|
||
},
|
||
{
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"$ref": "#/definitions/types.UpdateGroupMemberMuteTimeResponse"
|
||
}
|
||
}
|
||
}
|
||
]
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"/app/member/name": {
|
||
"post": {
|
||
"tags": [
|
||
"group 群成员信息"
|
||
],
|
||
"summary": "更新群成员昵称",
|
||
"parameters": [
|
||
{
|
||
"type": "string",
|
||
"description": "MOCK",
|
||
"name": "FZM-SIGNATURE",
|
||
"in": "header",
|
||
"required": true
|
||
},
|
||
{
|
||
"description": "body",
|
||
"name": "data",
|
||
"in": "body",
|
||
"schema": {
|
||
"$ref": "#/definitions/types.UpdateGroupMemberNameRequest"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "OK",
|
||
"schema": {
|
||
"allOf": [
|
||
{
|
||
"$ref": "#/definitions/types.GeneralResponse"
|
||
},
|
||
{
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"$ref": "#/definitions/types.UpdateGroupMemberNameResponse"
|
||
}
|
||
}
|
||
}
|
||
]
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"/app/member/type": {
|
||
"post": {
|
||
"tags": [
|
||
"group 群成员信息"
|
||
],
|
||
"summary": "设置管理员",
|
||
"parameters": [
|
||
{
|
||
"type": "string",
|
||
"description": "MOCK",
|
||
"name": "FZM-SIGNATURE",
|
||
"in": "header",
|
||
"required": true
|
||
},
|
||
{
|
||
"description": "body",
|
||
"name": "data",
|
||
"in": "body",
|
||
"schema": {
|
||
"$ref": "#/definitions/types.SetAdminRequest"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "OK",
|
||
"schema": {
|
||
"allOf": [
|
||
{
|
||
"$ref": "#/definitions/types.GeneralResponse"
|
||
},
|
||
{
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"$ref": "#/definitions/types.SetAdminResponse"
|
||
}
|
||
}
|
||
}
|
||
]
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"/app/mute-list": {
|
||
"post": {
|
||
"tags": [
|
||
"group 禁言"
|
||
],
|
||
"summary": "查询群内被禁言成员名单",
|
||
"parameters": [
|
||
{
|
||
"type": "string",
|
||
"description": "MOCK",
|
||
"name": "FZM-SIGNATURE",
|
||
"in": "header",
|
||
"required": true
|
||
},
|
||
{
|
||
"description": "body",
|
||
"name": "data",
|
||
"in": "body",
|
||
"schema": {
|
||
"$ref": "#/definitions/types.GetMuteListRequest"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "OK",
|
||
"schema": {
|
||
"allOf": [
|
||
{
|
||
"$ref": "#/definitions/types.GeneralResponse"
|
||
},
|
||
{
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"$ref": "#/definitions/types.GetMuteListResponse"
|
||
}
|
||
}
|
||
}
|
||
]
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"/app/muteType": {
|
||
"post": {
|
||
"tags": [
|
||
"group 群信息"
|
||
],
|
||
"summary": "更新群禁言设置",
|
||
"parameters": [
|
||
{
|
||
"type": "string",
|
||
"description": "MOCK",
|
||
"name": "FZM-SIGNATURE",
|
||
"in": "header",
|
||
"required": true
|
||
},
|
||
{
|
||
"description": "body",
|
||
"name": "data",
|
||
"in": "body",
|
||
"schema": {
|
||
"$ref": "#/definitions/types.UpdateGroupMuteTypeRequest"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "OK",
|
||
"schema": {
|
||
"allOf": [
|
||
{
|
||
"$ref": "#/definitions/types.GeneralResponse"
|
||
},
|
||
{
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"$ref": "#/definitions/types.UpdateGroupMuteTypeResponse"
|
||
}
|
||
}
|
||
}
|
||
]
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"/app/name": {
|
||
"post": {
|
||
"tags": [
|
||
"group 群信息"
|
||
],
|
||
"summary": "更新群名称",
|
||
"parameters": [
|
||
{
|
||
"type": "string",
|
||
"description": "MOCK",
|
||
"name": "FZM-SIGNATURE",
|
||
"in": "header",
|
||
"required": true
|
||
},
|
||
{
|
||
"description": "body",
|
||
"name": "data",
|
||
"in": "body",
|
||
"schema": {
|
||
"$ref": "#/definitions/types.UpdateGroupNameRequest"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "OK",
|
||
"schema": {
|
||
"allOf": [
|
||
{
|
||
"$ref": "#/definitions/types.GeneralResponse"
|
||
},
|
||
{
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"$ref": "#/definitions/types.UpdateGroupNameResponse"
|
||
}
|
||
}
|
||
}
|
||
]
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"/app/reject-group-apply": {
|
||
"post": {
|
||
"tags": [
|
||
"group 群审批"
|
||
],
|
||
"summary": "拒绝加群审批",
|
||
"parameters": [
|
||
{
|
||
"type": "string",
|
||
"description": "MOCK",
|
||
"name": "FZM-SIGNATURE",
|
||
"in": "header",
|
||
"required": true
|
||
},
|
||
{
|
||
"description": "body",
|
||
"name": "data",
|
||
"in": "body",
|
||
"schema": {
|
||
"$ref": "#/definitions/types.RejectGroupApplyReq"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "OK",
|
||
"schema": {
|
||
"allOf": [
|
||
{
|
||
"$ref": "#/definitions/types.GeneralResponse"
|
||
},
|
||
{
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"$ref": "#/definitions/types.RejectGroupApplyResp"
|
||
}
|
||
}
|
||
}
|
||
]
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"definitions": {
|
||
"types.AcceptGroupApplyReq": {
|
||
"type": "object",
|
||
"required": [
|
||
"applyId",
|
||
"id"
|
||
],
|
||
"properties": {
|
||
"applyId": {
|
||
"description": "审批 ID",
|
||
"type": "string"
|
||
},
|
||
"id": {
|
||
"description": "群 ID",
|
||
"type": "string"
|
||
}
|
||
}
|
||
},
|
||
"types.AcceptGroupApplyResp": {
|
||
"type": "object"
|
||
},
|
||
"types.ChangeOwnerRequest": {
|
||
"type": "object",
|
||
"required": [
|
||
"memberId"
|
||
],
|
||
"properties": {
|
||
"id": {
|
||
"description": "群 ID",
|
||
"type": "integer"
|
||
},
|
||
"idStr": {
|
||
"description": "如果同时填了 idStr, 则优先选择 idStr",
|
||
"type": "string"
|
||
},
|
||
"memberId": {
|
||
"description": "被转让为群主的群成员 ID",
|
||
"type": "string"
|
||
}
|
||
}
|
||
},
|
||
"types.ChangeOwnerResponse": {
|
||
"type": "object"
|
||
},
|
||
"types.CreateGroupApplyReq": {
|
||
"type": "object",
|
||
"required": [
|
||
"id"
|
||
],
|
||
"properties": {
|
||
"applyNote": {
|
||
"description": "申请备注",
|
||
"type": "string"
|
||
},
|
||
"id": {
|
||
"description": "群 ID",
|
||
"type": "string"
|
||
}
|
||
}
|
||
},
|
||
"types.CreateGroupApplyResp": {
|
||
"type": "object"
|
||
},
|
||
"types.CreateGroupRequest": {
|
||
"type": "object",
|
||
"properties": {
|
||
"avatar": {
|
||
"type": "string"
|
||
},
|
||
"introduce": {
|
||
"type": "string"
|
||
},
|
||
"memberIds": {
|
||
"type": "array",
|
||
"items": {
|
||
"type": "string"
|
||
}
|
||
},
|
||
"name": {
|
||
"type": "string"
|
||
}
|
||
}
|
||
},
|
||
"types.CreateGroupResponse": {
|
||
"type": "object",
|
||
"properties": {
|
||
"adminNum": {
|
||
"description": "群内管理员数量",
|
||
"type": "integer"
|
||
},
|
||
"avatar": {
|
||
"description": "头像 url",
|
||
"type": "string"
|
||
},
|
||
"createTime": {
|
||
"description": "群创建时间",
|
||
"type": "integer"
|
||
},
|
||
"friendType": {
|
||
"description": "加好友限制, 0=群内可加好友,1=群内禁止加好友",
|
||
"type": "integer"
|
||
},
|
||
"groupType": {
|
||
"description": "群类型 (0: 普通群, 1: 全员群, 2: 部门群)",
|
||
"type": "integer"
|
||
},
|
||
"id": {
|
||
"description": "群 ID",
|
||
"type": "integer"
|
||
},
|
||
"idStr": {
|
||
"type": "string"
|
||
},
|
||
"introduce": {
|
||
"type": "string"
|
||
},
|
||
"joinType": {
|
||
"description": "加群方式,0=无需审批(默认),1=禁止加群,群主和管理员邀请加群, 2=普通人邀请需要审批,群主和管理员直接加群",
|
||
"type": "integer"
|
||
},
|
||
"key": {
|
||
"type": "string"
|
||
},
|
||
"markId": {
|
||
"description": "群显示的 ID",
|
||
"type": "string"
|
||
},
|
||
"maximum": {
|
||
"description": "群人数上限",
|
||
"type": "integer"
|
||
},
|
||
"memberNum": {
|
||
"description": "群人数",
|
||
"type": "integer"
|
||
},
|
||
"members": {
|
||
"description": "群成员",
|
||
"type": "array",
|
||
"items": {
|
||
"$ref": "#/definitions/types.GroupMember"
|
||
}
|
||
},
|
||
"muteNum": {
|
||
"description": "群内当前被禁言的人数",
|
||
"type": "integer"
|
||
},
|
||
"muteType": {
|
||
"description": "禁言, 0=全员可发言, 1=全员禁言(除群主和管理员)",
|
||
"type": "integer"
|
||
},
|
||
"name": {
|
||
"description": "群名称 加密的",
|
||
"type": "string"
|
||
},
|
||
"owner": {
|
||
"description": "群主 信息",
|
||
"$ref": "#/definitions/types.GroupMember"
|
||
},
|
||
"person": {
|
||
"description": "本人在群内的信息",
|
||
"$ref": "#/definitions/types.GroupMember"
|
||
},
|
||
"publicName": {
|
||
"description": "公开的群名称 不加密的",
|
||
"type": "string"
|
||
},
|
||
"status": {
|
||
"description": "群状态,0=正常 1=封禁 2=解散",
|
||
"type": "integer"
|
||
}
|
||
}
|
||
},
|
||
"types.GeneralResponse": {
|
||
"type": "object",
|
||
"properties": {
|
||
"data": {
|
||
"type": "object"
|
||
},
|
||
"message": {
|
||
"type": "integer"
|
||
},
|
||
"result": {
|
||
"type": "integer"
|
||
}
|
||
}
|
||
},
|
||
"types.GetGroupApplyByIdReq": {
|
||
"type": "object",
|
||
"required": [
|
||
"applyId",
|
||
"id"
|
||
],
|
||
"properties": {
|
||
"applyId": {
|
||
"description": "审批 ID",
|
||
"type": "string"
|
||
},
|
||
"id": {
|
||
"description": "群 ID",
|
||
"type": "string"
|
||
}
|
||
}
|
||
},
|
||
"types.GetGroupApplysReq": {
|
||
"type": "object",
|
||
"required": [
|
||
"count",
|
||
"id"
|
||
],
|
||
"properties": {
|
||
"count": {
|
||
"description": "每页记录数",
|
||
"type": "integer"
|
||
},
|
||
"id": {
|
||
"description": "群 ID",
|
||
"type": "string"
|
||
},
|
||
"offset": {
|
||
"description": "当前审批记录数量",
|
||
"type": "integer"
|
||
}
|
||
}
|
||
},
|
||
"types.GetGroupApplysResp": {
|
||
"type": "object",
|
||
"properties": {
|
||
"applys": {
|
||
"type": "array",
|
||
"items": {
|
||
"$ref": "#/definitions/types.GroupApplyInfo"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"types.GetGroupInfoByConditionReq": {
|
||
"type": "object",
|
||
"required": [
|
||
"query"
|
||
],
|
||
"properties": {
|
||
"query": {
|
||
"type": "string"
|
||
},
|
||
"tp": {
|
||
"description": "查询方法 0:groupMarkId, 1:groupId",
|
||
"type": "integer"
|
||
}
|
||
}
|
||
},
|
||
"types.GetGroupInfoByConditionResp": {
|
||
"type": "object",
|
||
"properties": {
|
||
"groups": {
|
||
"type": "array",
|
||
"items": {
|
||
"$ref": "#/definitions/types.GroupInfo"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"types.GetGroupInfoRequest": {
|
||
"type": "object",
|
||
"properties": {
|
||
"id": {
|
||
"type": "integer"
|
||
},
|
||
"idStr": {
|
||
"description": "如果同时填了 idStr, 则优先选择 idStr",
|
||
"type": "string"
|
||
}
|
||
}
|
||
},
|
||
"types.GetGroupInfoResponse": {
|
||
"type": "object",
|
||
"properties": {
|
||
"adminNum": {
|
||
"description": "群内管理员数量",
|
||
"type": "integer"
|
||
},
|
||
"avatar": {
|
||
"description": "头像 url",
|
||
"type": "string"
|
||
},
|
||
"createTime": {
|
||
"description": "群创建时间",
|
||
"type": "integer"
|
||
},
|
||
"friendType": {
|
||
"description": "加好友限制, 0=群内可加好友,1=群内禁止加好友",
|
||
"type": "integer"
|
||
},
|
||
"groupType": {
|
||
"description": "群类型 (0: 普通群, 1: 全员群, 2: 部门群)",
|
||
"type": "integer"
|
||
},
|
||
"id": {
|
||
"description": "群 ID",
|
||
"type": "integer"
|
||
},
|
||
"idStr": {
|
||
"type": "string"
|
||
},
|
||
"introduce": {
|
||
"type": "string"
|
||
},
|
||
"joinType": {
|
||
"description": "加群方式,0=无需审批(默认),1=禁止加群,群主和管理员邀请加群, 2=普通人邀请需要审批,群主和管理员直接加群",
|
||
"type": "integer"
|
||
},
|
||
"key": {
|
||
"type": "string"
|
||
},
|
||
"markId": {
|
||
"description": "群显示的 ID",
|
||
"type": "string"
|
||
},
|
||
"maximum": {
|
||
"description": "群人数上限",
|
||
"type": "integer"
|
||
},
|
||
"memberNum": {
|
||
"description": "群人数",
|
||
"type": "integer"
|
||
},
|
||
"members": {
|
||
"type": "array",
|
||
"items": {
|
||
"$ref": "#/definitions/types.GroupMember"
|
||
}
|
||
},
|
||
"muteNum": {
|
||
"description": "群内当前被禁言的人数",
|
||
"type": "integer"
|
||
},
|
||
"muteType": {
|
||
"description": "禁言, 0=全员可发言, 1=全员禁言(除群主和管理员)",
|
||
"type": "integer"
|
||
},
|
||
"name": {
|
||
"description": "群名称 加密的",
|
||
"type": "string"
|
||
},
|
||
"owner": {
|
||
"description": "群主 信息",
|
||
"$ref": "#/definitions/types.GroupMember"
|
||
},
|
||
"person": {
|
||
"description": "本人在群内的信息",
|
||
"$ref": "#/definitions/types.GroupMember"
|
||
},
|
||
"publicName": {
|
||
"description": "公开的群名称 不加密的",
|
||
"type": "string"
|
||
},
|
||
"status": {
|
||
"description": "群状态,0=正常 1=封禁 2=解散",
|
||
"type": "integer"
|
||
}
|
||
}
|
||
},
|
||
"types.GetGroupListRequest": {
|
||
"type": "object"
|
||
},
|
||
"types.GetGroupListResponse": {
|
||
"type": "object",
|
||
"properties": {
|
||
"groups": {
|
||
"type": "array",
|
||
"items": {
|
||
"$ref": "#/definitions/types.GroupInfo"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"types.GetGroupMemberInfoRequest": {
|
||
"type": "object",
|
||
"required": [
|
||
"memberId"
|
||
],
|
||
"properties": {
|
||
"id": {
|
||
"type": "integer"
|
||
},
|
||
"idStr": {
|
||
"description": "如果同时填了 idStr, 则优先选择 idStr",
|
||
"type": "string"
|
||
},
|
||
"memberId": {
|
||
"type": "string"
|
||
}
|
||
}
|
||
},
|
||
"types.GetGroupMemberInfoResponse": {
|
||
"type": "object",
|
||
"properties": {
|
||
"memberId": {
|
||
"description": "用户 ID",
|
||
"type": "string"
|
||
},
|
||
"memberMuteTime": {
|
||
"description": "该用户被禁言结束的时间 9223372036854775807=永久禁言",
|
||
"type": "integer"
|
||
},
|
||
"memberName": {
|
||
"description": "用户群昵称",
|
||
"type": "string"
|
||
},
|
||
"memberType": {
|
||
"description": "用户角色,2=群主,1=管理员,0=群员,10=退群",
|
||
"type": "integer"
|
||
}
|
||
}
|
||
},
|
||
"types.GetGroupMemberListRequest": {
|
||
"type": "object",
|
||
"properties": {
|
||
"id": {
|
||
"type": "integer"
|
||
},
|
||
"idStr": {
|
||
"description": "如果同时填了 idStr, 则优先选择 idStr",
|
||
"type": "string"
|
||
}
|
||
}
|
||
},
|
||
"types.GetGroupMemberListResponse": {
|
||
"type": "object",
|
||
"properties": {
|
||
"id": {
|
||
"type": "integer"
|
||
},
|
||
"idStr": {
|
||
"description": "如果同时填了 idStr, 则优先选择 idStr",
|
||
"type": "string"
|
||
},
|
||
"members": {
|
||
"type": "array",
|
||
"items": {
|
||
"$ref": "#/definitions/types.GroupMember"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"types.GetGroupPubInfoRequest": {
|
||
"type": "object",
|
||
"properties": {
|
||
"id": {
|
||
"description": "群 ID",
|
||
"type": "integer"
|
||
},
|
||
"idStr": {
|
||
"description": "如果同时填了 idStr, 则优先选择 idStr",
|
||
"type": "string"
|
||
}
|
||
}
|
||
},
|
||
"types.GetGroupPubInfoResponse": {
|
||
"type": "object",
|
||
"properties": {
|
||
"adminNum": {
|
||
"description": "群内管理员数量",
|
||
"type": "integer"
|
||
},
|
||
"avatar": {
|
||
"description": "头像 url",
|
||
"type": "string"
|
||
},
|
||
"createTime": {
|
||
"description": "群创建时间",
|
||
"type": "integer"
|
||
},
|
||
"friendType": {
|
||
"description": "加好友限制, 0=群内可加好友,1=群内禁止加好友",
|
||
"type": "integer"
|
||
},
|
||
"groupType": {
|
||
"description": "群类型 (0: 普通群, 1: 全员群, 2: 部门群)",
|
||
"type": "integer"
|
||
},
|
||
"id": {
|
||
"description": "群 ID",
|
||
"type": "integer"
|
||
},
|
||
"idStr": {
|
||
"type": "string"
|
||
},
|
||
"introduce": {
|
||
"type": "string"
|
||
},
|
||
"joinType": {
|
||
"description": "加群方式,0=无需审批(默认),1=禁止加群,群主和管理员邀请加群, 2=普通人邀请需要审批,群主和管理员直接加群",
|
||
"type": "integer"
|
||
},
|
||
"key": {
|
||
"type": "string"
|
||
},
|
||
"markId": {
|
||
"description": "群显示的 ID",
|
||
"type": "string"
|
||
},
|
||
"maximum": {
|
||
"description": "群人数上限",
|
||
"type": "integer"
|
||
},
|
||
"memberNum": {
|
||
"description": "群人数",
|
||
"type": "integer"
|
||
},
|
||
"muteNum": {
|
||
"description": "群内当前被禁言的人数",
|
||
"type": "integer"
|
||
},
|
||
"muteType": {
|
||
"description": "禁言, 0=全员可发言, 1=全员禁言(除群主和管理员)",
|
||
"type": "integer"
|
||
},
|
||
"name": {
|
||
"description": "群名称 加密的",
|
||
"type": "string"
|
||
},
|
||
"owner": {
|
||
"description": "群主 信息",
|
||
"$ref": "#/definitions/types.GroupMember"
|
||
},
|
||
"person": {
|
||
"description": "本人在群内的信息",
|
||
"$ref": "#/definitions/types.GroupMember"
|
||
},
|
||
"publicName": {
|
||
"description": "公开的群名称 不加密的",
|
||
"type": "string"
|
||
},
|
||
"status": {
|
||
"description": "群状态,0=正常 1=封禁 2=解散",
|
||
"type": "integer"
|
||
}
|
||
}
|
||
},
|
||
"types.GetMuteListRequest": {
|
||
"type": "object",
|
||
"properties": {
|
||
"id": {
|
||
"description": "群 ID",
|
||
"type": "integer"
|
||
},
|
||
"idStr": {
|
||
"description": "如果同时填了 idStr, 则优先选择 idStr",
|
||
"type": "string"
|
||
}
|
||
}
|
||
},
|
||
"types.GetMuteListResponse": {
|
||
"type": "object",
|
||
"properties": {
|
||
"members": {
|
||
"type": "array",
|
||
"items": {
|
||
"$ref": "#/definitions/types.GroupMember"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"types.GroupApplyInfo": {
|
||
"type": "object",
|
||
"properties": {
|
||
"applyId": {
|
||
"description": "审批 ID",
|
||
"type": "string"
|
||
},
|
||
"applyNote": {
|
||
"description": "申请备注",
|
||
"type": "string"
|
||
},
|
||
"applyStatus": {
|
||
"description": "审批情况 0=待审批, 1=审批通过, 2=审批不通过, 10=审批忽略",
|
||
"type": "integer"
|
||
},
|
||
"createTime": {
|
||
"description": "创建时间 ms",
|
||
"type": "integer"
|
||
},
|
||
"id": {
|
||
"description": "群 ID",
|
||
"type": "string"
|
||
},
|
||
"inviterId": {
|
||
"description": "邀请人 ID, 空表示是自己主动申请的",
|
||
"type": "string"
|
||
},
|
||
"memberId": {
|
||
"description": "申请加入人 ID",
|
||
"type": "string"
|
||
},
|
||
"operatorId": {
|
||
"description": "审批人 ID",
|
||
"type": "string"
|
||
},
|
||
"rejectReason": {
|
||
"description": "拒绝原因",
|
||
"type": "string"
|
||
},
|
||
"updateTime": {
|
||
"description": "修改时间 ms",
|
||
"type": "integer"
|
||
}
|
||
}
|
||
},
|
||
"types.GroupDisbandRequest": {
|
||
"type": "object",
|
||
"properties": {
|
||
"id": {
|
||
"type": "integer"
|
||
},
|
||
"idStr": {
|
||
"description": "如果同时填了 idStr, 则优先选择 idStr",
|
||
"type": "string"
|
||
}
|
||
}
|
||
},
|
||
"types.GroupDisbandResponse": {
|
||
"type": "object"
|
||
},
|
||
"types.GroupExitRequest": {
|
||
"type": "object",
|
||
"properties": {
|
||
"id": {
|
||
"type": "integer"
|
||
},
|
||
"idStr": {
|
||
"description": "如果同时填了 idStr, 则优先选择 idStr",
|
||
"type": "string"
|
||
}
|
||
}
|
||
},
|
||
"types.GroupExitResponse": {
|
||
"type": "object"
|
||
},
|
||
"types.GroupInfo": {
|
||
"type": "object",
|
||
"properties": {
|
||
"adminNum": {
|
||
"description": "群内管理员数量",
|
||
"type": "integer"
|
||
},
|
||
"avatar": {
|
||
"description": "头像 url",
|
||
"type": "string"
|
||
},
|
||
"createTime": {
|
||
"description": "群创建时间",
|
||
"type": "integer"
|
||
},
|
||
"friendType": {
|
||
"description": "加好友限制, 0=群内可加好友,1=群内禁止加好友",
|
||
"type": "integer"
|
||
},
|
||
"groupType": {
|
||
"description": "群类型 (0: 普通群, 1: 全员群, 2: 部门群)",
|
||
"type": "integer"
|
||
},
|
||
"id": {
|
||
"description": "群 ID",
|
||
"type": "integer"
|
||
},
|
||
"idStr": {
|
||
"type": "string"
|
||
},
|
||
"introduce": {
|
||
"type": "string"
|
||
},
|
||
"joinType": {
|
||
"description": "加群方式,0=无需审批(默认),1=禁止加群,群主和管理员邀请加群, 2=普通人邀请需要审批,群主和管理员直接加群",
|
||
"type": "integer"
|
||
},
|
||
"key": {
|
||
"type": "string"
|
||
},
|
||
"markId": {
|
||
"description": "群显示的 ID",
|
||
"type": "string"
|
||
},
|
||
"maximum": {
|
||
"description": "群人数上限",
|
||
"type": "integer"
|
||
},
|
||
"memberNum": {
|
||
"description": "群人数",
|
||
"type": "integer"
|
||
},
|
||
"muteNum": {
|
||
"description": "群内当前被禁言的人数",
|
||
"type": "integer"
|
||
},
|
||
"muteType": {
|
||
"description": "禁言, 0=全员可发言, 1=全员禁言(除群主和管理员)",
|
||
"type": "integer"
|
||
},
|
||
"name": {
|
||
"description": "群名称 加密的",
|
||
"type": "string"
|
||
},
|
||
"owner": {
|
||
"description": "群主 信息",
|
||
"$ref": "#/definitions/types.GroupMember"
|
||
},
|
||
"person": {
|
||
"description": "本人在群内的信息",
|
||
"$ref": "#/definitions/types.GroupMember"
|
||
},
|
||
"publicName": {
|
||
"description": "公开的群名称 不加密的",
|
||
"type": "string"
|
||
},
|
||
"status": {
|
||
"description": "群状态,0=正常 1=封禁 2=解散",
|
||
"type": "integer"
|
||
}
|
||
}
|
||
},
|
||
"types.GroupMember": {
|
||
"type": "object",
|
||
"properties": {
|
||
"memberId": {
|
||
"description": "用户 ID",
|
||
"type": "string"
|
||
},
|
||
"memberMuteTime": {
|
||
"description": "该用户被禁言结束的时间 9223372036854775807=永久禁言",
|
||
"type": "integer"
|
||
},
|
||
"memberName": {
|
||
"description": "用户群昵称",
|
||
"type": "string"
|
||
},
|
||
"memberType": {
|
||
"description": "用户角色,2=群主,1=管理员,0=群员,10=退群",
|
||
"type": "integer"
|
||
}
|
||
}
|
||
},
|
||
"types.GroupRemoveRequest": {
|
||
"type": "object",
|
||
"required": [
|
||
"memberIds"
|
||
],
|
||
"properties": {
|
||
"id": {
|
||
"type": "integer"
|
||
},
|
||
"idStr": {
|
||
"description": "如果同时填了 idStr, 则优先选择 idStr",
|
||
"type": "string"
|
||
},
|
||
"memberIds": {
|
||
"type": "array",
|
||
"items": {
|
||
"type": "string"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"types.GroupRemoveResponse": {
|
||
"type": "object",
|
||
"properties": {
|
||
"memberIds": {
|
||
"description": "成功被踢的成员列表",
|
||
"type": "array",
|
||
"items": {
|
||
"type": "string"
|
||
}
|
||
},
|
||
"memberNum": {
|
||
"description": "群人数",
|
||
"type": "integer"
|
||
}
|
||
}
|
||
},
|
||
"types.InviteGroupMembersRequest": {
|
||
"type": "object",
|
||
"required": [
|
||
"newMemberIds"
|
||
],
|
||
"properties": {
|
||
"id": {
|
||
"type": "integer"
|
||
},
|
||
"idStr": {
|
||
"description": "如果同时填了 idStr, 则优先选择 idStr",
|
||
"type": "string"
|
||
},
|
||
"newMemberIds": {
|
||
"type": "array",
|
||
"items": {
|
||
"type": "string"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"types.InviteGroupMembersResponse": {
|
||
"type": "object",
|
||
"properties": {
|
||
"id": {
|
||
"type": "integer",
|
||
"example": 123821199217135616
|
||
},
|
||
"idStr": {
|
||
"type": "string"
|
||
},
|
||
"memberNum": {
|
||
"type": "integer",
|
||
"example": 5
|
||
}
|
||
}
|
||
},
|
||
"types.JoinGroupReq": {
|
||
"type": "object",
|
||
"properties": {
|
||
"id": {
|
||
"type": "integer"
|
||
},
|
||
"idStr": {
|
||
"type": "string"
|
||
},
|
||
"inviterId": {
|
||
"type": "string"
|
||
}
|
||
}
|
||
},
|
||
"types.JoinGroupResp": {
|
||
"type": "object",
|
||
"properties": {
|
||
"id": {
|
||
"type": "integer"
|
||
},
|
||
"idStr": {
|
||
"type": "string"
|
||
}
|
||
}
|
||
},
|
||
"types.RejectGroupApplyReq": {
|
||
"type": "object",
|
||
"required": [
|
||
"applyId",
|
||
"id"
|
||
],
|
||
"properties": {
|
||
"applyId": {
|
||
"description": "审批 ID",
|
||
"type": "string"
|
||
},
|
||
"id": {
|
||
"description": "群 ID",
|
||
"type": "string"
|
||
},
|
||
"rejectReason": {
|
||
"description": "拒绝原因",
|
||
"type": "string"
|
||
}
|
||
}
|
||
},
|
||
"types.RejectGroupApplyResp": {
|
||
"type": "object"
|
||
},
|
||
"types.SetAdminRequest": {
|
||
"type": "object",
|
||
"required": [
|
||
"memberId"
|
||
],
|
||
"properties": {
|
||
"id": {
|
||
"description": "群 ID",
|
||
"type": "integer"
|
||
},
|
||
"idStr": {
|
||
"description": "如果同时填了 idStr, 则优先选择 idStr",
|
||
"type": "string"
|
||
},
|
||
"memberId": {
|
||
"description": "被设置的群成员 ID",
|
||
"type": "string"
|
||
},
|
||
"memberType": {
|
||
"description": "用户角色 0=群员, 1=管理员",
|
||
"type": "integer"
|
||
}
|
||
}
|
||
},
|
||
"types.SetAdminResponse": {
|
||
"type": "object"
|
||
},
|
||
"types.UpdateGroupAvatarRequest": {
|
||
"type": "object",
|
||
"properties": {
|
||
"avatar": {
|
||
"type": "string"
|
||
},
|
||
"id": {
|
||
"type": "integer"
|
||
},
|
||
"idStr": {
|
||
"description": "如果同时填了 idStr, 则优先选择 idStr",
|
||
"type": "string"
|
||
}
|
||
}
|
||
},
|
||
"types.UpdateGroupAvatarResponse": {
|
||
"type": "object"
|
||
},
|
||
"types.UpdateGroupFriendTypeRequest": {
|
||
"type": "object",
|
||
"properties": {
|
||
"friendType": {
|
||
"description": "加好友限制, 0=群内可加好友,1=群内禁止加好友",
|
||
"type": "integer"
|
||
},
|
||
"id": {
|
||
"description": "群 ID",
|
||
"type": "integer"
|
||
},
|
||
"idStr": {
|
||
"description": "如果同时填了 idStr, 则优先选择 idStr",
|
||
"type": "string"
|
||
}
|
||
}
|
||
},
|
||
"types.UpdateGroupFriendTypeResponse": {
|
||
"type": "object"
|
||
},
|
||
"types.UpdateGroupJoinTypeRequest": {
|
||
"type": "object",
|
||
"properties": {
|
||
"id": {
|
||
"description": "群 ID",
|
||
"type": "integer"
|
||
},
|
||
"idStr": {
|
||
"description": "如果同时填了 idStr, 则优先选择 idStr",
|
||
"type": "string"
|
||
},
|
||
"joinType": {
|
||
"description": "加群方式,0=无需审批(默认),1=禁止加群,群主和管理员邀请加群, 2=普通人邀请需要审批,群主和管理员直接加群",
|
||
"type": "integer"
|
||
}
|
||
}
|
||
},
|
||
"types.UpdateGroupJoinTypeResponse": {
|
||
"type": "object"
|
||
},
|
||
"types.UpdateGroupMemberMuteTimeRequest": {
|
||
"type": "object",
|
||
"required": [
|
||
"memberIds"
|
||
],
|
||
"properties": {
|
||
"id": {
|
||
"description": "群 ID",
|
||
"type": "integer"
|
||
},
|
||
"idStr": {
|
||
"description": "如果同时填了 idStr, 则优先选择 idStr",
|
||
"type": "string"
|
||
},
|
||
"memberIds": {
|
||
"description": "被禁言的群员 ID",
|
||
"type": "array",
|
||
"items": {
|
||
"type": "string"
|
||
}
|
||
},
|
||
"muteTime": {
|
||
"description": "禁言持续时间, 传9223372036854775807=永久禁言, 0=解除禁言",
|
||
"type": "integer"
|
||
}
|
||
}
|
||
},
|
||
"types.UpdateGroupMemberMuteTimeResponse": {
|
||
"type": "object",
|
||
"properties": {
|
||
"members": {
|
||
"type": "array",
|
||
"items": {
|
||
"$ref": "#/definitions/types.GroupMember"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"types.UpdateGroupMemberNameRequest": {
|
||
"type": "object",
|
||
"properties": {
|
||
"id": {
|
||
"type": "integer"
|
||
},
|
||
"idStr": {
|
||
"description": "如果同时填了 idStr, 则优先选择 idStr",
|
||
"type": "string"
|
||
},
|
||
"memberName": {
|
||
"type": "string"
|
||
}
|
||
}
|
||
},
|
||
"types.UpdateGroupMemberNameResponse": {
|
||
"type": "object"
|
||
},
|
||
"types.UpdateGroupMuteTypeRequest": {
|
||
"type": "object",
|
||
"properties": {
|
||
"id": {
|
||
"description": "群 ID",
|
||
"type": "integer"
|
||
},
|
||
"idStr": {
|
||
"description": "如果同时填了 idStr, 则优先选择 idStr",
|
||
"type": "string"
|
||
},
|
||
"muteType": {
|
||
"description": "禁言, 0=全员可发言, 1=全员禁言(除群主和管理员)",
|
||
"type": "integer"
|
||
}
|
||
}
|
||
},
|
||
"types.UpdateGroupMuteTypeResponse": {
|
||
"type": "object"
|
||
},
|
||
"types.UpdateGroupNameRequest": {
|
||
"type": "object",
|
||
"properties": {
|
||
"id": {
|
||
"type": "integer"
|
||
},
|
||
"idStr": {
|
||
"description": "如果同时填了 idStr, 则优先选择 idStr",
|
||
"type": "string"
|
||
},
|
||
"name": {
|
||
"type": "string"
|
||
},
|
||
"publicName": {
|
||
"type": "string"
|
||
}
|
||
}
|
||
},
|
||
"types.UpdateGroupNameResponse": {
|
||
"type": "object"
|
||
}
|
||
}
|
||
}`
|
||
|
||
type swaggerInfo struct {
|
||
Version string
|
||
Host string
|
||
BasePath string
|
||
Schemes []string
|
||
Title string
|
||
Description string
|
||
}
|
||
|
||
// SwaggerInfo holds exported Swagger Info so clients can modify it
|
||
var SwaggerInfo = swaggerInfo{
|
||
Version: "1.0",
|
||
Host: "127.0.0.1:18011",
|
||
BasePath: "",
|
||
Schemes: []string{},
|
||
Title: "群服务接口",
|
||
Description: "",
|
||
}
|
||
|
||
type s struct{}
|
||
|
||
func (s *s) ReadDoc() string {
|
||
sInfo := SwaggerInfo
|
||
sInfo.Description = strings.Replace(sInfo.Description, "\n", "\\n", -1)
|
||
|
||
t, err := template.New("swagger_info").Funcs(template.FuncMap{
|
||
"marshal": func(v interface{}) string {
|
||
a, _ := json.Marshal(v)
|
||
return string(a)
|
||
},
|
||
}).Parse(doc)
|
||
if err != nil {
|
||
return doc
|
||
}
|
||
|
||
var tpl bytes.Buffer
|
||
if err := t.Execute(&tpl, sInfo); err != nil {
|
||
return doc
|
||
}
|
||
|
||
return tpl.String()
|
||
}
|
||
|
||
func init() {
|
||
swag.Register(swag.Name, &s{})
|
||
}
|