Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit51d2f2e

Browse files
committed
Run make gen and add json struct tags for pagination
1 parentd31a7db commit51d2f2e

File tree

3 files changed

+19
-21
lines changed

3 files changed

+19
-21
lines changed

‎codersdk/templates.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func (c *Client) UpdateActiveTemplateVersion(ctx context.Context, template uuid.
7373
// TemplateVersionsByTemplate.
7474
typeTemplateVersionsByTemplateRequeststruct {
7575
TemplateID uuid.UUID`json:"template_id" validate:"required"`
76-
Pagination
76+
Pagination`json:"pagination"`
7777
}
7878

7979
// TemplateVersionsByTemplate lists versions associated with a template.

‎codersdk/users.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ const (
2323
typeUsersRequeststruct {
2424
Searchstring`json:"search"`
2525
// Filter users by status
26-
Statusstring`json:"status"`
27-
Pagination
26+
Statusstring`json:"status"`
27+
Pagination`json:"pagination"`
2828
}
2929

3030
// User represents a user in Coder.

‎site/src/api/typesGenerated.ts

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export interface AgentGitSSHKey {
1212
readonlyprivate_key:string
1313
}
1414

15-
// From codersdk/users.go:105:6
15+
// From codersdk/users.go:95:6
1616
exportinterfaceAuthMethods{
1717
readonlypassword:boolean
1818
readonlygithub:boolean
@@ -30,21 +30,21 @@ export interface BuildInfoResponse {
3030
readonlyversion:string
3131
}
3232

33-
// From codersdk/users.go:50:6
33+
// From codersdk/users.go:40:6
3434
exportinterfaceCreateFirstUserRequest{
3535
readonlyemail:string
3636
readonlyusername:string
3737
readonlypassword:string
3838
readonlyorganization:string
3939
}
4040

41-
// From codersdk/users.go:58:6
41+
// From codersdk/users.go:48:6
4242
exportinterfaceCreateFirstUserResponse{
4343
readonlyuser_id:string
4444
readonlyorganization_id:string
4545
}
4646

47-
// From codersdk/users.go:100:6
47+
// From codersdk/users.go:90:6
4848
exportinterfaceCreateOrganizationRequest{
4949
readonlyname:string
5050
}
@@ -77,7 +77,7 @@ export interface CreateTemplateVersionRequest {
7777
readonlyparameter_values:CreateParameterRequest[]
7878
}
7979

80-
// From codersdk/users.go:63:6
80+
// From codersdk/users.go:53:6
8181
exportinterfaceCreateUserRequest{
8282
readonlyemail:string
8383
readonlyusername:string
@@ -101,7 +101,7 @@ export interface CreateWorkspaceRequest {
101101
readonlyparameter_values:CreateParameterRequest[]
102102
}
103103

104-
// From codersdk/users.go:96:6
104+
// From codersdk/users.go:86:6
105105
exportinterfaceGenerateAPIKeyResponse{
106106
readonlykey:string
107107
}
@@ -119,13 +119,13 @@ export interface GoogleInstanceIdentityToken {
119119
readonlyjson_web_token:string
120120
}
121121

122-
// From codersdk/users.go:85:6
122+
// From codersdk/users.go:75:6
123123
exportinterfaceLoginWithPasswordRequest{
124124
readonlyemail:string
125125
readonlypassword:string
126126
}
127127

128-
// From codersdk/users.go:91:6
128+
// From codersdk/users.go:81:6
129129
exportinterfaceLoginWithPasswordResponse{
130130
readonlysession_token:string
131131
}
@@ -260,20 +260,20 @@ export interface TemplateVersionParameterSchema {
260260
// From codersdk/templates.go:74:6
261261
exportinterfaceTemplateVersionsByTemplateRequest{
262262
readonlytemplate_id:string
263-
readonlyPagination:Pagination
263+
readonlypagination:Pagination
264264
}
265265

266266
// From codersdk/templates.go:28:6
267267
exportinterfaceUpdateActiveTemplateVersion{
268268
readonlyid:string
269269
}
270270

271-
// From codersdk/users.go:75:6
271+
// From codersdk/users.go:65:6
272272
exportinterfaceUpdateRoles{
273273
readonlyroles:string[]
274274
}
275275

276-
// From codersdk/users.go:70:6
276+
// From codersdk/users.go:60:6
277277
exportinterfaceUpdateUserProfileRequest{
278278
readonlyemail:string
279279
readonlyusername:string
@@ -294,7 +294,7 @@ export interface UploadResponse {
294294
readonlyhash:string
295295
}
296296

297-
// From codersdk/users.go:41:6
297+
// From codersdk/users.go:31:6
298298
exportinterfaceUser{
299299
readonlyid:string
300300
readonlyemail:string
@@ -304,19 +304,17 @@ export interface User {
304304
readonlyorganization_ids:string[]
305305
}
306306

307-
// From codersdk/users.go:79:6
307+
// From codersdk/users.go:69:6
308308
exportinterfaceUserRoles{
309309
readonlyroles:string[]
310310
readonlyorganization_roles:Record<string,string[]>
311311
}
312312

313-
// From codersdk/users.go:24:6
313+
// From codersdk/users.go:23:6
314314
exportinterfaceUsersRequest{
315-
readonlyafter_user:string
316315
readonlysearch:string
317-
readonlylimit:number
318-
readonlyoffset:number
319316
readonlystatus:string
317+
readonlypagination:Pagination
320318
}
321319

322320
// From codersdk/workspaces.go:18:6
@@ -414,7 +412,7 @@ export type ParameterScope = "organization" | "template" | "user" | "workspace"
414412
// From codersdk/provisionerdaemons.go:26:6
415413
exporttypeProvisionerJobStatus="canceled"|"canceling"|"failed"|"pending"|"running"|"succeeded"
416414

417-
// From codersdk/users.go:17:6
415+
// From codersdk/users.go:16:6
418416
exporttypeUserStatus="active"|"suspended"
419417

420418
// From codersdk/workspaceresources.go:15:6

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp