File tree Expand file tree Collapse file tree 6 files changed +55
-4
lines changed
src/main/kotlin/org/gitanimals/guild Expand file tree Collapse file tree 6 files changed +55
-4
lines changed Original file line number Diff line number Diff line change @@ -101,6 +101,23 @@ Farm mode shows all your animals and additional information.
101101</a >
102102```
103103
104+ ### guild mode
105+
106+ You can create a guild, invite friends to join, and raise pets together!
107+ [ Click to create guild] ( https://gitanimals.org/guilds )
108+
109+ <a href =" https://www.gitanimals.org/ " >
110+ <img src="https://render.gitanimals.org/guilds/668749238833660322/draw" width="300" alt="gitanimals"/>
111+ </a >
112+
113+ ** html**
114+
115+ ``` html
116+ <a href =" https://github.com/devxb/gitanimals" >
117+ <img src =" https://render.gitanimals.org/guilds/{guildId}/draw" />
118+ </a >
119+ ```
120+
104121## Tips
105122
106123### How to Acquire Pets
Original file line number Diff line number Diff line change @@ -101,6 +101,23 @@ linesใขใผใใงใฏใใใใใฎใฌใใซใฎไธใซ็ทใณใณใใชใใฅใผใท
101101</a >
102102```
103103
104+ ### guild mode
105+
106+ ใฎใซใใไฝๆใใๅ้ใๆๅพ
ใใฆใไธ็ทใซใใใใ่ฒใฆใพใใใ๏ผ
107+ [ Click to create guild] ( https://gitanimals.org/guilds )
108+
109+ <a href =" https://www.gitanimals.org/ " >
110+ <img src="https://render.gitanimals.org/guilds/668749238833660322/draw" width="300" alt="gitanimals"/>
111+ </a >
112+
113+ ** html**
114+
115+ ``` html
116+ <a href =" https://github.com/devxb/gitanimals" >
117+ <img src =" https://render.gitanimals.org/guilds/{guildId}/draw" />
118+ </a >
119+ ```
120+
104121## TIPS
105122
106123### ใใใใ็ฒๅพใใๆนๆณ
Original file line number Diff line number Diff line change 9797</a >
9898```
9999
100+ ### guild mode
101+
102+ ๆจๅฏไปฅๅๅปบๅ
ฌไผ๏ผ้่ฏทๆๅๅ ๅ
ฅ๏ผไธ่ตทๅ
ปๅฎ ็ฉ๏ผ
103+ [ Click to create guild] ( https://gitanimals.org/guilds )
104+
105+ <a href =" https://www.gitanimals.org/ " >
106+ <img src="https://render.gitanimals.org/guilds/668749238833660322/draw" width="300" alt="gitanimals"/>
107+ </a >
108+
109+ ** html**
110+
111+ ``` html
112+ <a href =" https://github.com/devxb/gitanimals" >
113+ <img src =" https://render.gitanimals.org/guilds/{guildId}/draw" />
114+ </a >
115+ ```
116+
100117## ๆ็คบ
101118
102119### ๅฆไฝ่ทๅๅฎ ็ฉ
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ farm mode๋ ๊ฐ์ง๊ณ ์๋ ๋ชจ๋ ๋๋ฌผ๊ณผ ์ถ๊ฐ์ ์ธ ์ ๋ณด๋ฅผ ๋ณด์ฌ์ค
103103### guild mode
104104
105105๊ธธ๋๋ฅผ ๋ง๋ค๊ณ ์น๊ตฌ์ ํจ๊ป ํซ์ ํค์ธ ์ ์์ด์.
106- [ ๊ธธ๋ ๋ง๋ค๋ฌ ๊ฐ๊ธฐ] ( https://gitanimals.org/guilds )
106+ [ ๊ธธ๋ ๋ง๋ค๋ฌ ๊ฐ๊ธฐ] ( https://gitanimals.org/guild )
107107
108108<a href =" https://www.gitanimals.org/ " >
109109 <img src="https://render.gitanimals.org/guilds/668749238833660322/draw" width="300" alt="gitanimals"/>
Original file line number Diff line number Diff line change @@ -18,12 +18,12 @@ data class GuildPagingResponse(
1818
1919 companion object {
2020
21- fun from (guilds : Page <Guild >): GuildPagingResponse {
21+ fun from (guilds : Page <Guild >, forceCurrentPage : Int ): GuildPagingResponse {
2222 return GuildPagingResponse (
2323 guilds = guilds.map { GuildResponse .from(it) }.toList(),
2424 pagination = Pagination (
2525 totalRecords = guilds.count(),
26- currentPage = guilds.number ,
26+ currentPage = forceCurrentPage ,
2727 totalPages = guilds.totalPages,
2828 nextPage = when (guilds.hasNext()) {
2929 true -> guilds.number + 1
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ class GuildController(
111111 filter = filter,
112112 )
113113
114- return GuildPagingResponse .from(guilds)
114+ return GuildPagingResponse .from(guilds, pageNumber )
115115 }
116116
117117 @GetMapping(" /guilds/icons" )
You canโt perform that action at this time.
0 commit comments