GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(private-api): add `total_members` and `description` get topic's … · gitLibs/server@a882c60

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • internal/web
    • handler
      • comments.go
    • res
      • group_private.go
  • openapi
    • private.yaml
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎internal/web/handler/comments.go‎

Copy file name to clipboardExpand all lines: internal/web/handler/comments.go
+7-5Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,13 @@ func (h Handler) GetGroupTopic(c *fiber.Ctx) error {
5656
return res.JSON(c, ResPrivateTopicDetailWithGroup{
5757
PrivateTopicDetail: data,
5858
Group: res.PrivateGroup{
59-
ID: group.ID,
60-
Name: group.Name,
61-
CreatedAt: group.CreatedAt,
62-
Title: group.Title,
63-
Icon: groupIconPrefix + group.Icon,
59+
ID: group.ID,
60+
Name: group.Name,
61+
CreatedAt: group.CreatedAt,
62+
Title: group.Title,
63+
Icon: groupIconPrefix + group.Icon,
64+
TotalMembers: group.MemberCount,
65+
Description: group.Description,
6466
},
6567
})
6668
}
Collapse file

‎internal/web/res/group_private.go‎

Copy file name to clipboardExpand all lines: internal/web/res/group_private.go
+7-5Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,13 @@ import (
2121
)
2222

2323
type PrivateGroup struct {
24-
ID model.GroupID `json:"id"`
25-
Name string `json:"name"`
26-
CreatedAt time.Time `json:"created_at"`
27-
Title string `json:"title"`
28-
Icon string `json:"icon" format:"url"`
24+
ID model.GroupID `json:"id"`
25+
Name string `json:"name"`
26+
CreatedAt time.Time `json:"created_at"`
27+
Title string `json:"title"`
28+
Icon string `json:"icon" format:"url"`
29+
TotalMembers int64 `json:"total_members"`
30+
Description string `json:"description"`
2931
}
3032

3133
type PrivateGroupProfile struct {
Collapse file

‎openapi/private.yaml‎

Copy file name to clipboardExpand all lines: openapi/private.yaml
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -595,6 +595,8 @@ components:
595595
- created_at
596596
- title
597597
- icon
598+
- total_members
599+
- description
598600
properties:
599601
id:
600602
type: integer
@@ -608,6 +610,10 @@ components:
608610
icon:
609611
type: string
610612
format: url
613+
total_members:
614+
type: integer
615+
description:
616+
type: string
611617
PrivateTopicDetail:
612618
$ref: "./components/private/private_topic_detail.yaml"
613619
Topic:

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.