gitee.com/openeuler/go-gitee@v0.0.0-20220530104019-3af895bc380c/docs/EnterprisesApi.md (about)

     1  # \EnterprisesApi
     2  
     3  All URIs are relative to *https://gitee.com/api*
     4  
     5  Method | HTTP request | Description
     6  ------------- | ------------- | -------------
     7  [**DeleteV5EnterprisesEnterpriseMembersUsername**](EnterprisesApi.md#DeleteV5EnterprisesEnterpriseMembersUsername) | **Delete** /v5/enterprises/{enterprise}/members/{username} | 移除企业成员
     8  [**DeleteV5EnterprisesEnterpriseWeekReportsReportIdCommentsId**](EnterprisesApi.md#DeleteV5EnterprisesEnterpriseWeekReportsReportIdCommentsId) | **Delete** /v5/enterprises/{enterprise}/week_reports/{report_id}/comments/{id} | 删除周报某个评论
     9  [**GetV5EnterprisesEnterprise**](EnterprisesApi.md#GetV5EnterprisesEnterprise) | **Get** /v5/enterprises/{enterprise} | 获取一个企业
    10  [**GetV5EnterprisesEnterpriseMembers**](EnterprisesApi.md#GetV5EnterprisesEnterpriseMembers) | **Get** /v5/enterprises/{enterprise}/members | 列出企业的所有成员
    11  [**GetV5EnterprisesEnterpriseMembersUsername**](EnterprisesApi.md#GetV5EnterprisesEnterpriseMembersUsername) | **Get** /v5/enterprises/{enterprise}/members/{username} | 获取企业的一个成员
    12  [**GetV5EnterprisesEnterpriseUsersUsernameWeekReports**](EnterprisesApi.md#GetV5EnterprisesEnterpriseUsersUsernameWeekReports) | **Get** /v5/enterprises/{enterprise}/users/{username}/week_reports | 个人周报列表
    13  [**GetV5EnterprisesEnterpriseWeekReports**](EnterprisesApi.md#GetV5EnterprisesEnterpriseWeekReports) | **Get** /v5/enterprises/{enterprise}/week_reports | 企业成员周报列表
    14  [**GetV5EnterprisesEnterpriseWeekReportsId**](EnterprisesApi.md#GetV5EnterprisesEnterpriseWeekReportsId) | **Get** /v5/enterprises/{enterprise}/week_reports/{id} | 周报详情
    15  [**GetV5EnterprisesEnterpriseWeekReportsIdComments**](EnterprisesApi.md#GetV5EnterprisesEnterpriseWeekReportsIdComments) | **Get** /v5/enterprises/{enterprise}/week_reports/{id}/comments | 某个周报评论列表
    16  [**GetV5UserEnterprises**](EnterprisesApi.md#GetV5UserEnterprises) | **Get** /v5/user/enterprises | 列出授权用户所属的企业
    17  [**PatchV5EnterprisesEnterpriseWeekReportId**](EnterprisesApi.md#PatchV5EnterprisesEnterpriseWeekReportId) | **Patch** /v5/enterprises/{enterprise}/week_report/{id} | 编辑周报
    18  [**PostV5EnterprisesEnterpriseMembers**](EnterprisesApi.md#PostV5EnterprisesEnterpriseMembers) | **Post** /v5/enterprises/{enterprise}/members | 添加或邀请企业成员
    19  [**PostV5EnterprisesEnterpriseWeekReport**](EnterprisesApi.md#PostV5EnterprisesEnterpriseWeekReport) | **Post** /v5/enterprises/{enterprise}/week_report | 新建周报
    20  [**PostV5EnterprisesEnterpriseWeekReportsIdComment**](EnterprisesApi.md#PostV5EnterprisesEnterpriseWeekReportsIdComment) | **Post** /v5/enterprises/{enterprise}/week_reports/{id}/comment | 评论周报
    21  [**PutV5EnterprisesEnterpriseMembersUsername**](EnterprisesApi.md#PutV5EnterprisesEnterpriseMembersUsername) | **Put** /v5/enterprises/{enterprise}/members/{username} | 修改企业成员权限或备注
    22  
    23  
    24  # **DeleteV5EnterprisesEnterpriseMembersUsername**
    25  > DeleteV5EnterprisesEnterpriseMembersUsername(ctx, enterprise, username, optional)
    26  移除企业成员
    27  
    28  移除企业成员
    29  
    30  ### Required Parameters
    31  
    32  Name | Type | Description  | Notes
    33  ------------- | ------------- | ------------- | -------------
    34   **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
    35    **enterprise** | **string**| 企业的路径(path/login) | 
    36    **username** | **string**| 用户名(username/login) | 
    37   **optional** | ***DeleteV5EnterprisesEnterpriseMembersUsernameOpts** | optional parameters | nil if no parameters
    38  
    39  ### Optional Parameters
    40  Optional parameters are passed through a pointer to a DeleteV5EnterprisesEnterpriseMembersUsernameOpts struct
    41  
    42  Name | Type | Description  | Notes
    43  ------------- | ------------- | ------------- | -------------
    44  
    45  
    46   **accessToken** | **optional.String**| 用户授权码 | 
    47  
    48  ### Return type
    49  
    50   (empty response body)
    51  
    52  ### Authorization
    53  
    54  No authorization required
    55  
    56  ### HTTP request headers
    57  
    58   - **Content-Type**: application/json, multipart/form-data
    59   - **Accept**: application/json
    60  
    61  [[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)
    62  
    63  # **DeleteV5EnterprisesEnterpriseWeekReportsReportIdCommentsId**
    64  > DeleteV5EnterprisesEnterpriseWeekReportsReportIdCommentsId(ctx, enterprise, reportId, id, optional)
    65  删除周报某个评论
    66  
    67  删除周报某个评论
    68  
    69  ### Required Parameters
    70  
    71  Name | Type | Description  | Notes
    72  ------------- | ------------- | ------------- | -------------
    73   **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
    74    **enterprise** | **string**| 企业的路径(path/login) | 
    75    **reportId** | **int32**| 周报ID | 
    76    **id** | **int32**| 评论ID | 
    77   **optional** | ***DeleteV5EnterprisesEnterpriseWeekReportsReportIdCommentsIdOpts** | optional parameters | nil if no parameters
    78  
    79  ### Optional Parameters
    80  Optional parameters are passed through a pointer to a DeleteV5EnterprisesEnterpriseWeekReportsReportIdCommentsIdOpts struct
    81  
    82  Name | Type | Description  | Notes
    83  ------------- | ------------- | ------------- | -------------
    84  
    85  
    86  
    87   **accessToken** | **optional.String**| 用户授权码 | 
    88  
    89  ### Return type
    90  
    91   (empty response body)
    92  
    93  ### Authorization
    94  
    95  No authorization required
    96  
    97  ### HTTP request headers
    98  
    99   - **Content-Type**: application/json, multipart/form-data
   100   - **Accept**: application/json
   101  
   102  [[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)
   103  
   104  # **GetV5EnterprisesEnterprise**
   105  > EnterpriseBasic GetV5EnterprisesEnterprise(ctx, enterprise, optional)
   106  获取一个企业
   107  
   108  获取一个企业
   109  
   110  ### Required Parameters
   111  
   112  Name | Type | Description  | Notes
   113  ------------- | ------------- | ------------- | -------------
   114   **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
   115    **enterprise** | **string**| 企业的路径(path/login) | 
   116   **optional** | ***GetV5EnterprisesEnterpriseOpts** | optional parameters | nil if no parameters
   117  
   118  ### Optional Parameters
   119  Optional parameters are passed through a pointer to a GetV5EnterprisesEnterpriseOpts struct
   120  
   121  Name | Type | Description  | Notes
   122  ------------- | ------------- | ------------- | -------------
   123  
   124   **accessToken** | **optional.String**| 用户授权码 | 
   125  
   126  ### Return type
   127  
   128  [**EnterpriseBasic**](EnterpriseBasic.md)
   129  
   130  ### Authorization
   131  
   132  No authorization required
   133  
   134  ### HTTP request headers
   135  
   136   - **Content-Type**: application/json, multipart/form-data
   137   - **Accept**: application/json
   138  
   139  [[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)
   140  
   141  # **GetV5EnterprisesEnterpriseMembers**
   142  > []EnterpriseMember GetV5EnterprisesEnterpriseMembers(ctx, enterprise, optional)
   143  列出企业的所有成员
   144  
   145  列出企业的所有成员
   146  
   147  ### Required Parameters
   148  
   149  Name | Type | Description  | Notes
   150  ------------- | ------------- | ------------- | -------------
   151   **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
   152    **enterprise** | **string**| 企业的路径(path/login) | 
   153   **optional** | ***GetV5EnterprisesEnterpriseMembersOpts** | optional parameters | nil if no parameters
   154  
   155  ### Optional Parameters
   156  Optional parameters are passed through a pointer to a GetV5EnterprisesEnterpriseMembersOpts struct
   157  
   158  Name | Type | Description  | Notes
   159  ------------- | ------------- | ------------- | -------------
   160  
   161   **accessToken** | **optional.String**| 用户授权码 | 
   162   **role** | **optional.String**| 根据角色筛选成员 | [default to all]
   163  
   164  ### Return type
   165  
   166  [**[]EnterpriseMember**](EnterpriseMember.md)
   167  
   168  ### Authorization
   169  
   170  No authorization required
   171  
   172  ### HTTP request headers
   173  
   174   - **Content-Type**: application/json, multipart/form-data
   175   - **Accept**: application/json
   176  
   177  [[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)
   178  
   179  # **GetV5EnterprisesEnterpriseMembersUsername**
   180  > EnterpriseMember GetV5EnterprisesEnterpriseMembersUsername(ctx, enterprise, username, optional)
   181  获取企业的一个成员
   182  
   183  获取企业的一个成员
   184  
   185  ### Required Parameters
   186  
   187  Name | Type | Description  | Notes
   188  ------------- | ------------- | ------------- | -------------
   189   **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
   190    **enterprise** | **string**| 企业的路径(path/login) | 
   191    **username** | **string**| 用户名(username/login) | 
   192   **optional** | ***GetV5EnterprisesEnterpriseMembersUsernameOpts** | optional parameters | nil if no parameters
   193  
   194  ### Optional Parameters
   195  Optional parameters are passed through a pointer to a GetV5EnterprisesEnterpriseMembersUsernameOpts struct
   196  
   197  Name | Type | Description  | Notes
   198  ------------- | ------------- | ------------- | -------------
   199  
   200  
   201   **accessToken** | **optional.String**| 用户授权码 | 
   202  
   203  ### Return type
   204  
   205  [**EnterpriseMember**](EnterpriseMember.md)
   206  
   207  ### Authorization
   208  
   209  No authorization required
   210  
   211  ### HTTP request headers
   212  
   213   - **Content-Type**: application/json, multipart/form-data
   214   - **Accept**: application/json
   215  
   216  [[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)
   217  
   218  # **GetV5EnterprisesEnterpriseUsersUsernameWeekReports**
   219  > []WeekReport GetV5EnterprisesEnterpriseUsersUsernameWeekReports(ctx, enterprise, username, optional)
   220  个人周报列表
   221  
   222  个人周报列表
   223  
   224  ### Required Parameters
   225  
   226  Name | Type | Description  | Notes
   227  ------------- | ------------- | ------------- | -------------
   228   **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
   229    **enterprise** | **string**| 企业的路径(path/login) | 
   230    **username** | **string**| 用户名(username/login) | 
   231   **optional** | ***GetV5EnterprisesEnterpriseUsersUsernameWeekReportsOpts** | optional parameters | nil if no parameters
   232  
   233  ### Optional Parameters
   234  Optional parameters are passed through a pointer to a GetV5EnterprisesEnterpriseUsersUsernameWeekReportsOpts struct
   235  
   236  Name | Type | Description  | Notes
   237  ------------- | ------------- | ------------- | -------------
   238  
   239  
   240   **accessToken** | **optional.String**| 用户授权码 | 
   241   **page** | **optional.Int32**| 当前的页码 | [default to 1]
   242   **perPage** | **optional.Int32**| 每页的数量,最大为 100 | [default to 20]
   243  
   244  ### Return type
   245  
   246  [**[]WeekReport**](WeekReport.md)
   247  
   248  ### Authorization
   249  
   250  No authorization required
   251  
   252  ### HTTP request headers
   253  
   254   - **Content-Type**: application/json, multipart/form-data
   255   - **Accept**: application/json
   256  
   257  [[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)
   258  
   259  # **GetV5EnterprisesEnterpriseWeekReports**
   260  > []WeekReport GetV5EnterprisesEnterpriseWeekReports(ctx, enterprise, optional)
   261  企业成员周报列表
   262  
   263  企业成员周报列表
   264  
   265  ### Required Parameters
   266  
   267  Name | Type | Description  | Notes
   268  ------------- | ------------- | ------------- | -------------
   269   **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
   270    **enterprise** | **string**| 企业的路径(path/login) | 
   271   **optional** | ***GetV5EnterprisesEnterpriseWeekReportsOpts** | optional parameters | nil if no parameters
   272  
   273  ### Optional Parameters
   274  Optional parameters are passed through a pointer to a GetV5EnterprisesEnterpriseWeekReportsOpts struct
   275  
   276  Name | Type | Description  | Notes
   277  ------------- | ------------- | ------------- | -------------
   278  
   279   **accessToken** | **optional.String**| 用户授权码 | 
   280   **page** | **optional.Int32**| 当前的页码 | [default to 1]
   281   **perPage** | **optional.Int32**| 每页的数量,最大为 100 | [default to 20]
   282   **username** | **optional.String**| 用户名(username/login) | 
   283   **year** | **optional.Int32**| 周报所属年 | 
   284   **weekIndex** | **optional.Int32**| 周报所属周 | 
   285   **date** | **optional.String**| 周报日期(格式:2019-03-25) | 
   286  
   287  ### Return type
   288  
   289  [**[]WeekReport**](WeekReport.md)
   290  
   291  ### Authorization
   292  
   293  No authorization required
   294  
   295  ### HTTP request headers
   296  
   297   - **Content-Type**: application/json, multipart/form-data
   298   - **Accept**: application/json
   299  
   300  [[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)
   301  
   302  # **GetV5EnterprisesEnterpriseWeekReportsId**
   303  > WeekReport GetV5EnterprisesEnterpriseWeekReportsId(ctx, enterprise, id, optional)
   304  周报详情
   305  
   306  周报详情
   307  
   308  ### Required Parameters
   309  
   310  Name | Type | Description  | Notes
   311  ------------- | ------------- | ------------- | -------------
   312   **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
   313    **enterprise** | **string**| 企业的路径(path/login) | 
   314    **id** | **int32**| 周报ID | 
   315   **optional** | ***GetV5EnterprisesEnterpriseWeekReportsIdOpts** | optional parameters | nil if no parameters
   316  
   317  ### Optional Parameters
   318  Optional parameters are passed through a pointer to a GetV5EnterprisesEnterpriseWeekReportsIdOpts struct
   319  
   320  Name | Type | Description  | Notes
   321  ------------- | ------------- | ------------- | -------------
   322  
   323  
   324   **accessToken** | **optional.String**| 用户授权码 | 
   325  
   326  ### Return type
   327  
   328  [**WeekReport**](WeekReport.md)
   329  
   330  ### Authorization
   331  
   332  No authorization required
   333  
   334  ### HTTP request headers
   335  
   336   - **Content-Type**: application/json, multipart/form-data
   337   - **Accept**: application/json
   338  
   339  [[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)
   340  
   341  # **GetV5EnterprisesEnterpriseWeekReportsIdComments**
   342  > []Note GetV5EnterprisesEnterpriseWeekReportsIdComments(ctx, enterprise, id, optional)
   343  某个周报评论列表
   344  
   345  某个周报评论列表
   346  
   347  ### Required Parameters
   348  
   349  Name | Type | Description  | Notes
   350  ------------- | ------------- | ------------- | -------------
   351   **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
   352    **enterprise** | **string**| 企业的路径(path/login) | 
   353    **id** | **int32**| 周报ID | 
   354   **optional** | ***GetV5EnterprisesEnterpriseWeekReportsIdCommentsOpts** | optional parameters | nil if no parameters
   355  
   356  ### Optional Parameters
   357  Optional parameters are passed through a pointer to a GetV5EnterprisesEnterpriseWeekReportsIdCommentsOpts struct
   358  
   359  Name | Type | Description  | Notes
   360  ------------- | ------------- | ------------- | -------------
   361  
   362  
   363   **accessToken** | **optional.String**| 用户授权码 | 
   364   **page** | **optional.Int32**| 当前的页码 | [default to 1]
   365   **perPage** | **optional.Int32**| 每页的数量,最大为 100 | [default to 20]
   366  
   367  ### Return type
   368  
   369  [**[]Note**](Note.md)
   370  
   371  ### Authorization
   372  
   373  No authorization required
   374  
   375  ### HTTP request headers
   376  
   377   - **Content-Type**: application/json, multipart/form-data
   378   - **Accept**: application/json
   379  
   380  [[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)
   381  
   382  # **GetV5UserEnterprises**
   383  > []EnterpriseBasic GetV5UserEnterprises(ctx, optional)
   384  列出授权用户所属的企业
   385  
   386  列出授权用户所属的企业
   387  
   388  ### Required Parameters
   389  
   390  Name | Type | Description  | Notes
   391  ------------- | ------------- | ------------- | -------------
   392   **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
   393   **optional** | ***GetV5UserEnterprisesOpts** | optional parameters | nil if no parameters
   394  
   395  ### Optional Parameters
   396  Optional parameters are passed through a pointer to a GetV5UserEnterprisesOpts struct
   397  
   398  Name | Type | Description  | Notes
   399  ------------- | ------------- | ------------- | -------------
   400   **accessToken** | **optional.String**| 用户授权码 | 
   401   **page** | **optional.Int32**| 当前的页码 | [default to 1]
   402   **perPage** | **optional.Int32**| 每页的数量,最大为 100 | [default to 20]
   403   **admin** | **optional.Bool**| 只列出授权用户管理的企业 | [default to true]
   404  
   405  ### Return type
   406  
   407  [**[]EnterpriseBasic**](EnterpriseBasic.md)
   408  
   409  ### Authorization
   410  
   411  No authorization required
   412  
   413  ### HTTP request headers
   414  
   415   - **Content-Type**: application/json, multipart/form-data
   416   - **Accept**: application/json
   417  
   418  [[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)
   419  
   420  # **PatchV5EnterprisesEnterpriseWeekReportId**
   421  > WeekReport PatchV5EnterprisesEnterpriseWeekReportId(ctx, enterprise, id, content, optional)
   422  编辑周报
   423  
   424  编辑周报
   425  
   426  ### Required Parameters
   427  
   428  Name | Type | Description  | Notes
   429  ------------- | ------------- | ------------- | -------------
   430   **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
   431    **enterprise** | **string**| 企业的路径(path/login) | 
   432    **id** | **int32**| 周报ID | 
   433    **content** | **string**| 周报内容 | 
   434   **optional** | ***PatchV5EnterprisesEnterpriseWeekReportIdOpts** | optional parameters | nil if no parameters
   435  
   436  ### Optional Parameters
   437  Optional parameters are passed through a pointer to a PatchV5EnterprisesEnterpriseWeekReportIdOpts struct
   438  
   439  Name | Type | Description  | Notes
   440  ------------- | ------------- | ------------- | -------------
   441  
   442  
   443  
   444   **accessToken** | **optional.String**| 用户授权码 | 
   445  
   446  ### Return type
   447  
   448  [**WeekReport**](WeekReport.md)
   449  
   450  ### Authorization
   451  
   452  No authorization required
   453  
   454  ### HTTP request headers
   455  
   456   - **Content-Type**: application/json, multipart/form-data
   457   - **Accept**: application/json
   458  
   459  [[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)
   460  
   461  # **PostV5EnterprisesEnterpriseMembers**
   462  > PostV5EnterprisesEnterpriseMembers(ctx, enterprise, optional)
   463  添加或邀请企业成员
   464  
   465  添加或邀请企业成员
   466  
   467  ### Required Parameters
   468  
   469  Name | Type | Description  | Notes
   470  ------------- | ------------- | ------------- | -------------
   471   **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
   472    **enterprise** | **string**| 企业的路径(path/login) | 
   473   **optional** | ***PostV5EnterprisesEnterpriseMembersOpts** | optional parameters | nil if no parameters
   474  
   475  ### Optional Parameters
   476  Optional parameters are passed through a pointer to a PostV5EnterprisesEnterpriseMembersOpts struct
   477  
   478  Name | Type | Description  | Notes
   479  ------------- | ------------- | ------------- | -------------
   480  
   481   **accessToken** | **optional.String**| 用户授权码 | 
   482   **username** | **optional.String**| 需要邀请的码云用户名(username/login),username,email至少填写一个 | 
   483   **email** | **optional.String**| 要添加邮箱地址,若该邮箱未注册则自动创建帐号。username,email至少填写一个 | 
   484   **outsourced** | **optional.Bool**| 是否企业外包成员,默认:否 | 
   485   **role** | **optional.String**| 企业角色,默认普通成员 | [default to member]
   486   **name** | **optional.String**| 企业成员真实姓名(备注) | 
   487  
   488  ### Return type
   489  
   490   (empty response body)
   491  
   492  ### Authorization
   493  
   494  No authorization required
   495  
   496  ### HTTP request headers
   497  
   498   - **Content-Type**: application/json, multipart/form-data
   499   - **Accept**: application/json
   500  
   501  [[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)
   502  
   503  # **PostV5EnterprisesEnterpriseWeekReport**
   504  > WeekReport PostV5EnterprisesEnterpriseWeekReport(ctx, enterprise, year, content, weekIndex, username, optional)
   505  新建周报
   506  
   507  新建周报
   508  
   509  ### Required Parameters
   510  
   511  Name | Type | Description  | Notes
   512  ------------- | ------------- | ------------- | -------------
   513   **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
   514    **enterprise** | **string**| 企业的路径(path/login) | 
   515    **year** | **int32**| 周报所属年 | 
   516    **content** | **string**| 周报内容 | 
   517    **weekIndex** | **int32**| 周报所属周 | 
   518    **username** | **string**| 用户名(username/login) | 
   519   **optional** | ***PostV5EnterprisesEnterpriseWeekReportOpts** | optional parameters | nil if no parameters
   520  
   521  ### Optional Parameters
   522  Optional parameters are passed through a pointer to a PostV5EnterprisesEnterpriseWeekReportOpts struct
   523  
   524  Name | Type | Description  | Notes
   525  ------------- | ------------- | ------------- | -------------
   526  
   527  
   528  
   529  
   530  
   531   **accessToken** | **optional.String**| 用户授权码 | 
   532   **date** | **optional.String**| 周报日期(格式:2019-03-25) | 
   533  
   534  ### Return type
   535  
   536  [**WeekReport**](WeekReport.md)
   537  
   538  ### Authorization
   539  
   540  No authorization required
   541  
   542  ### HTTP request headers
   543  
   544   - **Content-Type**: application/json, multipart/form-data
   545   - **Accept**: application/json
   546  
   547  [[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)
   548  
   549  # **PostV5EnterprisesEnterpriseWeekReportsIdComment**
   550  > Note PostV5EnterprisesEnterpriseWeekReportsIdComment(ctx, enterprise, id, body, optional)
   551  评论周报
   552  
   553  评论周报
   554  
   555  ### Required Parameters
   556  
   557  Name | Type | Description  | Notes
   558  ------------- | ------------- | ------------- | -------------
   559   **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
   560    **enterprise** | **string**| 企业的路径(path/login) | 
   561    **id** | **int32**| 周报ID | 
   562    **body** | **string**| 评论的内容 | 
   563   **optional** | ***PostV5EnterprisesEnterpriseWeekReportsIdCommentOpts** | optional parameters | nil if no parameters
   564  
   565  ### Optional Parameters
   566  Optional parameters are passed through a pointer to a PostV5EnterprisesEnterpriseWeekReportsIdCommentOpts struct
   567  
   568  Name | Type | Description  | Notes
   569  ------------- | ------------- | ------------- | -------------
   570  
   571  
   572  
   573   **accessToken** | **optional.String**| 用户授权码 | 
   574  
   575  ### Return type
   576  
   577  [**Note**](Note.md)
   578  
   579  ### Authorization
   580  
   581  No authorization required
   582  
   583  ### HTTP request headers
   584  
   585   - **Content-Type**: application/json, multipart/form-data
   586   - **Accept**: application/json
   587  
   588  [[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)
   589  
   590  # **PutV5EnterprisesEnterpriseMembersUsername**
   591  > EnterpriseMember PutV5EnterprisesEnterpriseMembersUsername(ctx, enterprise, username, optional)
   592  修改企业成员权限或备注
   593  
   594  修改企业成员权限或备注
   595  
   596  ### Required Parameters
   597  
   598  Name | Type | Description  | Notes
   599  ------------- | ------------- | ------------- | -------------
   600   **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
   601    **enterprise** | **string**| 企业的路径(path/login) | 
   602    **username** | **string**| 用户名(username/login) | 
   603   **optional** | ***PutV5EnterprisesEnterpriseMembersUsernameOpts** | optional parameters | nil if no parameters
   604  
   605  ### Optional Parameters
   606  Optional parameters are passed through a pointer to a PutV5EnterprisesEnterpriseMembersUsernameOpts struct
   607  
   608  Name | Type | Description  | Notes
   609  ------------- | ------------- | ------------- | -------------
   610  
   611  
   612   **accessToken** | **optional.String**| 用户授权码 | 
   613   **outsourced** | **optional.Bool**| 是否企业外包成员,默认:否 | 
   614   **role** | **optional.String**| 企业角色,默认普通成员 | [default to member]
   615   **active** | **optional.Bool**| 是否可访问企业资源,默认:是。(若选否则禁止该用户访问企业资源) | [default to true]
   616   **name** | **optional.String**| 企业成员真实姓名(备注) | 
   617  
   618  ### Return type
   619  
   620  [**EnterpriseMember**](EnterpriseMember.md)
   621  
   622  ### Authorization
   623  
   624  No authorization required
   625  
   626  ### HTTP request headers
   627  
   628   - **Content-Type**: application/json, multipart/form-data
   629   - **Accept**: application/json
   630  
   631  [[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)
   632