gitee.com/openeuler/go-gitee@v0.0.0-20220530104019-3af895bc380c/docs/ActivityApi.md (about) 1 # \ActivityApi 2 3 All URIs are relative to *https://gitee.com/api* 4 5 Method | HTTP request | Description 6 ------------- | ------------- | ------------- 7 [**DeleteV5UserStarredOwnerRepo**](ActivityApi.md#DeleteV5UserStarredOwnerRepo) | **Delete** /v5/user/starred/{owner}/{repo} | 取消 star 一个仓库 8 [**DeleteV5UserSubscriptionsOwnerRepo**](ActivityApi.md#DeleteV5UserSubscriptionsOwnerRepo) | **Delete** /v5/user/subscriptions/{owner}/{repo} | 取消 watch 一个仓库 9 [**GetV5Events**](ActivityApi.md#GetV5Events) | **Get** /v5/events | 获取站内所有公开动态 10 [**GetV5NetworksOwnerRepoEvents**](ActivityApi.md#GetV5NetworksOwnerRepoEvents) | **Get** /v5/networks/{owner}/{repo}/events | 列出仓库的所有公开动态 11 [**GetV5NotificationsCount**](ActivityApi.md#GetV5NotificationsCount) | **Get** /v5/notifications/count | 获取授权用户的通知数 12 [**GetV5NotificationsMessages**](ActivityApi.md#GetV5NotificationsMessages) | **Get** /v5/notifications/messages | 列出授权用户的所有私信 13 [**GetV5NotificationsMessagesId**](ActivityApi.md#GetV5NotificationsMessagesId) | **Get** /v5/notifications/messages/{id} | 获取一条私信 14 [**GetV5NotificationsThreads**](ActivityApi.md#GetV5NotificationsThreads) | **Get** /v5/notifications/threads | 列出授权用户的所有通知 15 [**GetV5NotificationsThreadsId**](ActivityApi.md#GetV5NotificationsThreadsId) | **Get** /v5/notifications/threads/{id} | 获取一条通知 16 [**GetV5OrgsOrgEvents**](ActivityApi.md#GetV5OrgsOrgEvents) | **Get** /v5/orgs/{org}/events | 列出组织的公开动态 17 [**GetV5ReposOwnerRepoEvents**](ActivityApi.md#GetV5ReposOwnerRepoEvents) | **Get** /v5/repos/{owner}/{repo}/events | 列出仓库的所有动态 18 [**GetV5ReposOwnerRepoNotifications**](ActivityApi.md#GetV5ReposOwnerRepoNotifications) | **Get** /v5/repos/{owner}/{repo}/notifications | 列出一个仓库里的通知 19 [**GetV5ReposOwnerRepoStargazers**](ActivityApi.md#GetV5ReposOwnerRepoStargazers) | **Get** /v5/repos/{owner}/{repo}/stargazers | 列出 star 了仓库的用户 20 [**GetV5ReposOwnerRepoSubscribers**](ActivityApi.md#GetV5ReposOwnerRepoSubscribers) | **Get** /v5/repos/{owner}/{repo}/subscribers | 列出 watch 了仓库的用户 21 [**GetV5UserStarred**](ActivityApi.md#GetV5UserStarred) | **Get** /v5/user/starred | 列出授权用户 star 了的仓库 22 [**GetV5UserStarredOwnerRepo**](ActivityApi.md#GetV5UserStarredOwnerRepo) | **Get** /v5/user/starred/{owner}/{repo} | 检查授权用户是否 star 了一个仓库 23 [**GetV5UserSubscriptions**](ActivityApi.md#GetV5UserSubscriptions) | **Get** /v5/user/subscriptions | 列出授权用户 watch 了的仓库 24 [**GetV5UserSubscriptionsOwnerRepo**](ActivityApi.md#GetV5UserSubscriptionsOwnerRepo) | **Get** /v5/user/subscriptions/{owner}/{repo} | 检查授权用户是否 watch 了一个仓库 25 [**GetV5UsersUsernameEvents**](ActivityApi.md#GetV5UsersUsernameEvents) | **Get** /v5/users/{username}/events | 列出用户的动态 26 [**GetV5UsersUsernameEventsOrgsOrg**](ActivityApi.md#GetV5UsersUsernameEventsOrgsOrg) | **Get** /v5/users/{username}/events/orgs/{org} | 列出用户所属组织的动态 27 [**GetV5UsersUsernameEventsPublic**](ActivityApi.md#GetV5UsersUsernameEventsPublic) | **Get** /v5/users/{username}/events/public | 列出用户的公开动态 28 [**GetV5UsersUsernameReceivedEvents**](ActivityApi.md#GetV5UsersUsernameReceivedEvents) | **Get** /v5/users/{username}/received_events | 列出一个用户收到的动态 29 [**GetV5UsersUsernameReceivedEventsPublic**](ActivityApi.md#GetV5UsersUsernameReceivedEventsPublic) | **Get** /v5/users/{username}/received_events/public | 列出一个用户收到的公开动态 30 [**GetV5UsersUsernameStarred**](ActivityApi.md#GetV5UsersUsernameStarred) | **Get** /v5/users/{username}/starred | 列出用户 star 了的仓库 31 [**GetV5UsersUsernameSubscriptions**](ActivityApi.md#GetV5UsersUsernameSubscriptions) | **Get** /v5/users/{username}/subscriptions | 列出用户 watch 了的仓库 32 [**PatchV5NotificationsMessagesId**](ActivityApi.md#PatchV5NotificationsMessagesId) | **Patch** /v5/notifications/messages/{id} | 标记一条私信为已读 33 [**PatchV5NotificationsThreadsId**](ActivityApi.md#PatchV5NotificationsThreadsId) | **Patch** /v5/notifications/threads/{id} | 标记一条通知为已读 34 [**PostV5NotificationsMessages**](ActivityApi.md#PostV5NotificationsMessages) | **Post** /v5/notifications/messages | 发送私信给指定用户 35 [**PutV5NotificationsMessages**](ActivityApi.md#PutV5NotificationsMessages) | **Put** /v5/notifications/messages | 标记所有私信为已读 36 [**PutV5NotificationsThreads**](ActivityApi.md#PutV5NotificationsThreads) | **Put** /v5/notifications/threads | 标记所有通知为已读 37 [**PutV5ReposOwnerRepoNotifications**](ActivityApi.md#PutV5ReposOwnerRepoNotifications) | **Put** /v5/repos/{owner}/{repo}/notifications | 标记一个仓库里的通知为已读 38 [**PutV5UserStarredOwnerRepo**](ActivityApi.md#PutV5UserStarredOwnerRepo) | **Put** /v5/user/starred/{owner}/{repo} | star 一个仓库 39 [**PutV5UserSubscriptionsOwnerRepo**](ActivityApi.md#PutV5UserSubscriptionsOwnerRepo) | **Put** /v5/user/subscriptions/{owner}/{repo} | watch 一个仓库 40 41 42 # **DeleteV5UserStarredOwnerRepo** 43 > DeleteV5UserStarredOwnerRepo(ctx, owner, repo, optional) 44 取消 star 一个仓库 45 46 取消 star 一个仓库 47 48 ### Required Parameters 49 50 Name | Type | Description | Notes 51 ------------- | ------------- | ------------- | ------------- 52 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 53 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 54 **repo** | **string**| 仓库路径(path) | 55 **optional** | ***DeleteV5UserStarredOwnerRepoOpts** | optional parameters | nil if no parameters 56 57 ### Optional Parameters 58 Optional parameters are passed through a pointer to a DeleteV5UserStarredOwnerRepoOpts struct 59 60 Name | Type | Description | Notes 61 ------------- | ------------- | ------------- | ------------- 62 63 64 **accessToken** | **optional.String**| 用户授权码 | 65 66 ### Return type 67 68 (empty response body) 69 70 ### Authorization 71 72 No authorization required 73 74 ### HTTP request headers 75 76 - **Content-Type**: application/json, multipart/form-data 77 - **Accept**: application/json 78 79 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 80 81 # **DeleteV5UserSubscriptionsOwnerRepo** 82 > DeleteV5UserSubscriptionsOwnerRepo(ctx, owner, repo, optional) 83 取消 watch 一个仓库 84 85 取消 watch 一个仓库 86 87 ### Required Parameters 88 89 Name | Type | Description | Notes 90 ------------- | ------------- | ------------- | ------------- 91 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 92 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 93 **repo** | **string**| 仓库路径(path) | 94 **optional** | ***DeleteV5UserSubscriptionsOwnerRepoOpts** | optional parameters | nil if no parameters 95 96 ### Optional Parameters 97 Optional parameters are passed through a pointer to a DeleteV5UserSubscriptionsOwnerRepoOpts struct 98 99 Name | Type | Description | Notes 100 ------------- | ------------- | ------------- | ------------- 101 102 103 **accessToken** | **optional.String**| 用户授权码 | 104 105 ### Return type 106 107 (empty response body) 108 109 ### Authorization 110 111 No authorization required 112 113 ### HTTP request headers 114 115 - **Content-Type**: application/json, multipart/form-data 116 - **Accept**: application/json 117 118 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 119 120 # **GetV5Events** 121 > []Event GetV5Events(ctx, optional) 122 获取站内所有公开动态 123 124 获取站内所有公开动态 125 126 ### Required Parameters 127 128 Name | Type | Description | Notes 129 ------------- | ------------- | ------------- | ------------- 130 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 131 **optional** | ***GetV5EventsOpts** | optional parameters | nil if no parameters 132 133 ### Optional Parameters 134 Optional parameters are passed through a pointer to a GetV5EventsOpts struct 135 136 Name | Type | Description | Notes 137 ------------- | ------------- | ------------- | ------------- 138 **accessToken** | **optional.String**| 用户授权码 | 139 **page** | **optional.Int32**| 当前的页码 | [default to 1] 140 **perPage** | **optional.Int32**| 每页的数量,最大为 100 | [default to 20] 141 142 ### Return type 143 144 [**[]Event**](Event.md) 145 146 ### Authorization 147 148 No authorization required 149 150 ### HTTP request headers 151 152 - **Content-Type**: application/json, multipart/form-data 153 - **Accept**: application/json 154 155 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 156 157 # **GetV5NetworksOwnerRepoEvents** 158 > []Event GetV5NetworksOwnerRepoEvents(ctx, owner, repo, optional) 159 列出仓库的所有公开动态 160 161 列出仓库的所有公开动态 162 163 ### Required Parameters 164 165 Name | Type | Description | Notes 166 ------------- | ------------- | ------------- | ------------- 167 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 168 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 169 **repo** | **string**| 仓库路径(path) | 170 **optional** | ***GetV5NetworksOwnerRepoEventsOpts** | optional parameters | nil if no parameters 171 172 ### Optional Parameters 173 Optional parameters are passed through a pointer to a GetV5NetworksOwnerRepoEventsOpts struct 174 175 Name | Type | Description | Notes 176 ------------- | ------------- | ------------- | ------------- 177 178 179 **accessToken** | **optional.String**| 用户授权码 | 180 **page** | **optional.Int32**| 当前的页码 | [default to 1] 181 **perPage** | **optional.Int32**| 每页的数量,最大为 100 | [default to 20] 182 183 ### Return type 184 185 [**[]Event**](Event.md) 186 187 ### Authorization 188 189 No authorization required 190 191 ### HTTP request headers 192 193 - **Content-Type**: application/json, multipart/form-data 194 - **Accept**: application/json 195 196 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 197 198 # **GetV5NotificationsCount** 199 > UserNotificationCount GetV5NotificationsCount(ctx, optional) 200 获取授权用户的通知数 201 202 获取授权用户的通知数 203 204 ### Required Parameters 205 206 Name | Type | Description | Notes 207 ------------- | ------------- | ------------- | ------------- 208 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 209 **optional** | ***GetV5NotificationsCountOpts** | optional parameters | nil if no parameters 210 211 ### Optional Parameters 212 Optional parameters are passed through a pointer to a GetV5NotificationsCountOpts struct 213 214 Name | Type | Description | Notes 215 ------------- | ------------- | ------------- | ------------- 216 **accessToken** | **optional.String**| 用户授权码 | 217 **unread** | **optional.Bool**| 是否只获取未读消息,默认:否 | 218 219 ### Return type 220 221 [**UserNotificationCount**](UserNotificationCount.md) 222 223 ### Authorization 224 225 No authorization required 226 227 ### HTTP request headers 228 229 - **Content-Type**: application/json, multipart/form-data 230 - **Accept**: application/json 231 232 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 233 234 # **GetV5NotificationsMessages** 235 > []UserMessageList GetV5NotificationsMessages(ctx, optional) 236 列出授权用户的所有私信 237 238 列出授权用户的所有私信 239 240 ### Required Parameters 241 242 Name | Type | Description | Notes 243 ------------- | ------------- | ------------- | ------------- 244 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 245 **optional** | ***GetV5NotificationsMessagesOpts** | optional parameters | nil if no parameters 246 247 ### Optional Parameters 248 Optional parameters are passed through a pointer to a GetV5NotificationsMessagesOpts struct 249 250 Name | Type | Description | Notes 251 ------------- | ------------- | ------------- | ------------- 252 **accessToken** | **optional.String**| 用户授权码 | 253 **unread** | **optional.Bool**| 是否只显示未读私信,默认:否 | 254 **since** | **optional.String**| 只获取在给定时间后更新的私信,要求时间格式为 ISO 8601 | 255 **before** | **optional.String**| 只获取在给定时间前更新的私信,要求时间格式为 ISO 8601 | 256 **ids** | **optional.String**| 指定一组私信 ID,以 , 分隔 | 257 **page** | **optional.Int32**| 当前的页码 | [default to 1] 258 **perPage** | **optional.Int32**| 每页的数量,最大为 100 | [default to 20] 259 260 ### Return type 261 262 [**[]UserMessageList**](UserMessageList.md) 263 264 ### Authorization 265 266 No authorization required 267 268 ### HTTP request headers 269 270 - **Content-Type**: application/json, multipart/form-data 271 - **Accept**: application/json 272 273 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 274 275 # **GetV5NotificationsMessagesId** 276 > UserMessage GetV5NotificationsMessagesId(ctx, id, optional) 277 获取一条私信 278 279 获取一条私信 280 281 ### Required Parameters 282 283 Name | Type | Description | Notes 284 ------------- | ------------- | ------------- | ------------- 285 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 286 **id** | **string**| 私信的 ID | 287 **optional** | ***GetV5NotificationsMessagesIdOpts** | optional parameters | nil if no parameters 288 289 ### Optional Parameters 290 Optional parameters are passed through a pointer to a GetV5NotificationsMessagesIdOpts struct 291 292 Name | Type | Description | Notes 293 ------------- | ------------- | ------------- | ------------- 294 295 **accessToken** | **optional.String**| 用户授权码 | 296 297 ### Return type 298 299 [**UserMessage**](UserMessage.md) 300 301 ### Authorization 302 303 No authorization required 304 305 ### HTTP request headers 306 307 - **Content-Type**: application/json, multipart/form-data 308 - **Accept**: application/json 309 310 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 311 312 # **GetV5NotificationsThreads** 313 > []UserNotificationList GetV5NotificationsThreads(ctx, optional) 314 列出授权用户的所有通知 315 316 列出授权用户的所有通知 317 318 ### Required Parameters 319 320 Name | Type | Description | Notes 321 ------------- | ------------- | ------------- | ------------- 322 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 323 **optional** | ***GetV5NotificationsThreadsOpts** | optional parameters | nil if no parameters 324 325 ### Optional Parameters 326 Optional parameters are passed through a pointer to a GetV5NotificationsThreadsOpts struct 327 328 Name | Type | Description | Notes 329 ------------- | ------------- | ------------- | ------------- 330 **accessToken** | **optional.String**| 用户授权码 | 331 **unread** | **optional.Bool**| 是否只获取未读消息,默认:否 | 332 **participating** | **optional.Bool**| 是否只获取自己直接参与的消息,默认:否 | 333 **type_** | **optional.String**| 筛选指定类型的通知,all:所有,event:事件通知,referer:@ 通知 | [default to all] 334 **since** | **optional.String**| 只获取在给定时间后更新的消息,要求时间格式为 ISO 8601 | 335 **before** | **optional.String**| 只获取在给定时间前更新的消息,要求时间格式为 ISO 8601 | 336 **ids** | **optional.String**| 指定一组通知 ID,以 , 分隔 | 337 **page** | **optional.Int32**| 当前的页码 | [default to 1] 338 **perPage** | **optional.Int32**| 每页的数量,最大为 100 | [default to 20] 339 340 ### Return type 341 342 [**[]UserNotificationList**](UserNotificationList.md) 343 344 ### Authorization 345 346 No authorization required 347 348 ### HTTP request headers 349 350 - **Content-Type**: application/json, multipart/form-data 351 - **Accept**: application/json 352 353 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 354 355 # **GetV5NotificationsThreadsId** 356 > UserNotification GetV5NotificationsThreadsId(ctx, id, optional) 357 获取一条通知 358 359 获取一条通知 360 361 ### Required Parameters 362 363 Name | Type | Description | Notes 364 ------------- | ------------- | ------------- | ------------- 365 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 366 **id** | **string**| 通知的 ID | 367 **optional** | ***GetV5NotificationsThreadsIdOpts** | optional parameters | nil if no parameters 368 369 ### Optional Parameters 370 Optional parameters are passed through a pointer to a GetV5NotificationsThreadsIdOpts struct 371 372 Name | Type | Description | Notes 373 ------------- | ------------- | ------------- | ------------- 374 375 **accessToken** | **optional.String**| 用户授权码 | 376 377 ### Return type 378 379 [**UserNotification**](UserNotification.md) 380 381 ### Authorization 382 383 No authorization required 384 385 ### HTTP request headers 386 387 - **Content-Type**: application/json, multipart/form-data 388 - **Accept**: application/json 389 390 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 391 392 # **GetV5OrgsOrgEvents** 393 > []Event GetV5OrgsOrgEvents(ctx, org, optional) 394 列出组织的公开动态 395 396 列出组织的公开动态 397 398 ### Required Parameters 399 400 Name | Type | Description | Notes 401 ------------- | ------------- | ------------- | ------------- 402 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 403 **org** | **string**| 组织的路径(path/login) | 404 **optional** | ***GetV5OrgsOrgEventsOpts** | optional parameters | nil if no parameters 405 406 ### Optional Parameters 407 Optional parameters are passed through a pointer to a GetV5OrgsOrgEventsOpts struct 408 409 Name | Type | Description | Notes 410 ------------- | ------------- | ------------- | ------------- 411 412 **accessToken** | **optional.String**| 用户授权码 | 413 **page** | **optional.Int32**| 当前的页码 | [default to 1] 414 **perPage** | **optional.Int32**| 每页的数量,最大为 100 | [default to 20] 415 416 ### Return type 417 418 [**[]Event**](Event.md) 419 420 ### Authorization 421 422 No authorization required 423 424 ### HTTP request headers 425 426 - **Content-Type**: application/json, multipart/form-data 427 - **Accept**: application/json 428 429 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 430 431 # **GetV5ReposOwnerRepoEvents** 432 > []Event GetV5ReposOwnerRepoEvents(ctx, owner, repo, optional) 433 列出仓库的所有动态 434 435 列出仓库的所有动态 436 437 ### Required Parameters 438 439 Name | Type | Description | Notes 440 ------------- | ------------- | ------------- | ------------- 441 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 442 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 443 **repo** | **string**| 仓库路径(path) | 444 **optional** | ***GetV5ReposOwnerRepoEventsOpts** | optional parameters | nil if no parameters 445 446 ### Optional Parameters 447 Optional parameters are passed through a pointer to a GetV5ReposOwnerRepoEventsOpts struct 448 449 Name | Type | Description | Notes 450 ------------- | ------------- | ------------- | ------------- 451 452 453 **accessToken** | **optional.String**| 用户授权码 | 454 **page** | **optional.Int32**| 当前的页码 | [default to 1] 455 **perPage** | **optional.Int32**| 每页的数量,最大为 100 | [default to 20] 456 457 ### Return type 458 459 [**[]Event**](Event.md) 460 461 ### Authorization 462 463 No authorization required 464 465 ### HTTP request headers 466 467 - **Content-Type**: application/json, multipart/form-data 468 - **Accept**: application/json 469 470 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 471 472 # **GetV5ReposOwnerRepoNotifications** 473 > []UserNotificationList GetV5ReposOwnerRepoNotifications(ctx, owner, repo, optional) 474 列出一个仓库里的通知 475 476 列出一个仓库里的通知 477 478 ### Required Parameters 479 480 Name | Type | Description | Notes 481 ------------- | ------------- | ------------- | ------------- 482 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 483 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 484 **repo** | **string**| 仓库路径(path) | 485 **optional** | ***GetV5ReposOwnerRepoNotificationsOpts** | optional parameters | nil if no parameters 486 487 ### Optional Parameters 488 Optional parameters are passed through a pointer to a GetV5ReposOwnerRepoNotificationsOpts struct 489 490 Name | Type | Description | Notes 491 ------------- | ------------- | ------------- | ------------- 492 493 494 **accessToken** | **optional.String**| 用户授权码 | 495 **unread** | **optional.Bool**| 是否只获取未读消息,默认:否 | 496 **participating** | **optional.Bool**| 是否只获取自己直接参与的消息,默认:否 | 497 **type_** | **optional.String**| 筛选指定类型的通知,all:所有,event:事件通知,referer:@ 通知 | [default to all] 498 **since** | **optional.String**| 只获取在给定时间后更新的消息,要求时间格式为 ISO 8601 | 499 **before** | **optional.String**| 只获取在给定时间前更新的消息,要求时间格式为 ISO 8601 | 500 **ids** | **optional.String**| 指定一组通知 ID,以 , 分隔 | 501 **page** | **optional.Int32**| 当前的页码 | [default to 1] 502 **perPage** | **optional.Int32**| 每页的数量,最大为 100 | [default to 20] 503 504 ### Return type 505 506 [**[]UserNotificationList**](UserNotificationList.md) 507 508 ### Authorization 509 510 No authorization required 511 512 ### HTTP request headers 513 514 - **Content-Type**: application/json, multipart/form-data 515 - **Accept**: application/json 516 517 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 518 519 # **GetV5ReposOwnerRepoStargazers** 520 > []UserBasic GetV5ReposOwnerRepoStargazers(ctx, owner, repo, optional) 521 列出 star 了仓库的用户 522 523 列出 star 了仓库的用户 524 525 ### Required Parameters 526 527 Name | Type | Description | Notes 528 ------------- | ------------- | ------------- | ------------- 529 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 530 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 531 **repo** | **string**| 仓库路径(path) | 532 **optional** | ***GetV5ReposOwnerRepoStargazersOpts** | optional parameters | nil if no parameters 533 534 ### Optional Parameters 535 Optional parameters are passed through a pointer to a GetV5ReposOwnerRepoStargazersOpts struct 536 537 Name | Type | Description | Notes 538 ------------- | ------------- | ------------- | ------------- 539 540 541 **accessToken** | **optional.String**| 用户授权码 | 542 **page** | **optional.Int32**| 当前的页码 | [default to 1] 543 **perPage** | **optional.Int32**| 每页的数量,最大为 100 | [default to 20] 544 545 ### Return type 546 547 [**[]UserBasic**](UserBasic.md) 548 549 ### Authorization 550 551 No authorization required 552 553 ### HTTP request headers 554 555 - **Content-Type**: application/json, multipart/form-data 556 - **Accept**: application/json 557 558 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 559 560 # **GetV5ReposOwnerRepoSubscribers** 561 > []UserBasic GetV5ReposOwnerRepoSubscribers(ctx, owner, repo, optional) 562 列出 watch 了仓库的用户 563 564 列出 watch 了仓库的用户 565 566 ### Required Parameters 567 568 Name | Type | Description | Notes 569 ------------- | ------------- | ------------- | ------------- 570 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 571 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 572 **repo** | **string**| 仓库路径(path) | 573 **optional** | ***GetV5ReposOwnerRepoSubscribersOpts** | optional parameters | nil if no parameters 574 575 ### Optional Parameters 576 Optional parameters are passed through a pointer to a GetV5ReposOwnerRepoSubscribersOpts struct 577 578 Name | Type | Description | Notes 579 ------------- | ------------- | ------------- | ------------- 580 581 582 **accessToken** | **optional.String**| 用户授权码 | 583 **page** | **optional.Int32**| 当前的页码 | [default to 1] 584 **perPage** | **optional.Int32**| 每页的数量,最大为 100 | [default to 20] 585 586 ### Return type 587 588 [**[]UserBasic**](UserBasic.md) 589 590 ### Authorization 591 592 No authorization required 593 594 ### HTTP request headers 595 596 - **Content-Type**: application/json, multipart/form-data 597 - **Accept**: application/json 598 599 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 600 601 # **GetV5UserStarred** 602 > []Project GetV5UserStarred(ctx, optional) 603 列出授权用户 star 了的仓库 604 605 列出授权用户 star 了的仓库 606 607 ### Required Parameters 608 609 Name | Type | Description | Notes 610 ------------- | ------------- | ------------- | ------------- 611 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 612 **optional** | ***GetV5UserStarredOpts** | optional parameters | nil if no parameters 613 614 ### Optional Parameters 615 Optional parameters are passed through a pointer to a GetV5UserStarredOpts struct 616 617 Name | Type | Description | Notes 618 ------------- | ------------- | ------------- | ------------- 619 **accessToken** | **optional.String**| 用户授权码 | 620 **sort** | **optional.String**| 根据仓库创建时间(created)或最后推送时间(updated)进行排序,默认:创建时间 | [default to created] 621 **direction** | **optional.String**| 按递增(asc)或递减(desc)排序,默认:递减 | [default to desc] 622 **page** | **optional.Int32**| 当前的页码 | [default to 1] 623 **perPage** | **optional.Int32**| 每页的数量,最大为 100 | [default to 20] 624 625 ### Return type 626 627 [**[]Project**](Project.md) 628 629 ### Authorization 630 631 No authorization required 632 633 ### HTTP request headers 634 635 - **Content-Type**: application/json, multipart/form-data 636 - **Accept**: application/json 637 638 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 639 640 # **GetV5UserStarredOwnerRepo** 641 > GetV5UserStarredOwnerRepo(ctx, owner, repo, optional) 642 检查授权用户是否 star 了一个仓库 643 644 检查授权用户是否 star 了一个仓库 645 646 ### Required Parameters 647 648 Name | Type | Description | Notes 649 ------------- | ------------- | ------------- | ------------- 650 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 651 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 652 **repo** | **string**| 仓库路径(path) | 653 **optional** | ***GetV5UserStarredOwnerRepoOpts** | optional parameters | nil if no parameters 654 655 ### Optional Parameters 656 Optional parameters are passed through a pointer to a GetV5UserStarredOwnerRepoOpts struct 657 658 Name | Type | Description | Notes 659 ------------- | ------------- | ------------- | ------------- 660 661 662 **accessToken** | **optional.String**| 用户授权码 | 663 664 ### Return type 665 666 (empty response body) 667 668 ### Authorization 669 670 No authorization required 671 672 ### HTTP request headers 673 674 - **Content-Type**: application/json, multipart/form-data 675 - **Accept**: application/json 676 677 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 678 679 # **GetV5UserSubscriptions** 680 > []Project GetV5UserSubscriptions(ctx, optional) 681 列出授权用户 watch 了的仓库 682 683 列出授权用户 watch 了的仓库 684 685 ### Required Parameters 686 687 Name | Type | Description | Notes 688 ------------- | ------------- | ------------- | ------------- 689 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 690 **optional** | ***GetV5UserSubscriptionsOpts** | optional parameters | nil if no parameters 691 692 ### Optional Parameters 693 Optional parameters are passed through a pointer to a GetV5UserSubscriptionsOpts struct 694 695 Name | Type | Description | Notes 696 ------------- | ------------- | ------------- | ------------- 697 **accessToken** | **optional.String**| 用户授权码 | 698 **sort** | **optional.String**| 根据仓库创建时间(created)或最后推送时间(updated)进行排序,默认:创建时间 | [default to created] 699 **direction** | **optional.String**| 按递增(asc)或递减(desc)排序,默认:递减 | [default to desc] 700 **page** | **optional.Int32**| 当前的页码 | [default to 1] 701 **perPage** | **optional.Int32**| 每页的数量,最大为 100 | [default to 20] 702 703 ### Return type 704 705 [**[]Project**](Project.md) 706 707 ### Authorization 708 709 No authorization required 710 711 ### HTTP request headers 712 713 - **Content-Type**: application/json, multipart/form-data 714 - **Accept**: application/json 715 716 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 717 718 # **GetV5UserSubscriptionsOwnerRepo** 719 > GetV5UserSubscriptionsOwnerRepo(ctx, owner, repo, optional) 720 检查授权用户是否 watch 了一个仓库 721 722 检查授权用户是否 watch 了一个仓库 723 724 ### Required Parameters 725 726 Name | Type | Description | Notes 727 ------------- | ------------- | ------------- | ------------- 728 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 729 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 730 **repo** | **string**| 仓库路径(path) | 731 **optional** | ***GetV5UserSubscriptionsOwnerRepoOpts** | optional parameters | nil if no parameters 732 733 ### Optional Parameters 734 Optional parameters are passed through a pointer to a GetV5UserSubscriptionsOwnerRepoOpts struct 735 736 Name | Type | Description | Notes 737 ------------- | ------------- | ------------- | ------------- 738 739 740 **accessToken** | **optional.String**| 用户授权码 | 741 742 ### Return type 743 744 (empty response body) 745 746 ### Authorization 747 748 No authorization required 749 750 ### HTTP request headers 751 752 - **Content-Type**: application/json, multipart/form-data 753 - **Accept**: application/json 754 755 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 756 757 # **GetV5UsersUsernameEvents** 758 > []Event GetV5UsersUsernameEvents(ctx, username, optional) 759 列出用户的动态 760 761 列出用户的动态 762 763 ### Required Parameters 764 765 Name | Type | Description | Notes 766 ------------- | ------------- | ------------- | ------------- 767 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 768 **username** | **string**| 用户名(username/login) | 769 **optional** | ***GetV5UsersUsernameEventsOpts** | optional parameters | nil if no parameters 770 771 ### Optional Parameters 772 Optional parameters are passed through a pointer to a GetV5UsersUsernameEventsOpts struct 773 774 Name | Type | Description | Notes 775 ------------- | ------------- | ------------- | ------------- 776 777 **accessToken** | **optional.String**| 用户授权码 | 778 **page** | **optional.Int32**| 当前的页码 | [default to 1] 779 **perPage** | **optional.Int32**| 每页的数量,最大为 100 | [default to 20] 780 781 ### Return type 782 783 [**[]Event**](Event.md) 784 785 ### Authorization 786 787 No authorization required 788 789 ### HTTP request headers 790 791 - **Content-Type**: application/json, multipart/form-data 792 - **Accept**: application/json 793 794 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 795 796 # **GetV5UsersUsernameEventsOrgsOrg** 797 > []Event GetV5UsersUsernameEventsOrgsOrg(ctx, username, org, optional) 798 列出用户所属组织的动态 799 800 列出用户所属组织的动态 801 802 ### Required Parameters 803 804 Name | Type | Description | Notes 805 ------------- | ------------- | ------------- | ------------- 806 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 807 **username** | **string**| 用户名(username/login) | 808 **org** | **string**| 组织的路径(path/login) | 809 **optional** | ***GetV5UsersUsernameEventsOrgsOrgOpts** | optional parameters | nil if no parameters 810 811 ### Optional Parameters 812 Optional parameters are passed through a pointer to a GetV5UsersUsernameEventsOrgsOrgOpts struct 813 814 Name | Type | Description | Notes 815 ------------- | ------------- | ------------- | ------------- 816 817 818 **accessToken** | **optional.String**| 用户授权码 | 819 **page** | **optional.Int32**| 当前的页码 | [default to 1] 820 **perPage** | **optional.Int32**| 每页的数量,最大为 100 | [default to 20] 821 822 ### Return type 823 824 [**[]Event**](Event.md) 825 826 ### Authorization 827 828 No authorization required 829 830 ### HTTP request headers 831 832 - **Content-Type**: application/json, multipart/form-data 833 - **Accept**: application/json 834 835 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 836 837 # **GetV5UsersUsernameEventsPublic** 838 > []Event GetV5UsersUsernameEventsPublic(ctx, username, optional) 839 列出用户的公开动态 840 841 列出用户的公开动态 842 843 ### Required Parameters 844 845 Name | Type | Description | Notes 846 ------------- | ------------- | ------------- | ------------- 847 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 848 **username** | **string**| 用户名(username/login) | 849 **optional** | ***GetV5UsersUsernameEventsPublicOpts** | optional parameters | nil if no parameters 850 851 ### Optional Parameters 852 Optional parameters are passed through a pointer to a GetV5UsersUsernameEventsPublicOpts struct 853 854 Name | Type | Description | Notes 855 ------------- | ------------- | ------------- | ------------- 856 857 **accessToken** | **optional.String**| 用户授权码 | 858 **page** | **optional.Int32**| 当前的页码 | [default to 1] 859 **perPage** | **optional.Int32**| 每页的数量,最大为 100 | [default to 20] 860 861 ### Return type 862 863 [**[]Event**](Event.md) 864 865 ### Authorization 866 867 No authorization required 868 869 ### HTTP request headers 870 871 - **Content-Type**: application/json, multipart/form-data 872 - **Accept**: application/json 873 874 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 875 876 # **GetV5UsersUsernameReceivedEvents** 877 > []Event GetV5UsersUsernameReceivedEvents(ctx, username, optional) 878 列出一个用户收到的动态 879 880 列出一个用户收到的动态 881 882 ### Required Parameters 883 884 Name | Type | Description | Notes 885 ------------- | ------------- | ------------- | ------------- 886 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 887 **username** | **string**| 用户名(username/login) | 888 **optional** | ***GetV5UsersUsernameReceivedEventsOpts** | optional parameters | nil if no parameters 889 890 ### Optional Parameters 891 Optional parameters are passed through a pointer to a GetV5UsersUsernameReceivedEventsOpts struct 892 893 Name | Type | Description | Notes 894 ------------- | ------------- | ------------- | ------------- 895 896 **accessToken** | **optional.String**| 用户授权码 | 897 **page** | **optional.Int32**| 当前的页码 | [default to 1] 898 **perPage** | **optional.Int32**| 每页的数量,最大为 100 | [default to 20] 899 900 ### Return type 901 902 [**[]Event**](Event.md) 903 904 ### Authorization 905 906 No authorization required 907 908 ### HTTP request headers 909 910 - **Content-Type**: application/json, multipart/form-data 911 - **Accept**: application/json 912 913 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 914 915 # **GetV5UsersUsernameReceivedEventsPublic** 916 > []Event GetV5UsersUsernameReceivedEventsPublic(ctx, username, optional) 917 列出一个用户收到的公开动态 918 919 列出一个用户收到的公开动态 920 921 ### Required Parameters 922 923 Name | Type | Description | Notes 924 ------------- | ------------- | ------------- | ------------- 925 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 926 **username** | **string**| 用户名(username/login) | 927 **optional** | ***GetV5UsersUsernameReceivedEventsPublicOpts** | optional parameters | nil if no parameters 928 929 ### Optional Parameters 930 Optional parameters are passed through a pointer to a GetV5UsersUsernameReceivedEventsPublicOpts struct 931 932 Name | Type | Description | Notes 933 ------------- | ------------- | ------------- | ------------- 934 935 **accessToken** | **optional.String**| 用户授权码 | 936 **page** | **optional.Int32**| 当前的页码 | [default to 1] 937 **perPage** | **optional.Int32**| 每页的数量,最大为 100 | [default to 20] 938 939 ### Return type 940 941 [**[]Event**](Event.md) 942 943 ### Authorization 944 945 No authorization required 946 947 ### HTTP request headers 948 949 - **Content-Type**: application/json, multipart/form-data 950 - **Accept**: application/json 951 952 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 953 954 # **GetV5UsersUsernameStarred** 955 > []Project GetV5UsersUsernameStarred(ctx, username, optional) 956 列出用户 star 了的仓库 957 958 列出用户 star 了的仓库 959 960 ### Required Parameters 961 962 Name | Type | Description | Notes 963 ------------- | ------------- | ------------- | ------------- 964 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 965 **username** | **string**| 用户名(username/login) | 966 **optional** | ***GetV5UsersUsernameStarredOpts** | optional parameters | nil if no parameters 967 968 ### Optional Parameters 969 Optional parameters are passed through a pointer to a GetV5UsersUsernameStarredOpts struct 970 971 Name | Type | Description | Notes 972 ------------- | ------------- | ------------- | ------------- 973 974 **accessToken** | **optional.String**| 用户授权码 | 975 **page** | **optional.Int32**| 当前的页码 | [default to 1] 976 **perPage** | **optional.Int32**| 每页的数量,最大为 100 | [default to 20] 977 **sort** | **optional.String**| 根据仓库创建时间(created)或最后推送时间(updated)进行排序,默认:创建时间 | [default to created] 978 **direction** | **optional.String**| 按递增(asc)或递减(desc)排序,默认:递减 | [default to desc] 979 980 ### Return type 981 982 [**[]Project**](Project.md) 983 984 ### Authorization 985 986 No authorization required 987 988 ### HTTP request headers 989 990 - **Content-Type**: application/json, multipart/form-data 991 - **Accept**: application/json 992 993 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 994 995 # **GetV5UsersUsernameSubscriptions** 996 > []Project GetV5UsersUsernameSubscriptions(ctx, username, optional) 997 列出用户 watch 了的仓库 998 999 列出用户 watch 了的仓库 1000 1001 ### Required Parameters 1002 1003 Name | Type | Description | Notes 1004 ------------- | ------------- | ------------- | ------------- 1005 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 1006 **username** | **string**| 用户名(username/login) | 1007 **optional** | ***GetV5UsersUsernameSubscriptionsOpts** | optional parameters | nil if no parameters 1008 1009 ### Optional Parameters 1010 Optional parameters are passed through a pointer to a GetV5UsersUsernameSubscriptionsOpts struct 1011 1012 Name | Type | Description | Notes 1013 ------------- | ------------- | ------------- | ------------- 1014 1015 **accessToken** | **optional.String**| 用户授权码 | 1016 **page** | **optional.Int32**| 当前的页码 | [default to 1] 1017 **perPage** | **optional.Int32**| 每页的数量,最大为 100 | [default to 20] 1018 **sort** | **optional.String**| 根据仓库创建时间(created)或最后推送时间(updated)进行排序,默认:创建时间 | [default to created] 1019 **direction** | **optional.String**| 按递增(asc)或递减(desc)排序,默认:递减 | [default to desc] 1020 1021 ### Return type 1022 1023 [**[]Project**](Project.md) 1024 1025 ### Authorization 1026 1027 No authorization required 1028 1029 ### HTTP request headers 1030 1031 - **Content-Type**: application/json, multipart/form-data 1032 - **Accept**: application/json 1033 1034 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 1035 1036 # **PatchV5NotificationsMessagesId** 1037 > PatchV5NotificationsMessagesId(ctx, id, optional) 1038 标记一条私信为已读 1039 1040 标记一条私信为已读 1041 1042 ### Required Parameters 1043 1044 Name | Type | Description | Notes 1045 ------------- | ------------- | ------------- | ------------- 1046 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 1047 **id** | **string**| 私信的 ID | 1048 **optional** | ***PatchV5NotificationsMessagesIdOpts** | optional parameters | nil if no parameters 1049 1050 ### Optional Parameters 1051 Optional parameters are passed through a pointer to a PatchV5NotificationsMessagesIdOpts struct 1052 1053 Name | Type | Description | Notes 1054 ------------- | ------------- | ------------- | ------------- 1055 1056 **accessToken** | **optional.String**| 用户授权码 | 1057 1058 ### Return type 1059 1060 (empty response body) 1061 1062 ### Authorization 1063 1064 No authorization required 1065 1066 ### HTTP request headers 1067 1068 - **Content-Type**: application/json, multipart/form-data 1069 - **Accept**: application/json 1070 1071 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 1072 1073 # **PatchV5NotificationsThreadsId** 1074 > PatchV5NotificationsThreadsId(ctx, id, optional) 1075 标记一条通知为已读 1076 1077 标记一条通知为已读 1078 1079 ### Required Parameters 1080 1081 Name | Type | Description | Notes 1082 ------------- | ------------- | ------------- | ------------- 1083 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 1084 **id** | **string**| 通知的 ID | 1085 **optional** | ***PatchV5NotificationsThreadsIdOpts** | optional parameters | nil if no parameters 1086 1087 ### Optional Parameters 1088 Optional parameters are passed through a pointer to a PatchV5NotificationsThreadsIdOpts struct 1089 1090 Name | Type | Description | Notes 1091 ------------- | ------------- | ------------- | ------------- 1092 1093 **accessToken** | **optional.String**| 用户授权码 | 1094 1095 ### Return type 1096 1097 (empty response body) 1098 1099 ### Authorization 1100 1101 No authorization required 1102 1103 ### HTTP request headers 1104 1105 - **Content-Type**: application/json, multipart/form-data 1106 - **Accept**: application/json 1107 1108 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 1109 1110 # **PostV5NotificationsMessages** 1111 > UserMessage PostV5NotificationsMessages(ctx, username, content, optional) 1112 发送私信给指定用户 1113 1114 发送私信给指定用户 1115 1116 ### Required Parameters 1117 1118 Name | Type | Description | Notes 1119 ------------- | ------------- | ------------- | ------------- 1120 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 1121 **username** | **string**| 用户名(username/login) | 1122 **content** | **string**| 私信内容 | 1123 **optional** | ***PostV5NotificationsMessagesOpts** | optional parameters | nil if no parameters 1124 1125 ### Optional Parameters 1126 Optional parameters are passed through a pointer to a PostV5NotificationsMessagesOpts struct 1127 1128 Name | Type | Description | Notes 1129 ------------- | ------------- | ------------- | ------------- 1130 1131 1132 **accessToken** | **optional.String**| 用户授权码 | 1133 1134 ### Return type 1135 1136 [**UserMessage**](UserMessage.md) 1137 1138 ### Authorization 1139 1140 No authorization required 1141 1142 ### HTTP request headers 1143 1144 - **Content-Type**: application/json, multipart/form-data 1145 - **Accept**: application/json 1146 1147 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 1148 1149 # **PutV5NotificationsMessages** 1150 > PutV5NotificationsMessages(ctx, optional) 1151 标记所有私信为已读 1152 1153 标记所有私信为已读 1154 1155 ### Required Parameters 1156 1157 Name | Type | Description | Notes 1158 ------------- | ------------- | ------------- | ------------- 1159 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 1160 **optional** | ***PutV5NotificationsMessagesOpts** | optional parameters | nil if no parameters 1161 1162 ### Optional Parameters 1163 Optional parameters are passed through a pointer to a PutV5NotificationsMessagesOpts struct 1164 1165 Name | Type | Description | Notes 1166 ------------- | ------------- | ------------- | ------------- 1167 **accessToken** | **optional.String**| 用户授权码 | 1168 **ids** | **optional.String**| 指定一组私信 ID,以 , 分隔 | 1169 1170 ### Return type 1171 1172 (empty response body) 1173 1174 ### Authorization 1175 1176 No authorization required 1177 1178 ### HTTP request headers 1179 1180 - **Content-Type**: application/json, multipart/form-data 1181 - **Accept**: application/json 1182 1183 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 1184 1185 # **PutV5NotificationsThreads** 1186 > PutV5NotificationsThreads(ctx, optional) 1187 标记所有通知为已读 1188 1189 标记所有通知为已读 1190 1191 ### Required Parameters 1192 1193 Name | Type | Description | Notes 1194 ------------- | ------------- | ------------- | ------------- 1195 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 1196 **optional** | ***PutV5NotificationsThreadsOpts** | optional parameters | nil if no parameters 1197 1198 ### Optional Parameters 1199 Optional parameters are passed through a pointer to a PutV5NotificationsThreadsOpts struct 1200 1201 Name | Type | Description | Notes 1202 ------------- | ------------- | ------------- | ------------- 1203 **accessToken** | **optional.String**| 用户授权码 | 1204 **ids** | **optional.String**| 指定一组通知 ID,以 , 分隔 | 1205 1206 ### Return type 1207 1208 (empty response body) 1209 1210 ### Authorization 1211 1212 No authorization required 1213 1214 ### HTTP request headers 1215 1216 - **Content-Type**: application/json, multipart/form-data 1217 - **Accept**: application/json 1218 1219 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 1220 1221 # **PutV5ReposOwnerRepoNotifications** 1222 > PutV5ReposOwnerRepoNotifications(ctx, owner, repo, optional) 1223 标记一个仓库里的通知为已读 1224 1225 标记一个仓库里的通知为已读 1226 1227 ### Required Parameters 1228 1229 Name | Type | Description | Notes 1230 ------------- | ------------- | ------------- | ------------- 1231 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 1232 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 1233 **repo** | **string**| 仓库路径(path) | 1234 **optional** | ***PutV5ReposOwnerRepoNotificationsOpts** | optional parameters | nil if no parameters 1235 1236 ### Optional Parameters 1237 Optional parameters are passed through a pointer to a PutV5ReposOwnerRepoNotificationsOpts struct 1238 1239 Name | Type | Description | Notes 1240 ------------- | ------------- | ------------- | ------------- 1241 1242 1243 **accessToken** | **optional.String**| 用户授权码 | 1244 **ids** | **optional.String**| 指定一组通知 ID,以 , 分隔 | 1245 1246 ### Return type 1247 1248 (empty response body) 1249 1250 ### Authorization 1251 1252 No authorization required 1253 1254 ### HTTP request headers 1255 1256 - **Content-Type**: application/json, multipart/form-data 1257 - **Accept**: application/json 1258 1259 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 1260 1261 # **PutV5UserStarredOwnerRepo** 1262 > PutV5UserStarredOwnerRepo(ctx, owner, repo, optional) 1263 star 一个仓库 1264 1265 star 一个仓库 1266 1267 ### Required Parameters 1268 1269 Name | Type | Description | Notes 1270 ------------- | ------------- | ------------- | ------------- 1271 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 1272 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 1273 **repo** | **string**| 仓库路径(path) | 1274 **optional** | ***PutV5UserStarredOwnerRepoOpts** | optional parameters | nil if no parameters 1275 1276 ### Optional Parameters 1277 Optional parameters are passed through a pointer to a PutV5UserStarredOwnerRepoOpts struct 1278 1279 Name | Type | Description | Notes 1280 ------------- | ------------- | ------------- | ------------- 1281 1282 1283 **accessToken** | **optional.String**| 用户授权码 | 1284 1285 ### Return type 1286 1287 (empty response body) 1288 1289 ### Authorization 1290 1291 No authorization required 1292 1293 ### HTTP request headers 1294 1295 - **Content-Type**: application/json, multipart/form-data 1296 - **Accept**: application/json 1297 1298 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 1299 1300 # **PutV5UserSubscriptionsOwnerRepo** 1301 > PutV5UserSubscriptionsOwnerRepo(ctx, owner, repo, watchType, optional) 1302 watch 一个仓库 1303 1304 watch 一个仓库 1305 1306 ### Required Parameters 1307 1308 Name | Type | Description | Notes 1309 ------------- | ------------- | ------------- | ------------- 1310 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 1311 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 1312 **repo** | **string**| 仓库路径(path) | 1313 **watchType** | **string**| watch策略, watching: 关注所有动态, releases_only: 仅关注版本发行动态, ignoring: 关注但不提醒动态 | [default to watching] 1314 **optional** | ***PutV5UserSubscriptionsOwnerRepoOpts** | optional parameters | nil if no parameters 1315 1316 ### Optional Parameters 1317 Optional parameters are passed through a pointer to a PutV5UserSubscriptionsOwnerRepoOpts struct 1318 1319 Name | Type | Description | Notes 1320 ------------- | ------------- | ------------- | ------------- 1321 1322 1323 1324 **accessToken** | **optional.String**| 用户授权码 | 1325 1326 ### Return type 1327 1328 (empty response body) 1329 1330 ### Authorization 1331 1332 No authorization required 1333 1334 ### HTTP request headers 1335 1336 - **Content-Type**: application/json, multipart/form-data 1337 - **Accept**: application/json 1338 1339 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 1340