enterprises package - gitee.com/imjoey/ge/v5/pkg/giteeapi/enterprises - Go Packages

enterprises

package
v5.21.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 9, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithContentTypeApplicationJSON

func WithContentTypeApplicationJSON(r *runtime.ClientOperation)

WithContentTypeApplicationJSON sets the Content-Type header to "application/json".

func WithContentTypeApplicationxWwwFormUrlencoded

func WithContentTypeApplicationxWwwFormUrlencoded(r *runtime.ClientOperation)

WithContentTypeApplicationxWwwFormUrlencoded sets the Content-Type header to "application/x-www-form-urlencoded".

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for enterprises API.

func (*Client) DeleteV5EnterprisesEnterpriseMembersUsername

DeleteV5EnterprisesEnterpriseMembersUsername移除企业成员s.

移除企业成员.

This method does not support injected context. However, timeout and opentracing contexts are honored whenever enabled.

If you need to pass a specific context, use Client.DeleteV5EnterprisesEnterpriseMembersUsernameContext instead.

func (*Client) DeleteV5EnterprisesEnterpriseMembersUsernameContext added in v5.14.0

func (a *Client) DeleteV5EnterprisesEnterpriseMembersUsernameContext(ctx context.Context, params *DeleteV5EnterprisesEnterpriseMembersUsernameParams, opts ...ClientOption) (*DeleteV5EnterprisesEnterpriseMembersUsernameNoContent, error)

DeleteV5EnterprisesEnterpriseMembersUsernameContext移除企业成员s.

移除企业成员.

Do not use the deprecated [DeleteV5EnterprisesEnterpriseMembersUsernameParams.Context] with this method: it would be ignored.

func (*Client) DeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsID

DeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsID删除周报某个评论s.

删除周报某个评论.

This method does not support injected context. However, timeout and opentracing contexts are honored whenever enabled.

If you need to pass a specific context, use Client.DeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDContext instead.

func (*Client) DeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDContext added in v5.14.0

DeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDContext删除周报某个评论s.

删除周报某个评论.

Do not use the deprecated [DeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDParams.Context] with this method: it would be ignored.

func (*Client) GetV5EnterpriseEnterprisePullRequests

func (a *Client) GetV5EnterpriseEnterprisePullRequests(params *GetV5EnterpriseEnterprisePullRequestsParams, opts ...ClientOption) (*GetV5EnterpriseEnterprisePullRequestsOK, error)

GetV5EnterpriseEnterprisePullRequests企业s pull request 列表.

企业 Pull Request 列表.

This method does not support injected context. However, timeout and opentracing contexts are honored whenever enabled.

If you need to pass a specific context, use Client.GetV5EnterpriseEnterprisePullRequestsContext instead.

func (*Client) GetV5EnterpriseEnterprisePullRequestsContext added in v5.14.0

func (a *Client) GetV5EnterpriseEnterprisePullRequestsContext(ctx context.Context, params *GetV5EnterpriseEnterprisePullRequestsParams, opts ...ClientOption) (*GetV5EnterpriseEnterprisePullRequestsOK, error)

GetV5EnterpriseEnterprisePullRequestsContext企业s pull request 列表.

企业 Pull Request 列表.

Do not use the deprecated [GetV5EnterpriseEnterprisePullRequestsParams.Context] with this method: it would be ignored.

func (*Client) GetV5EnterprisesEnterprise

func (a *Client) GetV5EnterprisesEnterprise(params *GetV5EnterprisesEnterpriseParams, opts ...ClientOption) (*GetV5EnterprisesEnterpriseOK, error)

GetV5EnterprisesEnterprise获取一个企业s.

获取一个企业.

This method does not support injected context. However, timeout and opentracing contexts are honored whenever enabled.

If you need to pass a specific context, use Client.GetV5EnterprisesEnterpriseContext instead.

func (*Client) GetV5EnterprisesEnterpriseContext added in v5.14.0

func (a *Client) GetV5EnterprisesEnterpriseContext(ctx context.Context, params *GetV5EnterprisesEnterpriseParams, opts ...ClientOption) (*GetV5EnterprisesEnterpriseOK, error)

GetV5EnterprisesEnterpriseContext获取一个企业s.

获取一个企业.

Do not use the deprecated [GetV5EnterprisesEnterpriseParams.Context] with this method: it would be ignored.

func (*Client) GetV5EnterprisesEnterpriseMembers

func (a *Client) GetV5EnterprisesEnterpriseMembers(params *GetV5EnterprisesEnterpriseMembersParams, opts ...ClientOption) (*GetV5EnterprisesEnterpriseMembersOK, error)

GetV5EnterprisesEnterpriseMembers列出企业的所有成员s.

列出企业的所有成员.

This method does not support injected context. However, timeout and opentracing contexts are honored whenever enabled.

If you need to pass a specific context, use Client.GetV5EnterprisesEnterpriseMembersContext instead.

func (*Client) GetV5EnterprisesEnterpriseMembersContext added in v5.14.0

func (a *Client) GetV5EnterprisesEnterpriseMembersContext(ctx context.Context, params *GetV5EnterprisesEnterpriseMembersParams, opts ...ClientOption) (*GetV5EnterprisesEnterpriseMembersOK, error)

GetV5EnterprisesEnterpriseMembersContext列出企业的所有成员s.

列出企业的所有成员.

Do not use the deprecated [GetV5EnterprisesEnterpriseMembersParams.Context] with this method: it would be ignored.

func (*Client) GetV5EnterprisesEnterpriseMembersSearch

func (a *Client) GetV5EnterprisesEnterpriseMembersSearch(params *GetV5EnterprisesEnterpriseMembersSearchParams, opts ...ClientOption) (*GetV5EnterprisesEnterpriseMembersSearchOK, error)

GetV5EnterprisesEnterpriseMembersSearch获取企业成员信息s 通过用户名 邮箱.

获取企业成员信息(通过用户名/邮箱).

This method does not support injected context. However, timeout and opentracing contexts are honored whenever enabled.

If you need to pass a specific context, use Client.GetV5EnterprisesEnterpriseMembersSearchContext instead.

func (*Client) GetV5EnterprisesEnterpriseMembersSearchContext added in v5.14.0

func (a *Client) GetV5EnterprisesEnterpriseMembersSearchContext(ctx context.Context, params *GetV5EnterprisesEnterpriseMembersSearchParams, opts ...ClientOption) (*GetV5EnterprisesEnterpriseMembersSearchOK, error)

GetV5EnterprisesEnterpriseMembersSearchContext获取企业成员信息s 通过用户名 邮箱.

获取企业成员信息(通过用户名/邮箱).

Do not use the deprecated [GetV5EnterprisesEnterpriseMembersSearchParams.Context] with this method: it would be ignored.

func (*Client) GetV5EnterprisesEnterpriseMembersUsername

func (a *Client) GetV5EnterprisesEnterpriseMembersUsername(params *GetV5EnterprisesEnterpriseMembersUsernameParams, opts ...ClientOption) (*GetV5EnterprisesEnterpriseMembersUsernameOK, error)

GetV5EnterprisesEnterpriseMembersUsername获取企业的一个成员s.

获取企业的一个成员.

This method does not support injected context. However, timeout and opentracing contexts are honored whenever enabled.

If you need to pass a specific context, use Client.GetV5EnterprisesEnterpriseMembersUsernameContext instead.

func (*Client) GetV5EnterprisesEnterpriseMembersUsernameContext added in v5.14.0

func (a *Client) GetV5EnterprisesEnterpriseMembersUsernameContext(ctx context.Context, params *GetV5EnterprisesEnterpriseMembersUsernameParams, opts ...ClientOption) (*GetV5EnterprisesEnterpriseMembersUsernameOK, error)

GetV5EnterprisesEnterpriseMembersUsernameContext获取企业的一个成员s.

获取企业的一个成员.

Do not use the deprecated [GetV5EnterprisesEnterpriseMembersUsernameParams.Context] with this method: it would be ignored.

func (*Client) GetV5EnterprisesEnterpriseUsersUsernameWeekReports

func (a *Client) GetV5EnterprisesEnterpriseUsersUsernameWeekReports(params *GetV5EnterprisesEnterpriseUsersUsernameWeekReportsParams, opts ...ClientOption) (*GetV5EnterprisesEnterpriseUsersUsernameWeekReportsOK, error)

GetV5EnterprisesEnterpriseUsersUsernameWeekReports个人周报列表s.

个人周报列表.

This method does not support injected context. However, timeout and opentracing contexts are honored whenever enabled.

If you need to pass a specific context, use Client.GetV5EnterprisesEnterpriseUsersUsernameWeekReportsContext instead.

func (*Client) GetV5EnterprisesEnterpriseUsersUsernameWeekReportsContext added in v5.14.0

func (a *Client) GetV5EnterprisesEnterpriseUsersUsernameWeekReportsContext(ctx context.Context, params *GetV5EnterprisesEnterpriseUsersUsernameWeekReportsParams, opts ...ClientOption) (*GetV5EnterprisesEnterpriseUsersUsernameWeekReportsOK, error)

GetV5EnterprisesEnterpriseUsersUsernameWeekReportsContext个人周报列表s.

个人周报列表.

Do not use the deprecated [GetV5EnterprisesEnterpriseUsersUsernameWeekReportsParams.Context] with this method: it would be ignored.

func (*Client) GetV5EnterprisesEnterpriseWeekReports

func (a *Client) GetV5EnterprisesEnterpriseWeekReports(params *GetV5EnterprisesEnterpriseWeekReportsParams, opts ...ClientOption) (*GetV5EnterprisesEnterpriseWeekReportsOK, error)

GetV5EnterprisesEnterpriseWeekReports企业成员周报列表s.

企业成员周报列表.

This method does not support injected context. However, timeout and opentracing contexts are honored whenever enabled.

If you need to pass a specific context, use Client.GetV5EnterprisesEnterpriseWeekReportsContext instead.

func (*Client) GetV5EnterprisesEnterpriseWeekReportsContext added in v5.14.0

func (a *Client) GetV5EnterprisesEnterpriseWeekReportsContext(ctx context.Context, params *GetV5EnterprisesEnterpriseWeekReportsParams, opts ...ClientOption) (*GetV5EnterprisesEnterpriseWeekReportsOK, error)

GetV5EnterprisesEnterpriseWeekReportsContext企业成员周报列表s.

企业成员周报列表.

Do not use the deprecated [GetV5EnterprisesEnterpriseWeekReportsParams.Context] with this method: it would be ignored.

func (*Client) GetV5EnterprisesEnterpriseWeekReportsID

func (a *Client) GetV5EnterprisesEnterpriseWeekReportsID(params *GetV5EnterprisesEnterpriseWeekReportsIDParams, opts ...ClientOption) (*GetV5EnterprisesEnterpriseWeekReportsIDOK, error)

GetV5EnterprisesEnterpriseWeekReportsID周报详情s.

周报详情.

This method does not support injected context. However, timeout and opentracing contexts are honored whenever enabled.

If you need to pass a specific context, use Client.GetV5EnterprisesEnterpriseWeekReportsIDContext instead.

func (*Client) GetV5EnterprisesEnterpriseWeekReportsIDComments

func (a *Client) GetV5EnterprisesEnterpriseWeekReportsIDComments(params *GetV5EnterprisesEnterpriseWeekReportsIDCommentsParams, opts ...ClientOption) (*GetV5EnterprisesEnterpriseWeekReportsIDCommentsOK, error)

GetV5EnterprisesEnterpriseWeekReportsIDComments某个周报评论列表s.

某个周报评论列表.

This method does not support injected context. However, timeout and opentracing contexts are honored whenever enabled.

If you need to pass a specific context, use Client.GetV5EnterprisesEnterpriseWeekReportsIDCommentsContext instead.

func (*Client) GetV5EnterprisesEnterpriseWeekReportsIDCommentsContext added in v5.14.0

func (a *Client) GetV5EnterprisesEnterpriseWeekReportsIDCommentsContext(ctx context.Context, params *GetV5EnterprisesEnterpriseWeekReportsIDCommentsParams, opts ...ClientOption) (*GetV5EnterprisesEnterpriseWeekReportsIDCommentsOK, error)

GetV5EnterprisesEnterpriseWeekReportsIDCommentsContext某个周报评论列表s.

某个周报评论列表.

Do not use the deprecated [GetV5EnterprisesEnterpriseWeekReportsIDCommentsParams.Context] with this method: it would be ignored.

func (*Client) GetV5EnterprisesEnterpriseWeekReportsIDContext added in v5.14.0

func (a *Client) GetV5EnterprisesEnterpriseWeekReportsIDContext(ctx context.Context, params *GetV5EnterprisesEnterpriseWeekReportsIDParams, opts ...ClientOption) (*GetV5EnterprisesEnterpriseWeekReportsIDOK, error)

GetV5EnterprisesEnterpriseWeekReportsIDContext周报详情s.

周报详情.

Do not use the deprecated [GetV5EnterprisesEnterpriseWeekReportsIDParams.Context] with this method: it would be ignored.

func (*Client) GetV5UserEnterprises

func (a *Client) GetV5UserEnterprises(params *GetV5UserEnterprisesParams, opts ...ClientOption) (*GetV5UserEnterprisesOK, error)

GetV5UserEnterprises列出授权用户所属的企业s.

列出授权用户所属的企业.

This method does not support injected context. However, timeout and opentracing contexts are honored whenever enabled.

If you need to pass a specific context, use Client.GetV5UserEnterprisesContext instead.

func (*Client) GetV5UserEnterprisesContext added in v5.14.0

func (a *Client) GetV5UserEnterprisesContext(ctx context.Context, params *GetV5UserEnterprisesParams, opts ...ClientOption) (*GetV5UserEnterprisesOK, error)

GetV5UserEnterprisesContext列出授权用户所属的企业s.

列出授权用户所属的企业.

Do not use the deprecated [GetV5UserEnterprisesParams.Context] with this method: it would be ignored.

func (*Client) PatchV5EnterprisesEnterpriseWeekReportID

func (a *Client) PatchV5EnterprisesEnterpriseWeekReportID(params *PatchV5EnterprisesEnterpriseWeekReportIDParams, opts ...ClientOption) (*PatchV5EnterprisesEnterpriseWeekReportIDOK, error)

PatchV5EnterprisesEnterpriseWeekReportID编辑周报s.

编辑周报.

This method does not support injected context. However, timeout and opentracing contexts are honored whenever enabled.

If you need to pass a specific context, use Client.PatchV5EnterprisesEnterpriseWeekReportIDContext instead.

func (*Client) PatchV5EnterprisesEnterpriseWeekReportIDContext added in v5.14.0

func (a *Client) PatchV5EnterprisesEnterpriseWeekReportIDContext(ctx context.Context, params *PatchV5EnterprisesEnterpriseWeekReportIDParams, opts ...ClientOption) (*PatchV5EnterprisesEnterpriseWeekReportIDOK, error)

PatchV5EnterprisesEnterpriseWeekReportIDContext编辑周报s.

编辑周报.

Do not use the deprecated [PatchV5EnterprisesEnterpriseWeekReportIDParams.Context] with this method: it would be ignored.

func (*Client) PostV5EnterprisesEnterpriseMembers

func (a *Client) PostV5EnterprisesEnterpriseMembers(params *PostV5EnterprisesEnterpriseMembersParams, opts ...ClientOption) (*PostV5EnterprisesEnterpriseMembersNoContent, error)

PostV5EnterprisesEnterpriseMembers添加或邀请企业成员s.

添加或邀请企业成员.

This method does not support injected context. However, timeout and opentracing contexts are honored whenever enabled.

If you need to pass a specific context, use Client.PostV5EnterprisesEnterpriseMembersContext instead.

func (*Client) PostV5EnterprisesEnterpriseMembersContext added in v5.14.0

func (a *Client) PostV5EnterprisesEnterpriseMembersContext(ctx context.Context, params *PostV5EnterprisesEnterpriseMembersParams, opts ...ClientOption) (*PostV5EnterprisesEnterpriseMembersNoContent, error)

PostV5EnterprisesEnterpriseMembersContext添加或邀请企业成员s.

添加或邀请企业成员.

Do not use the deprecated [PostV5EnterprisesEnterpriseMembersParams.Context] with this method: it would be ignored.

func (*Client) PostV5EnterprisesEnterpriseWeekReport

func (a *Client) PostV5EnterprisesEnterpriseWeekReport(params *PostV5EnterprisesEnterpriseWeekReportParams, opts ...ClientOption) (*PostV5EnterprisesEnterpriseWeekReportCreated, error)

PostV5EnterprisesEnterpriseWeekReport新建周报s.

新建周报.

This method does not support injected context. However, timeout and opentracing contexts are honored whenever enabled.

If you need to pass a specific context, use Client.PostV5EnterprisesEnterpriseWeekReportContext instead.

func (*Client) PostV5EnterprisesEnterpriseWeekReportContext added in v5.14.0

func (a *Client) PostV5EnterprisesEnterpriseWeekReportContext(ctx context.Context, params *PostV5EnterprisesEnterpriseWeekReportParams, opts ...ClientOption) (*PostV5EnterprisesEnterpriseWeekReportCreated, error)

PostV5EnterprisesEnterpriseWeekReportContext新建周报s.

新建周报.

Do not use the deprecated [PostV5EnterprisesEnterpriseWeekReportParams.Context] with this method: it would be ignored.

func (*Client) PostV5EnterprisesEnterpriseWeekReportsIDComment

PostV5EnterprisesEnterpriseWeekReportsIDComment评论周报s.

评论周报.

This method does not support injected context. However, timeout and opentracing contexts are honored whenever enabled.

If you need to pass a specific context, use Client.PostV5EnterprisesEnterpriseWeekReportsIDCommentContext instead.

func (*Client) PostV5EnterprisesEnterpriseWeekReportsIDCommentContext added in v5.14.0

func (a *Client) PostV5EnterprisesEnterpriseWeekReportsIDCommentContext(ctx context.Context, params *PostV5EnterprisesEnterpriseWeekReportsIDCommentParams, opts ...ClientOption) (*PostV5EnterprisesEnterpriseWeekReportsIDCommentCreated, error)

PostV5EnterprisesEnterpriseWeekReportsIDCommentContext评论周报s.

评论周报.

Do not use the deprecated [PostV5EnterprisesEnterpriseWeekReportsIDCommentParams.Context] with this method: it would be ignored.

func (*Client) PutV5EnterprisesEnterpriseMembersUsername

func (a *Client) PutV5EnterprisesEnterpriseMembersUsername(params *PutV5EnterprisesEnterpriseMembersUsernameParams, opts ...ClientOption) (*PutV5EnterprisesEnterpriseMembersUsernameOK, error)

PutV5EnterprisesEnterpriseMembersUsername修改企业成员权限或备注s.

修改企业成员权限或备注.

This method does not support injected context. However, timeout and opentracing contexts are honored whenever enabled.

If you need to pass a specific context, use Client.PutV5EnterprisesEnterpriseMembersUsernameContext instead.

func (*Client) PutV5EnterprisesEnterpriseMembersUsernameContext added in v5.14.0

func (a *Client) PutV5EnterprisesEnterpriseMembersUsernameContext(ctx context.Context, params *PutV5EnterprisesEnterpriseMembersUsernameParams, opts ...ClientOption) (*PutV5EnterprisesEnterpriseMembersUsernameOK, error)

PutV5EnterprisesEnterpriseMembersUsernameContext修改企业成员权限或备注s.

修改企业成员权限或备注.

Do not use the deprecated [PutV5EnterprisesEnterpriseMembersUsernameParams.Context] with this method: it would be ignored.

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ContextualTransport)

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption may be used to customize the behavior of Client methods.

func WithContentType

func WithContentType(mime string) ClientOption

WithContentType allows the client to force the Content-Type header to negotiate a specific Consumer from the server.

You may use this option to set arbitrary extensions to your MIME media type.

type ClientService

type ClientService interface {

	// DeleteV5EnterprisesEnterpriseMembersUsername 移除企业成员.
	DeleteV5EnterprisesEnterpriseMembersUsername(params *DeleteV5EnterprisesEnterpriseMembersUsernameParams, opts ...ClientOption) (*DeleteV5EnterprisesEnterpriseMembersUsernameNoContent, error)

	// DeleteV5EnterprisesEnterpriseMembersUsernameContext 移除企业成员.
	DeleteV5EnterprisesEnterpriseMembersUsernameContext(ctx context.Context, params *DeleteV5EnterprisesEnterpriseMembersUsernameParams, opts ...ClientOption) (*DeleteV5EnterprisesEnterpriseMembersUsernameNoContent, error)

	// DeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsID 删除周报某个评论.
	DeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsID(params *DeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDParams, opts ...ClientOption) (*DeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDNoContent, error)

	// DeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDContext 删除周报某个评论.
	DeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDContext(ctx context.Context, params *DeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDParams, opts ...ClientOption) (*DeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDNoContent, error)

	// GetV5EnterpriseEnterprisePullRequests 企业 pull request 列表.
	GetV5EnterpriseEnterprisePullRequests(params *GetV5EnterpriseEnterprisePullRequestsParams, opts ...ClientOption) (*GetV5EnterpriseEnterprisePullRequestsOK, error)

	// GetV5EnterpriseEnterprisePullRequestsContext 企业 pull request 列表.
	GetV5EnterpriseEnterprisePullRequestsContext(ctx context.Context, params *GetV5EnterpriseEnterprisePullRequestsParams, opts ...ClientOption) (*GetV5EnterpriseEnterprisePullRequestsOK, error)

	// GetV5EnterprisesEnterprise 获取一个企业.
	GetV5EnterprisesEnterprise(params *GetV5EnterprisesEnterpriseParams, opts ...ClientOption) (*GetV5EnterprisesEnterpriseOK, error)

	// GetV5EnterprisesEnterpriseContext 获取一个企业.
	GetV5EnterprisesEnterpriseContext(ctx context.Context, params *GetV5EnterprisesEnterpriseParams, opts ...ClientOption) (*GetV5EnterprisesEnterpriseOK, error)

	// GetV5EnterprisesEnterpriseMembers 列出企业的所有成员.
	GetV5EnterprisesEnterpriseMembers(params *GetV5EnterprisesEnterpriseMembersParams, opts ...ClientOption) (*GetV5EnterprisesEnterpriseMembersOK, error)

	// GetV5EnterprisesEnterpriseMembersContext 列出企业的所有成员.
	GetV5EnterprisesEnterpriseMembersContext(ctx context.Context, params *GetV5EnterprisesEnterpriseMembersParams, opts ...ClientOption) (*GetV5EnterprisesEnterpriseMembersOK, error)

	// GetV5EnterprisesEnterpriseMembersSearch 获取企业成员信息 通过用户名 邮箱.
	GetV5EnterprisesEnterpriseMembersSearch(params *GetV5EnterprisesEnterpriseMembersSearchParams, opts ...ClientOption) (*GetV5EnterprisesEnterpriseMembersSearchOK, error)

	// GetV5EnterprisesEnterpriseMembersSearchContext 获取企业成员信息 通过用户名 邮箱.
	GetV5EnterprisesEnterpriseMembersSearchContext(ctx context.Context, params *GetV5EnterprisesEnterpriseMembersSearchParams, opts ...ClientOption) (*GetV5EnterprisesEnterpriseMembersSearchOK, error)

	// GetV5EnterprisesEnterpriseMembersUsername 获取企业的一个成员.
	GetV5EnterprisesEnterpriseMembersUsername(params *GetV5EnterprisesEnterpriseMembersUsernameParams, opts ...ClientOption) (*GetV5EnterprisesEnterpriseMembersUsernameOK, error)

	// GetV5EnterprisesEnterpriseMembersUsernameContext 获取企业的一个成员.
	GetV5EnterprisesEnterpriseMembersUsernameContext(ctx context.Context, params *GetV5EnterprisesEnterpriseMembersUsernameParams, opts ...ClientOption) (*GetV5EnterprisesEnterpriseMembersUsernameOK, error)

	// GetV5EnterprisesEnterpriseUsersUsernameWeekReports 个人周报列表.
	GetV5EnterprisesEnterpriseUsersUsernameWeekReports(params *GetV5EnterprisesEnterpriseUsersUsernameWeekReportsParams, opts ...ClientOption) (*GetV5EnterprisesEnterpriseUsersUsernameWeekReportsOK, error)

	// GetV5EnterprisesEnterpriseUsersUsernameWeekReportsContext 个人周报列表.
	GetV5EnterprisesEnterpriseUsersUsernameWeekReportsContext(ctx context.Context, params *GetV5EnterprisesEnterpriseUsersUsernameWeekReportsParams, opts ...ClientOption) (*GetV5EnterprisesEnterpriseUsersUsernameWeekReportsOK, error)

	// GetV5EnterprisesEnterpriseWeekReports 企业成员周报列表.
	GetV5EnterprisesEnterpriseWeekReports(params *GetV5EnterprisesEnterpriseWeekReportsParams, opts ...ClientOption) (*GetV5EnterprisesEnterpriseWeekReportsOK, error)

	// GetV5EnterprisesEnterpriseWeekReportsContext 企业成员周报列表.
	GetV5EnterprisesEnterpriseWeekReportsContext(ctx context.Context, params *GetV5EnterprisesEnterpriseWeekReportsParams, opts ...ClientOption) (*GetV5EnterprisesEnterpriseWeekReportsOK, error)

	// GetV5EnterprisesEnterpriseWeekReportsID 周报详情.
	GetV5EnterprisesEnterpriseWeekReportsID(params *GetV5EnterprisesEnterpriseWeekReportsIDParams, opts ...ClientOption) (*GetV5EnterprisesEnterpriseWeekReportsIDOK, error)

	// GetV5EnterprisesEnterpriseWeekReportsIDContext 周报详情.
	GetV5EnterprisesEnterpriseWeekReportsIDContext(ctx context.Context, params *GetV5EnterprisesEnterpriseWeekReportsIDParams, opts ...ClientOption) (*GetV5EnterprisesEnterpriseWeekReportsIDOK, error)

	// GetV5EnterprisesEnterpriseWeekReportsIDComments 某个周报评论列表.
	GetV5EnterprisesEnterpriseWeekReportsIDComments(params *GetV5EnterprisesEnterpriseWeekReportsIDCommentsParams, opts ...ClientOption) (*GetV5EnterprisesEnterpriseWeekReportsIDCommentsOK, error)

	// GetV5EnterprisesEnterpriseWeekReportsIDCommentsContext 某个周报评论列表.
	GetV5EnterprisesEnterpriseWeekReportsIDCommentsContext(ctx context.Context, params *GetV5EnterprisesEnterpriseWeekReportsIDCommentsParams, opts ...ClientOption) (*GetV5EnterprisesEnterpriseWeekReportsIDCommentsOK, error)

	// GetV5UserEnterprises 列出授权用户所属的企业.
	GetV5UserEnterprises(params *GetV5UserEnterprisesParams, opts ...ClientOption) (*GetV5UserEnterprisesOK, error)

	// GetV5UserEnterprisesContext 列出授权用户所属的企业.
	GetV5UserEnterprisesContext(ctx context.Context, params *GetV5UserEnterprisesParams, opts ...ClientOption) (*GetV5UserEnterprisesOK, error)

	// PatchV5EnterprisesEnterpriseWeekReportID 编辑周报.
	PatchV5EnterprisesEnterpriseWeekReportID(params *PatchV5EnterprisesEnterpriseWeekReportIDParams, opts ...ClientOption) (*PatchV5EnterprisesEnterpriseWeekReportIDOK, error)

	// PatchV5EnterprisesEnterpriseWeekReportIDContext 编辑周报.
	PatchV5EnterprisesEnterpriseWeekReportIDContext(ctx context.Context, params *PatchV5EnterprisesEnterpriseWeekReportIDParams, opts ...ClientOption) (*PatchV5EnterprisesEnterpriseWeekReportIDOK, error)

	// PostV5EnterprisesEnterpriseMembers 添加或邀请企业成员.
	PostV5EnterprisesEnterpriseMembers(params *PostV5EnterprisesEnterpriseMembersParams, opts ...ClientOption) (*PostV5EnterprisesEnterpriseMembersNoContent, error)

	// PostV5EnterprisesEnterpriseMembersContext 添加或邀请企业成员.
	PostV5EnterprisesEnterpriseMembersContext(ctx context.Context, params *PostV5EnterprisesEnterpriseMembersParams, opts ...ClientOption) (*PostV5EnterprisesEnterpriseMembersNoContent, error)

	// PostV5EnterprisesEnterpriseWeekReport 新建周报.
	PostV5EnterprisesEnterpriseWeekReport(params *PostV5EnterprisesEnterpriseWeekReportParams, opts ...ClientOption) (*PostV5EnterprisesEnterpriseWeekReportCreated, error)

	// PostV5EnterprisesEnterpriseWeekReportContext 新建周报.
	PostV5EnterprisesEnterpriseWeekReportContext(ctx context.Context, params *PostV5EnterprisesEnterpriseWeekReportParams, opts ...ClientOption) (*PostV5EnterprisesEnterpriseWeekReportCreated, error)

	// PostV5EnterprisesEnterpriseWeekReportsIDComment 评论周报.
	PostV5EnterprisesEnterpriseWeekReportsIDComment(params *PostV5EnterprisesEnterpriseWeekReportsIDCommentParams, opts ...ClientOption) (*PostV5EnterprisesEnterpriseWeekReportsIDCommentCreated, error)

	// PostV5EnterprisesEnterpriseWeekReportsIDCommentContext 评论周报.
	PostV5EnterprisesEnterpriseWeekReportsIDCommentContext(ctx context.Context, params *PostV5EnterprisesEnterpriseWeekReportsIDCommentParams, opts ...ClientOption) (*PostV5EnterprisesEnterpriseWeekReportsIDCommentCreated, error)

	// PutV5EnterprisesEnterpriseMembersUsername 修改企业成员权限或备注.
	PutV5EnterprisesEnterpriseMembersUsername(params *PutV5EnterprisesEnterpriseMembersUsernameParams, opts ...ClientOption) (*PutV5EnterprisesEnterpriseMembersUsernameOK, error)

	// PutV5EnterprisesEnterpriseMembersUsernameContext 修改企业成员权限或备注.
	PutV5EnterprisesEnterpriseMembersUsernameContext(ctx context.Context, params *PutV5EnterprisesEnterpriseMembersUsernameParams, opts ...ClientOption) (*PutV5EnterprisesEnterpriseMembersUsernameOK, error)

	SetTransport(transport runtime.ContextualTransport)
}

ClientService is the interface for Client methods.

func New

New creates a new enterprises API client.

func NewClientWithBasicAuth

func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService

New creates a new enterprises API client with basic auth credentials.

It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.

func NewClientWithBearerToken

func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService

New creates a new enterprises API client with a bearer token for authentication.

It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.

type DeleteV5EnterprisesEnterpriseMembersUsernameForbidden

type DeleteV5EnterprisesEnterpriseMembersUsernameForbidden struct {
}

DeleteV5EnterprisesEnterpriseMembersUsernameForbidden describes a response with status code 403, with default header values.

没有权限

func NewDeleteV5EnterprisesEnterpriseMembersUsernameForbidden

func NewDeleteV5EnterprisesEnterpriseMembersUsernameForbidden() *DeleteV5EnterprisesEnterpriseMembersUsernameForbidden

NewDeleteV5EnterprisesEnterpriseMembersUsernameForbidden creates a DeleteV5EnterprisesEnterpriseMembersUsernameForbidden with default headers values

func (*DeleteV5EnterprisesEnterpriseMembersUsernameForbidden) Code

Code gets the status code for the delete v5 enterprises enterprise members username forbidden response

func (*DeleteV5EnterprisesEnterpriseMembersUsernameForbidden) Error

func (*DeleteV5EnterprisesEnterpriseMembersUsernameForbidden) IsClientError

IsClientError returns true when this delete v5 enterprises enterprise members username forbidden response has a 4xx status code

func (*DeleteV5EnterprisesEnterpriseMembersUsernameForbidden) IsCode

IsCode returns true when this delete v5 enterprises enterprise members username forbidden response a status code equal to that given

func (*DeleteV5EnterprisesEnterpriseMembersUsernameForbidden) IsRedirect

IsRedirect returns true when this delete v5 enterprises enterprise members username forbidden response has a 3xx status code

func (*DeleteV5EnterprisesEnterpriseMembersUsernameForbidden) IsServerError

IsServerError returns true when this delete v5 enterprises enterprise members username forbidden response has a 5xx status code

func (*DeleteV5EnterprisesEnterpriseMembersUsernameForbidden) IsSuccess

IsSuccess returns true when this delete v5 enterprises enterprise members username forbidden response has a 2xx status code

func (*DeleteV5EnterprisesEnterpriseMembersUsernameForbidden) String

type DeleteV5EnterprisesEnterpriseMembersUsernameNoContent

type DeleteV5EnterprisesEnterpriseMembersUsernameNoContent struct {
}

DeleteV5EnterprisesEnterpriseMembersUsernameNoContent describes a response with status code 204, with default header values.

执行成功

func NewDeleteV5EnterprisesEnterpriseMembersUsernameNoContent

func NewDeleteV5EnterprisesEnterpriseMembersUsernameNoContent() *DeleteV5EnterprisesEnterpriseMembersUsernameNoContent

NewDeleteV5EnterprisesEnterpriseMembersUsernameNoContent creates a DeleteV5EnterprisesEnterpriseMembersUsernameNoContent with default headers values

func (*DeleteV5EnterprisesEnterpriseMembersUsernameNoContent) Code

Code gets the status code for the delete v5 enterprises enterprise members username no content response

func (*DeleteV5EnterprisesEnterpriseMembersUsernameNoContent) Error

func (*DeleteV5EnterprisesEnterpriseMembersUsernameNoContent) IsClientError

IsClientError returns true when this delete v5 enterprises enterprise members username no content response has a 4xx status code

func (*DeleteV5EnterprisesEnterpriseMembersUsernameNoContent) IsCode

IsCode returns true when this delete v5 enterprises enterprise members username no content response a status code equal to that given

func (*DeleteV5EnterprisesEnterpriseMembersUsernameNoContent) IsRedirect

IsRedirect returns true when this delete v5 enterprises enterprise members username no content response has a 3xx status code

func (*DeleteV5EnterprisesEnterpriseMembersUsernameNoContent) IsServerError

IsServerError returns true when this delete v5 enterprises enterprise members username no content response has a 5xx status code

func (*DeleteV5EnterprisesEnterpriseMembersUsernameNoContent) IsSuccess

IsSuccess returns true when this delete v5 enterprises enterprise members username no content response has a 2xx status code

func (*DeleteV5EnterprisesEnterpriseMembersUsernameNoContent) String

type DeleteV5EnterprisesEnterpriseMembersUsernameNotFound

type DeleteV5EnterprisesEnterpriseMembersUsernameNotFound struct {
}

DeleteV5EnterprisesEnterpriseMembersUsernameNotFound describes a response with status code 404, with default header values.

没有相关数据

func NewDeleteV5EnterprisesEnterpriseMembersUsernameNotFound

func NewDeleteV5EnterprisesEnterpriseMembersUsernameNotFound() *DeleteV5EnterprisesEnterpriseMembersUsernameNotFound

NewDeleteV5EnterprisesEnterpriseMembersUsernameNotFound creates a DeleteV5EnterprisesEnterpriseMembersUsernameNotFound with default headers values

func (*DeleteV5EnterprisesEnterpriseMembersUsernameNotFound) Code

Code gets the status code for the delete v5 enterprises enterprise members username not found response

func (*DeleteV5EnterprisesEnterpriseMembersUsernameNotFound) Error

func (*DeleteV5EnterprisesEnterpriseMembersUsernameNotFound) IsClientError

IsClientError returns true when this delete v5 enterprises enterprise members username not found response has a 4xx status code

func (*DeleteV5EnterprisesEnterpriseMembersUsernameNotFound) IsCode

IsCode returns true when this delete v5 enterprises enterprise members username not found response a status code equal to that given

func (*DeleteV5EnterprisesEnterpriseMembersUsernameNotFound) IsRedirect

IsRedirect returns true when this delete v5 enterprises enterprise members username not found response has a 3xx status code

func (*DeleteV5EnterprisesEnterpriseMembersUsernameNotFound) IsServerError

IsServerError returns true when this delete v5 enterprises enterprise members username not found response has a 5xx status code

func (*DeleteV5EnterprisesEnterpriseMembersUsernameNotFound) IsSuccess

IsSuccess returns true when this delete v5 enterprises enterprise members username not found response has a 2xx status code

func (*DeleteV5EnterprisesEnterpriseMembersUsernameNotFound) String

type DeleteV5EnterprisesEnterpriseMembersUsernameParams

type DeleteV5EnterprisesEnterpriseMembersUsernameParams struct {

	/* AccessToken.

	   用户授权码
	*/
	AccessToken *string

	/* Enterprise.

	   企业的路径(path/login)
	*/
	Enterprise string

	/* Username.

	   用户名(username/login)
	*/
	Username string

	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DeleteV5EnterprisesEnterpriseMembersUsernameParams contains all the parameters to send to the API endpoint

for the delete v5 enterprises enterprise members username operation.

Typically these are written to a http.Request.

func NewDeleteV5EnterprisesEnterpriseMembersUsernameParams

func NewDeleteV5EnterprisesEnterpriseMembersUsernameParams() *DeleteV5EnterprisesEnterpriseMembersUsernameParams

NewDeleteV5EnterprisesEnterpriseMembersUsernameParams creates a new DeleteV5EnterprisesEnterpriseMembersUsernameParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewDeleteV5EnterprisesEnterpriseMembersUsernameParamsWithContext deprecated

func NewDeleteV5EnterprisesEnterpriseMembersUsernameParamsWithContext(ctx context.Context) *DeleteV5EnterprisesEnterpriseMembersUsernameParams

NewDeleteV5EnterprisesEnterpriseMembersUsernameParamsWithContext creates a new DeleteV5EnterprisesEnterpriseMembersUsernameParams object with the ability to set a context for a request.

Deprecated: use the operation call with context to pass the context instead of DeleteV5EnterprisesEnterpriseMembersUsernameParams.

func NewDeleteV5EnterprisesEnterpriseMembersUsernameParamsWithHTTPClient

func NewDeleteV5EnterprisesEnterpriseMembersUsernameParamsWithHTTPClient(client *http.Client) *DeleteV5EnterprisesEnterpriseMembersUsernameParams

NewDeleteV5EnterprisesEnterpriseMembersUsernameParamsWithHTTPClient creates a new DeleteV5EnterprisesEnterpriseMembersUsernameParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteV5EnterprisesEnterpriseMembersUsernameParamsWithTimeout

func NewDeleteV5EnterprisesEnterpriseMembersUsernameParamsWithTimeout(timeout time.Duration) *DeleteV5EnterprisesEnterpriseMembersUsernameParams

NewDeleteV5EnterprisesEnterpriseMembersUsernameParamsWithTimeout creates a new DeleteV5EnterprisesEnterpriseMembersUsernameParams object with the ability to set a timeout on a request.

func (*DeleteV5EnterprisesEnterpriseMembersUsernameParams) SetAccessToken

func (o *DeleteV5EnterprisesEnterpriseMembersUsernameParams) SetAccessToken(accessToken *string)

SetAccessToken adds the accessToken to the delete v5 enterprises enterprise members username params.

func (*DeleteV5EnterprisesEnterpriseMembersUsernameParams) SetContext deprecated

SetContext adds the context to the delete v5 enterprises enterprise members username params.

Deprecated: use the operation call with context to pass the context instead of DeleteV5EnterprisesEnterpriseMembersUsernameParams.

func (*DeleteV5EnterprisesEnterpriseMembersUsernameParams) SetDefaults

SetDefaults hydrates default values in the delete v5 enterprises enterprise members username params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteV5EnterprisesEnterpriseMembersUsernameParams) SetEnterprise

func (o *DeleteV5EnterprisesEnterpriseMembersUsernameParams) SetEnterprise(enterprise string)

SetEnterprise adds the enterprise to the delete v5 enterprises enterprise members username params.

func (*DeleteV5EnterprisesEnterpriseMembersUsernameParams) SetHTTPClient

SetHTTPClient adds the HTTPClient to the delete v5 enterprises enterprise members username params.

func (*DeleteV5EnterprisesEnterpriseMembersUsernameParams) SetTimeout

SetTimeout adds the timeout to the delete v5 enterprises enterprise members username params.

func (*DeleteV5EnterprisesEnterpriseMembersUsernameParams) SetUsername

SetUsername adds the username to the delete v5 enterprises enterprise members username params.

func (*DeleteV5EnterprisesEnterpriseMembersUsernameParams) WithAccessToken

WithAccessToken adds the accessToken to the delete v5 enterprises enterprise members username params.

func (*DeleteV5EnterprisesEnterpriseMembersUsernameParams) WithContext deprecated

WithContext adds the context to the delete v5 enterprises enterprise members username params.

Deprecated: use the operation call with context to pass the context instead of DeleteV5EnterprisesEnterpriseMembersUsernameParams.

func (*DeleteV5EnterprisesEnterpriseMembersUsernameParams) WithDefaults

WithDefaults hydrates default values in the delete v5 enterprises enterprise members username params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteV5EnterprisesEnterpriseMembersUsernameParams) WithEnterprise

WithEnterprise adds the enterprise to the delete v5 enterprises enterprise members username params.

func (*DeleteV5EnterprisesEnterpriseMembersUsernameParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete v5 enterprises enterprise members username params.

func (*DeleteV5EnterprisesEnterpriseMembersUsernameParams) WithTimeout

WithTimeout adds the timeout to the delete v5 enterprises enterprise members username params.

func (*DeleteV5EnterprisesEnterpriseMembersUsernameParams) WithUsername

WithUsername adds the username to the delete v5 enterprises enterprise members username params.

func (*DeleteV5EnterprisesEnterpriseMembersUsernameParams) WriteToRequest

WriteToRequest writes these params to a runtime.ClientRequest.

type DeleteV5EnterprisesEnterpriseMembersUsernameReader

type DeleteV5EnterprisesEnterpriseMembersUsernameReader struct {
	// contains filtered or unexported fields
}

DeleteV5EnterprisesEnterpriseMembersUsernameReader is a Reader for the DeleteV5EnterprisesEnterpriseMembersUsername structure.

func (*DeleteV5EnterprisesEnterpriseMembersUsernameReader) ReadResponse

ReadResponse reads a server response into the received o.

type DeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDNoContent

type DeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDNoContent struct {
}

DeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDNoContent describes a response with status code 204, with default header values.

删除周报某个评论

func NewDeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDNoContent

func NewDeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDNoContent() *DeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDNoContent

NewDeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDNoContent creates a DeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDNoContent with default headers values

func (*DeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDNoContent) Code

Code gets the status code for the delete v5 enterprises enterprise week reports report Id comments Id no content response

func (*DeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDNoContent) Error

func (*DeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDNoContent) IsClientError

IsClientError returns true when this delete v5 enterprises enterprise week reports report Id comments Id no content response has a 4xx status code

func (*DeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDNoContent) IsCode

IsCode returns true when this delete v5 enterprises enterprise week reports report Id comments Id no content response a status code equal to that given

func (*DeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDNoContent) IsRedirect

IsRedirect returns true when this delete v5 enterprises enterprise week reports report Id comments Id no content response has a 3xx status code

func (*DeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDNoContent) IsServerError

IsServerError returns true when this delete v5 enterprises enterprise week reports report Id comments Id no content response has a 5xx status code

func (*DeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDNoContent) IsSuccess

IsSuccess returns true when this delete v5 enterprises enterprise week reports report Id comments Id no content response has a 2xx status code

func (*DeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDNoContent) String

type DeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDParams

type DeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDParams struct {

	/* AccessToken.

	   用户授权码
	*/
	AccessToken *string

	/* Enterprise.

	   企业的路径(path/login)
	*/
	Enterprise string

	/* ID.

	   评论ID

	   Format: int32
	*/
	ID int32

	/* ReportID.

	   周报ID

	   Format: int32
	*/
	ReportID int32

	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDParams contains all the parameters to send to the API endpoint

for the delete v5 enterprises enterprise week reports report Id comments Id operation.

Typically these are written to a http.Request.

func NewDeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDParams

func NewDeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDParams() *DeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDParams

NewDeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDParams creates a new DeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewDeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDParamsWithContext deprecated

func NewDeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDParamsWithContext(ctx context.Context) *DeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDParams

NewDeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDParamsWithContext creates a new DeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDParams object with the ability to set a context for a request.

Deprecated: use the operation call with context to pass the context instead of DeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDParams.

func NewDeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDParamsWithHTTPClient

func NewDeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDParamsWithHTTPClient(client *http.Client) *DeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDParams

NewDeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDParamsWithHTTPClient creates a new DeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDParamsWithTimeout

func NewDeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDParamsWithTimeout(timeout time.Duration) *DeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDParams

NewDeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDParamsWithTimeout creates a new DeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDParams object with the ability to set a timeout on a request.

func (*DeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDParams) SetAccessToken

SetAccessToken adds the accessToken to the delete v5 enterprises enterprise week reports report Id comments Id params.

func (*DeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDParams) SetContext deprecated

SetContext adds the context to the delete v5 enterprises enterprise week reports report Id comments Id params.

Deprecated: use the operation call with context to pass the context instead of DeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDParams.

func (*DeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDParams) SetDefaults

SetDefaults hydrates default values in the delete v5 enterprises enterprise week reports report Id comments Id params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDParams) SetEnterprise

SetEnterprise adds the enterprise to the delete v5 enterprises enterprise week reports report Id comments Id params.

func (*DeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDParams) SetHTTPClient

SetHTTPClient adds the HTTPClient to the delete v5 enterprises enterprise week reports report Id comments Id params.

func (*DeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDParams) SetID

SetID adds the id to the delete v5 enterprises enterprise week reports report Id comments Id params.

func (*DeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDParams) SetReportID

SetReportID adds the reportId to the delete v5 enterprises enterprise week reports report Id comments Id params.

func (*DeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDParams) SetTimeout

SetTimeout adds the timeout to the delete v5 enterprises enterprise week reports report Id comments Id params.

func (*DeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDParams) WithAccessToken

WithAccessToken adds the accessToken to the delete v5 enterprises enterprise week reports report Id comments Id params.

func (*DeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDParams) WithContext deprecated

WithContext adds the context to the delete v5 enterprises enterprise week reports report Id comments Id params.

Deprecated: use the operation call with context to pass the context instead of DeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDParams.

func (*DeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDParams) WithDefaults

WithDefaults hydrates default values in the delete v5 enterprises enterprise week reports report Id comments Id params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDParams) WithEnterprise

WithEnterprise adds the enterprise to the delete v5 enterprises enterprise week reports report Id comments Id params.

func (*DeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete v5 enterprises enterprise week reports report Id comments Id params.

func (*DeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDParams) WithID

WithID adds the id to the delete v5 enterprises enterprise week reports report Id comments Id params.

func (*DeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDParams) WithReportID

WithReportID adds the reportID to the delete v5 enterprises enterprise week reports report Id comments Id params.

func (*DeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDParams) WithTimeout

WithTimeout adds the timeout to the delete v5 enterprises enterprise week reports report Id comments Id params.

func (*DeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDParams) WriteToRequest

WriteToRequest writes these params to a runtime.ClientRequest.

type DeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDReader

type DeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDReader struct {
	// contains filtered or unexported fields
}

DeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDReader is a Reader for the DeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsID structure.

func (*DeleteV5EnterprisesEnterpriseWeekReportsReportIDCommentsIDReader) ReadResponse

ReadResponse reads a server response into the received o.

type GetV5EnterpriseEnterprisePullRequestsOK

type GetV5EnterpriseEnterprisePullRequestsOK struct {
	Payload []*models.PullRequest
}

GetV5EnterpriseEnterprisePullRequestsOK describes a response with status code 200, with default header values.

返回格式

func NewGetV5EnterpriseEnterprisePullRequestsOK

func NewGetV5EnterpriseEnterprisePullRequestsOK() *GetV5EnterpriseEnterprisePullRequestsOK

NewGetV5EnterpriseEnterprisePullRequestsOK creates a GetV5EnterpriseEnterprisePullRequestsOK with default headers values

func (*GetV5EnterpriseEnterprisePullRequestsOK) Code

Code gets the status code for the get v5 enterprise enterprise pull requests o k response

func (*GetV5EnterpriseEnterprisePullRequestsOK) Error

func (*GetV5EnterpriseEnterprisePullRequestsOK) GetPayload

func (*GetV5EnterpriseEnterprisePullRequestsOK) IsClientError

func (o *GetV5EnterpriseEnterprisePullRequestsOK) IsClientError() bool

IsClientError returns true when this get v5 enterprise enterprise pull requests o k response has a 4xx status code

func (*GetV5EnterpriseEnterprisePullRequestsOK) IsCode

IsCode returns true when this get v5 enterprise enterprise pull requests o k response a status code equal to that given

func (*GetV5EnterpriseEnterprisePullRequestsOK) IsRedirect

IsRedirect returns true when this get v5 enterprise enterprise pull requests o k response has a 3xx status code

func (*GetV5EnterpriseEnterprisePullRequestsOK) IsServerError

func (o *GetV5EnterpriseEnterprisePullRequestsOK) IsServerError() bool

IsServerError returns true when this get v5 enterprise enterprise pull requests o k response has a 5xx status code

func (*GetV5EnterpriseEnterprisePullRequestsOK) IsSuccess

IsSuccess returns true when this get v5 enterprise enterprise pull requests o k response has a 2xx status code

func (*GetV5EnterpriseEnterprisePullRequestsOK) String

type GetV5EnterpriseEnterprisePullRequestsParams

type GetV5EnterpriseEnterprisePullRequestsParams struct {

	/* AccessToken.

	   用户授权码
	*/
	AccessToken *string

	/* Base.

	   可选。Pull Request 提交目标分支的名称。
	*/
	Base *string

	/* Direction.

	   可选。升序/降序

	   Default: "desc"
	*/
	Direction *string

	/* Enterprise.

	   企业的路径(path/login)
	*/
	Enterprise string

	/* Head.

	   可选。Pull Request 提交的源分支。格式:branch 或者:username:branch
	*/
	Head *string

	/* IssueNumber.

	   可选。Issue 编号(区分大小写,无需添加 # 号)
	*/
	IssueNumber *string

	/* Labels.

	   用逗号分开的标签。如: bug,performance
	*/
	Labels *string

	/* MilestoneNumber.

	   可选。里程碑序号(id)

	   Format: int32
	*/
	MilestoneNumber *int32

	/* Page.

	   当前的页码

	   Format: int32
	   Default: 1
	*/
	Page *int32

	/* PerPage.

	   每页的数量,最大为 100

	   Format: int32
	   Default: 20
	*/
	PerPage *int32

	/* ProgramID.

	   可选。项目ID

	   Format: int32
	*/
	ProgramID *int32

	/* Repo.

	   可选。仓库路径(path)
	*/
	Repo *string

	/* Since.

	   可选。起始的更新时间,要求时间格式为 ISO 8601
	*/
	Since *string

	/* Sort.

	   可选。排序字段,默认按创建时间

	   Default: "created"
	*/
	Sort *string

	/* State.

	   可选。Pull Request 状态

	   Default: "open"
	*/
	State *string

	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetV5EnterpriseEnterprisePullRequestsParams contains all the parameters to send to the API endpoint

for the get v5 enterprise enterprise pull requests operation.

Typically these are written to a http.Request.

func NewGetV5EnterpriseEnterprisePullRequestsParams

func NewGetV5EnterpriseEnterprisePullRequestsParams() *GetV5EnterpriseEnterprisePullRequestsParams

NewGetV5EnterpriseEnterprisePullRequestsParams creates a new GetV5EnterpriseEnterprisePullRequestsParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetV5EnterpriseEnterprisePullRequestsParamsWithContext deprecated

func NewGetV5EnterpriseEnterprisePullRequestsParamsWithContext(ctx context.Context) *GetV5EnterpriseEnterprisePullRequestsParams

NewGetV5EnterpriseEnterprisePullRequestsParamsWithContext creates a new GetV5EnterpriseEnterprisePullRequestsParams object with the ability to set a context for a request.

Deprecated: use the operation call with context to pass the context instead of GetV5EnterpriseEnterprisePullRequestsParams.

func NewGetV5EnterpriseEnterprisePullRequestsParamsWithHTTPClient

func NewGetV5EnterpriseEnterprisePullRequestsParamsWithHTTPClient(client *http.Client) *GetV5EnterpriseEnterprisePullRequestsParams

NewGetV5EnterpriseEnterprisePullRequestsParamsWithHTTPClient creates a new GetV5EnterpriseEnterprisePullRequestsParams object with the ability to set a custom HTTPClient for a request.

func NewGetV5EnterpriseEnterprisePullRequestsParamsWithTimeout

func NewGetV5EnterpriseEnterprisePullRequestsParamsWithTimeout(timeout time.Duration) *GetV5EnterpriseEnterprisePullRequestsParams

NewGetV5EnterpriseEnterprisePullRequestsParamsWithTimeout creates a new GetV5EnterpriseEnterprisePullRequestsParams object with the ability to set a timeout on a request.

func (*GetV5EnterpriseEnterprisePullRequestsParams) SetAccessToken

func (o *GetV5EnterpriseEnterprisePullRequestsParams) SetAccessToken(accessToken *string)

SetAccessToken adds the accessToken to the get v5 enterprise enterprise pull requests params.

func (*GetV5EnterpriseEnterprisePullRequestsParams) SetBase

SetBase adds the base to the get v5 enterprise enterprise pull requests params.

func (*GetV5EnterpriseEnterprisePullRequestsParams) SetContext deprecated

SetContext adds the context to the get v5 enterprise enterprise pull requests params.

Deprecated: use the operation call with context to pass the context instead of GetV5EnterpriseEnterprisePullRequestsParams.

func (*GetV5EnterpriseEnterprisePullRequestsParams) SetDefaults

SetDefaults hydrates default values in the get v5 enterprise enterprise pull requests params (not the query body).

All values with no default are reset to their zero value.

func (*GetV5EnterpriseEnterprisePullRequestsParams) SetDirection

func (o *GetV5EnterpriseEnterprisePullRequestsParams) SetDirection(direction *string)

SetDirection adds the direction to the get v5 enterprise enterprise pull requests params.

func (*GetV5EnterpriseEnterprisePullRequestsParams) SetEnterprise

func (o *GetV5EnterpriseEnterprisePullRequestsParams) SetEnterprise(enterprise string)

SetEnterprise adds the enterprise to the get v5 enterprise enterprise pull requests params.

func (*GetV5EnterpriseEnterprisePullRequestsParams) SetHTTPClient

func (o *GetV5EnterpriseEnterprisePullRequestsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get v5 enterprise enterprise pull requests params.

func (*GetV5EnterpriseEnterprisePullRequestsParams) SetHead

SetHead adds the head to the get v5 enterprise enterprise pull requests params.

func (*GetV5EnterpriseEnterprisePullRequestsParams) SetIssueNumber

func (o *GetV5EnterpriseEnterprisePullRequestsParams) SetIssueNumber(issueNumber *string)

SetIssueNumber adds the issueNumber to the get v5 enterprise enterprise pull requests params.

func (*GetV5EnterpriseEnterprisePullRequestsParams) SetLabels

SetLabels adds the labels to the get v5 enterprise enterprise pull requests params.

func (*GetV5EnterpriseEnterprisePullRequestsParams) SetMilestoneNumber

func (o *GetV5EnterpriseEnterprisePullRequestsParams) SetMilestoneNumber(milestoneNumber *int32)

SetMilestoneNumber adds the milestoneNumber to the get v5 enterprise enterprise pull requests params.

func (*GetV5EnterpriseEnterprisePullRequestsParams) SetPage

SetPage adds the page to the get v5 enterprise enterprise pull requests params.

func (*GetV5EnterpriseEnterprisePullRequestsParams) SetPerPage

func (o *GetV5EnterpriseEnterprisePullRequestsParams) SetPerPage(perPage *int32)

SetPerPage adds the perPage to the get v5 enterprise enterprise pull requests params.

func (*GetV5EnterpriseEnterprisePullRequestsParams) SetProgramID

func (o *GetV5EnterpriseEnterprisePullRequestsParams) SetProgramID(programID *int32)

SetProgramID adds the programId to the get v5 enterprise enterprise pull requests params.

func (*GetV5EnterpriseEnterprisePullRequestsParams) SetRepo

SetRepo adds the repo to the get v5 enterprise enterprise pull requests params.

func (*GetV5EnterpriseEnterprisePullRequestsParams) SetSince

SetSince adds the since to the get v5 enterprise enterprise pull requests params.

func (*GetV5EnterpriseEnterprisePullRequestsParams) SetSort

SetSort adds the sort to the get v5 enterprise enterprise pull requests params.

func (*GetV5EnterpriseEnterprisePullRequestsParams) SetState

SetState adds the state to the get v5 enterprise enterprise pull requests params.

func (*GetV5EnterpriseEnterprisePullRequestsParams) SetTimeout

SetTimeout adds the timeout to the get v5 enterprise enterprise pull requests params.

func (*GetV5EnterpriseEnterprisePullRequestsParams) WithAccessToken

WithAccessToken adds the accessToken to the get v5 enterprise enterprise pull requests params.

func (*GetV5EnterpriseEnterprisePullRequestsParams) WithBase

WithBase adds the base to the get v5 enterprise enterprise pull requests params.

func (*GetV5EnterpriseEnterprisePullRequestsParams) WithContext deprecated

WithContext adds the context to the get v5 enterprise enterprise pull requests params.

Deprecated: use the operation call with context to pass the context instead of GetV5EnterpriseEnterprisePullRequestsParams.

func (*GetV5EnterpriseEnterprisePullRequestsParams) WithDefaults

WithDefaults hydrates default values in the get v5 enterprise enterprise pull requests params (not the query body).

All values with no default are reset to their zero value.

func (*GetV5EnterpriseEnterprisePullRequestsParams) WithDirection

WithDirection adds the direction to the get v5 enterprise enterprise pull requests params.

func (*GetV5EnterpriseEnterprisePullRequestsParams) WithEnterprise

WithEnterprise adds the enterprise to the get v5 enterprise enterprise pull requests params.

func (*GetV5EnterpriseEnterprisePullRequestsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get v5 enterprise enterprise pull requests params.

func (*GetV5EnterpriseEnterprisePullRequestsParams) WithHead

WithHead adds the head to the get v5 enterprise enterprise pull requests params.

func (*GetV5EnterpriseEnterprisePullRequestsParams) WithIssueNumber

WithIssueNumber adds the issueNumber to the get v5 enterprise enterprise pull requests params.

func (*GetV5EnterpriseEnterprisePullRequestsParams) WithLabels

WithLabels adds the labels to the get v5 enterprise enterprise pull requests params.

func (*GetV5EnterpriseEnterprisePullRequestsParams) WithMilestoneNumber

WithMilestoneNumber adds the milestoneNumber to the get v5 enterprise enterprise pull requests params.

func (*GetV5EnterpriseEnterprisePullRequestsParams) WithPage

WithPage adds the page to the get v5 enterprise enterprise pull requests params.

func (*GetV5EnterpriseEnterprisePullRequestsParams) WithPerPage

WithPerPage adds the perPage to the get v5 enterprise enterprise pull requests params.

func (*GetV5EnterpriseEnterprisePullRequestsParams) WithProgramID

WithProgramID adds the programID to the get v5 enterprise enterprise pull requests params.

func (*GetV5EnterpriseEnterprisePullRequestsParams) WithRepo

WithRepo adds the repo to the get v5 enterprise enterprise pull requests params.

func (*GetV5EnterpriseEnterprisePullRequestsParams) WithSince

WithSince adds the since to the get v5 enterprise enterprise pull requests params.

func (*GetV5EnterpriseEnterprisePullRequestsParams) WithSort

WithSort adds the sort to the get v5 enterprise enterprise pull requests params.

func (*GetV5EnterpriseEnterprisePullRequestsParams) WithState

WithState adds the state to the get v5 enterprise enterprise pull requests params.

func (*GetV5EnterpriseEnterprisePullRequestsParams) WithTimeout

WithTimeout adds the timeout to the get v5 enterprise enterprise pull requests params.

func (*GetV5EnterpriseEnterprisePullRequestsParams) WriteToRequest

WriteToRequest writes these params to a runtime.ClientRequest.

type GetV5EnterpriseEnterprisePullRequestsReader

type GetV5EnterpriseEnterprisePullRequestsReader struct {
	// contains filtered or unexported fields
}

GetV5EnterpriseEnterprisePullRequestsReader is a Reader for the GetV5EnterpriseEnterprisePullRequests structure.

func (*GetV5EnterpriseEnterprisePullRequestsReader) ReadResponse

ReadResponse reads a server response into the received o.

type GetV5EnterprisesEnterpriseForbidden

type GetV5EnterprisesEnterpriseForbidden struct {
}

GetV5EnterprisesEnterpriseForbidden describes a response with status code 403, with default header values.

没有权限

func NewGetV5EnterprisesEnterpriseForbidden

func NewGetV5EnterprisesEnterpriseForbidden() *GetV5EnterprisesEnterpriseForbidden

NewGetV5EnterprisesEnterpriseForbidden creates a GetV5EnterprisesEnterpriseForbidden with default headers values

func (*GetV5EnterprisesEnterpriseForbidden) Code

Code gets the status code for the get v5 enterprises enterprise forbidden response

func (*GetV5EnterprisesEnterpriseForbidden) Error

func (*GetV5EnterprisesEnterpriseForbidden) IsClientError

func (o *GetV5EnterprisesEnterpriseForbidden) IsClientError() bool

IsClientError returns true when this get v5 enterprises enterprise forbidden response has a 4xx status code

func (*GetV5EnterprisesEnterpriseForbidden) IsCode

IsCode returns true when this get v5 enterprises enterprise forbidden response a status code equal to that given

func (*GetV5EnterprisesEnterpriseForbidden) IsRedirect

func (o *GetV5EnterprisesEnterpriseForbidden) IsRedirect() bool

IsRedirect returns true when this get v5 enterprises enterprise forbidden response has a 3xx status code

func (*GetV5EnterprisesEnterpriseForbidden) IsServerError

func (o *GetV5EnterprisesEnterpriseForbidden) IsServerError() bool

IsServerError returns true when this get v5 enterprises enterprise forbidden response has a 5xx status code

func (*GetV5EnterprisesEnterpriseForbidden) IsSuccess

IsSuccess returns true when this get v5 enterprises enterprise forbidden response has a 2xx status code

func (*GetV5EnterprisesEnterpriseForbidden) String

type GetV5EnterprisesEnterpriseMembersForbidden

type GetV5EnterprisesEnterpriseMembersForbidden struct {
}

GetV5EnterprisesEnterpriseMembersForbidden describes a response with status code 403, with default header values.

没有权限

func NewGetV5EnterprisesEnterpriseMembersForbidden

func NewGetV5EnterprisesEnterpriseMembersForbidden() *GetV5EnterprisesEnterpriseMembersForbidden

NewGetV5EnterprisesEnterpriseMembersForbidden creates a GetV5EnterprisesEnterpriseMembersForbidden with default headers values

func (*GetV5EnterprisesEnterpriseMembersForbidden) Code

Code gets the status code for the get v5 enterprises enterprise members forbidden response

func (*GetV5EnterprisesEnterpriseMembersForbidden) Error

func (*GetV5EnterprisesEnterpriseMembersForbidden) IsClientError

IsClientError returns true when this get v5 enterprises enterprise members forbidden response has a 4xx status code

func (*GetV5EnterprisesEnterpriseMembersForbidden) IsCode

IsCode returns true when this get v5 enterprises enterprise members forbidden response a status code equal to that given

func (*GetV5EnterprisesEnterpriseMembersForbidden) IsRedirect

IsRedirect returns true when this get v5 enterprises enterprise members forbidden response has a 3xx status code

func (*GetV5EnterprisesEnterpriseMembersForbidden) IsServerError

IsServerError returns true when this get v5 enterprises enterprise members forbidden response has a 5xx status code

func (*GetV5EnterprisesEnterpriseMembersForbidden) IsSuccess

IsSuccess returns true when this get v5 enterprises enterprise members forbidden response has a 2xx status code

func (*GetV5EnterprisesEnterpriseMembersForbidden) String

type GetV5EnterprisesEnterpriseMembersNotFound

type GetV5EnterprisesEnterpriseMembersNotFound struct {
}

GetV5EnterprisesEnterpriseMembersNotFound describes a response with status code 404, with default header values.

没有相关数据

func NewGetV5EnterprisesEnterpriseMembersNotFound

func NewGetV5EnterprisesEnterpriseMembersNotFound() *GetV5EnterprisesEnterpriseMembersNotFound

NewGetV5EnterprisesEnterpriseMembersNotFound creates a GetV5EnterprisesEnterpriseMembersNotFound with default headers values

func (*GetV5EnterprisesEnterpriseMembersNotFound) Code

Code gets the status code for the get v5 enterprises enterprise members not found response

func (*GetV5EnterprisesEnterpriseMembersNotFound) Error

func (*GetV5EnterprisesEnterpriseMembersNotFound) IsClientError

IsClientError returns true when this get v5 enterprises enterprise members not found response has a 4xx status code

func (*GetV5EnterprisesEnterpriseMembersNotFound) IsCode

IsCode returns true when this get v5 enterprises enterprise members not found response a status code equal to that given

func (*GetV5EnterprisesEnterpriseMembersNotFound) IsRedirect

IsRedirect returns true when this get v5 enterprises enterprise members not found response has a 3xx status code

func (*GetV5EnterprisesEnterpriseMembersNotFound) IsServerError

IsServerError returns true when this get v5 enterprises enterprise members not found response has a 5xx status code

func (*GetV5EnterprisesEnterpriseMembersNotFound) IsSuccess

IsSuccess returns true when this get v5 enterprises enterprise members not found response has a 2xx status code

func (*GetV5EnterprisesEnterpriseMembersNotFound) String

type GetV5EnterprisesEnterpriseMembersOK

type GetV5EnterprisesEnterpriseMembersOK struct {
	Payload []*models.EnterpriseMember
}

GetV5EnterprisesEnterpriseMembersOK describes a response with status code 200, with default header values.

返回格式

func NewGetV5EnterprisesEnterpriseMembersOK

func NewGetV5EnterprisesEnterpriseMembersOK() *GetV5EnterprisesEnterpriseMembersOK

NewGetV5EnterprisesEnterpriseMembersOK creates a GetV5EnterprisesEnterpriseMembersOK with default headers values

func (*GetV5EnterprisesEnterpriseMembersOK) Code

Code gets the status code for the get v5 enterprises enterprise members o k response

func (*GetV5EnterprisesEnterpriseMembersOK) Error

func (*GetV5EnterprisesEnterpriseMembersOK) GetPayload

func (*GetV5EnterprisesEnterpriseMembersOK) IsClientError

func (o *GetV5EnterprisesEnterpriseMembersOK) IsClientError() bool

IsClientError returns true when this get v5 enterprises enterprise members o k response has a 4xx status code

func (*GetV5EnterprisesEnterpriseMembersOK) IsCode

IsCode returns true when this get v5 enterprises enterprise members o k response a status code equal to that given

func (*GetV5EnterprisesEnterpriseMembersOK) IsRedirect

func (o *GetV5EnterprisesEnterpriseMembersOK) IsRedirect() bool

IsRedirect returns true when this get v5 enterprises enterprise members o k response has a 3xx status code

func (*GetV5EnterprisesEnterpriseMembersOK) IsServerError

func (o *GetV5EnterprisesEnterpriseMembersOK) IsServerError() bool

IsServerError returns true when this get v5 enterprises enterprise members o k response has a 5xx status code

func (*GetV5EnterprisesEnterpriseMembersOK) IsSuccess

IsSuccess returns true when this get v5 enterprises enterprise members o k response has a 2xx status code

func (*GetV5EnterprisesEnterpriseMembersOK) String

type GetV5EnterprisesEnterpriseMembersParams

type GetV5EnterprisesEnterpriseMembersParams struct {

	/* AccessToken.

	   用户授权码
	*/
	AccessToken *string

	/* Enterprise.

	   企业的路径(path/login)
	*/
	Enterprise string

	/* Page.

	   当前的页码

	   Format: int32
	   Default: 1
	*/
	Page *int32

	/* PerPage.

	   每页的数量,最大为 100

	   Format: int32
	   Default: 20
	*/
	PerPage *int32

	/* Role.

	   根据角色筛选成员

	   Default: "all"
	*/
	Role *string

	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetV5EnterprisesEnterpriseMembersParams contains all the parameters to send to the API endpoint

for the get v5 enterprises enterprise members operation.

Typically these are written to a http.Request.

func NewGetV5EnterprisesEnterpriseMembersParams

func NewGetV5EnterprisesEnterpriseMembersParams() *GetV5EnterprisesEnterpriseMembersParams

NewGetV5EnterprisesEnterpriseMembersParams creates a new GetV5EnterprisesEnterpriseMembersParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetV5EnterprisesEnterpriseMembersParamsWithContext deprecated

func NewGetV5EnterprisesEnterpriseMembersParamsWithContext(ctx context.Context) *GetV5EnterprisesEnterpriseMembersParams

NewGetV5EnterprisesEnterpriseMembersParamsWithContext creates a new GetV5EnterprisesEnterpriseMembersParams object with the ability to set a context for a request.

Deprecated: use the operation call with context to pass the context instead of GetV5EnterprisesEnterpriseMembersParams.

func NewGetV5EnterprisesEnterpriseMembersParamsWithHTTPClient

func NewGetV5EnterprisesEnterpriseMembersParamsWithHTTPClient(client *http.Client) *GetV5EnterprisesEnterpriseMembersParams

NewGetV5EnterprisesEnterpriseMembersParamsWithHTTPClient creates a new GetV5EnterprisesEnterpriseMembersParams object with the ability to set a custom HTTPClient for a request.

func NewGetV5EnterprisesEnterpriseMembersParamsWithTimeout

func NewGetV5EnterprisesEnterpriseMembersParamsWithTimeout(timeout time.Duration) *GetV5EnterprisesEnterpriseMembersParams

NewGetV5EnterprisesEnterpriseMembersParamsWithTimeout creates a new GetV5EnterprisesEnterpriseMembersParams object with the ability to set a timeout on a request.

func (*GetV5EnterprisesEnterpriseMembersParams) SetAccessToken

func (o *GetV5EnterprisesEnterpriseMembersParams) SetAccessToken(accessToken *string)

SetAccessToken adds the accessToken to the get v5 enterprises enterprise members params.

func (*GetV5EnterprisesEnterpriseMembersParams) SetContext deprecated

SetContext adds the context to the get v5 enterprises enterprise members params.

Deprecated: use the operation call with context to pass the context instead of GetV5EnterprisesEnterpriseMembersParams.

func (*GetV5EnterprisesEnterpriseMembersParams) SetDefaults

func (o *GetV5EnterprisesEnterpriseMembersParams) SetDefaults()

SetDefaults hydrates default values in the get v5 enterprises enterprise members params (not the query body).

All values with no default are reset to their zero value.

func (*GetV5EnterprisesEnterpriseMembersParams) SetEnterprise

func (o *GetV5EnterprisesEnterpriseMembersParams) SetEnterprise(enterprise string)

SetEnterprise adds the enterprise to the get v5 enterprises enterprise members params.

func (*GetV5EnterprisesEnterpriseMembersParams) SetHTTPClient

func (o *GetV5EnterprisesEnterpriseMembersParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get v5 enterprises enterprise members params.

func (*GetV5EnterprisesEnterpriseMembersParams) SetPage

SetPage adds the page to the get v5 enterprises enterprise members params.

func (*GetV5EnterprisesEnterpriseMembersParams) SetPerPage

func (o *GetV5EnterprisesEnterpriseMembersParams) SetPerPage(perPage *int32)

SetPerPage adds the perPage to the get v5 enterprises enterprise members params.

func (*GetV5EnterprisesEnterpriseMembersParams) SetRole

SetRole adds the role to the get v5 enterprises enterprise members params.

func (*GetV5EnterprisesEnterpriseMembersParams) SetTimeout

func (o *GetV5EnterprisesEnterpriseMembersParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get v5 enterprises enterprise members params.

func (*GetV5EnterprisesEnterpriseMembersParams) WithAccessToken

WithAccessToken adds the accessToken to the get v5 enterprises enterprise members params.

func (*GetV5EnterprisesEnterpriseMembersParams) WithContext deprecated

WithContext adds the context to the get v5 enterprises enterprise members params.

Deprecated: use the operation call with context to pass the context instead of GetV5EnterprisesEnterpriseMembersParams.

func (*GetV5EnterprisesEnterpriseMembersParams) WithDefaults

WithDefaults hydrates default values in the get v5 enterprises enterprise members params (not the query body).

All values with no default are reset to their zero value.

func (*GetV5EnterprisesEnterpriseMembersParams) WithEnterprise

WithEnterprise adds the enterprise to the get v5 enterprises enterprise members params.

func (*GetV5EnterprisesEnterpriseMembersParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get v5 enterprises enterprise members params.

func (*GetV5EnterprisesEnterpriseMembersParams) WithPage

WithPage adds the page to the get v5 enterprises enterprise members params.

func (*GetV5EnterprisesEnterpriseMembersParams) WithPerPage

WithPerPage adds the perPage to the get v5 enterprises enterprise members params.

func (*GetV5EnterprisesEnterpriseMembersParams) WithRole

WithRole adds the role to the get v5 enterprises enterprise members params.

func (*GetV5EnterprisesEnterpriseMembersParams) WithTimeout

WithTimeout adds the timeout to the get v5 enterprises enterprise members params.

func (*GetV5EnterprisesEnterpriseMembersParams) WriteToRequest

WriteToRequest writes these params to a runtime.ClientRequest.

type GetV5EnterprisesEnterpriseMembersReader

type GetV5EnterprisesEnterpriseMembersReader struct {
	// contains filtered or unexported fields
}

GetV5EnterprisesEnterpriseMembersReader is a Reader for the GetV5EnterprisesEnterpriseMembers structure.

func (*GetV5EnterprisesEnterpriseMembersReader) ReadResponse

ReadResponse reads a server response into the received o.

type GetV5EnterprisesEnterpriseMembersSearchOK

type GetV5EnterprisesEnterpriseMembersSearchOK struct {
	Payload *models.EnterpriseMember
}

GetV5EnterprisesEnterpriseMembersSearchOK describes a response with status code 200, with default header values.

返回格式

func NewGetV5EnterprisesEnterpriseMembersSearchOK

func NewGetV5EnterprisesEnterpriseMembersSearchOK() *GetV5EnterprisesEnterpriseMembersSearchOK

NewGetV5EnterprisesEnterpriseMembersSearchOK creates a GetV5EnterprisesEnterpriseMembersSearchOK with default headers values

func (*GetV5EnterprisesEnterpriseMembersSearchOK) Code

Code gets the status code for the get v5 enterprises enterprise members search o k response

func (*GetV5EnterprisesEnterpriseMembersSearchOK) Error

func (*GetV5EnterprisesEnterpriseMembersSearchOK) GetPayload

func (*GetV5EnterprisesEnterpriseMembersSearchOK) IsClientError

IsClientError returns true when this get v5 enterprises enterprise members search o k response has a 4xx status code

func (*GetV5EnterprisesEnterpriseMembersSearchOK) IsCode

IsCode returns true when this get v5 enterprises enterprise members search o k response a status code equal to that given

func (*GetV5EnterprisesEnterpriseMembersSearchOK) IsRedirect

IsRedirect returns true when this get v5 enterprises enterprise members search o k response has a 3xx status code

func (*GetV5EnterprisesEnterpriseMembersSearchOK) IsServerError

IsServerError returns true when this get v5 enterprises enterprise members search o k response has a 5xx status code

func (*GetV5EnterprisesEnterpriseMembersSearchOK) IsSuccess

IsSuccess returns true when this get v5 enterprises enterprise members search o k response has a 2xx status code

func (*GetV5EnterprisesEnterpriseMembersSearchOK) String

type GetV5EnterprisesEnterpriseMembersSearchParams

type GetV5EnterprisesEnterpriseMembersSearchParams struct {

	/* AccessToken.

	   用户授权码
	*/
	AccessToken *string

	/* Enterprise.

	   企业的路径(path/login)
	*/
	Enterprise string

	/* QueryType.

	   查询类型:username/email
	*/
	QueryType string

	/* QueryValue.

	   查询值
	*/
	QueryValue string

	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetV5EnterprisesEnterpriseMembersSearchParams contains all the parameters to send to the API endpoint

for the get v5 enterprises enterprise members search operation.

Typically these are written to a http.Request.

func NewGetV5EnterprisesEnterpriseMembersSearchParams

func NewGetV5EnterprisesEnterpriseMembersSearchParams() *GetV5EnterprisesEnterpriseMembersSearchParams

NewGetV5EnterprisesEnterpriseMembersSearchParams creates a new GetV5EnterprisesEnterpriseMembersSearchParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetV5EnterprisesEnterpriseMembersSearchParamsWithContext deprecated

func NewGetV5EnterprisesEnterpriseMembersSearchParamsWithContext(ctx context.Context) *GetV5EnterprisesEnterpriseMembersSearchParams

NewGetV5EnterprisesEnterpriseMembersSearchParamsWithContext creates a new GetV5EnterprisesEnterpriseMembersSearchParams object with the ability to set a context for a request.

Deprecated: use the operation call with context to pass the context instead of GetV5EnterprisesEnterpriseMembersSearchParams.

func NewGetV5EnterprisesEnterpriseMembersSearchParamsWithHTTPClient

func NewGetV5EnterprisesEnterpriseMembersSearchParamsWithHTTPClient(client *http.Client) *GetV5EnterprisesEnterpriseMembersSearchParams

NewGetV5EnterprisesEnterpriseMembersSearchParamsWithHTTPClient creates a new GetV5EnterprisesEnterpriseMembersSearchParams object with the ability to set a custom HTTPClient for a request.

func NewGetV5EnterprisesEnterpriseMembersSearchParamsWithTimeout

func NewGetV5EnterprisesEnterpriseMembersSearchParamsWithTimeout(timeout time.Duration) *GetV5EnterprisesEnterpriseMembersSearchParams

NewGetV5EnterprisesEnterpriseMembersSearchParamsWithTimeout creates a new GetV5EnterprisesEnterpriseMembersSearchParams object with the ability to set a timeout on a request.

func (*GetV5EnterprisesEnterpriseMembersSearchParams) SetAccessToken

func (o *GetV5EnterprisesEnterpriseMembersSearchParams) SetAccessToken(accessToken *string)

SetAccessToken adds the accessToken to the get v5 enterprises enterprise members search params.

func (*GetV5EnterprisesEnterpriseMembersSearchParams) SetContext deprecated

SetContext adds the context to the get v5 enterprises enterprise members search params.

Deprecated: use the operation call with context to pass the context instead of GetV5EnterprisesEnterpriseMembersSearchParams.

func (*GetV5EnterprisesEnterpriseMembersSearchParams) SetDefaults

SetDefaults hydrates default values in the get v5 enterprises enterprise members search params (not the query body).

All values with no default are reset to their zero value.

func (*GetV5EnterprisesEnterpriseMembersSearchParams) SetEnterprise

func (o *GetV5EnterprisesEnterpriseMembersSearchParams) SetEnterprise(enterprise string)

SetEnterprise adds the enterprise to the get v5 enterprises enterprise members search params.

func (*GetV5EnterprisesEnterpriseMembersSearchParams) SetHTTPClient

func (o *GetV5EnterprisesEnterpriseMembersSearchParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get v5 enterprises enterprise members search params.

func (*GetV5EnterprisesEnterpriseMembersSearchParams) SetQueryType

func (o *GetV5EnterprisesEnterpriseMembersSearchParams) SetQueryType(queryType string)

SetQueryType adds the queryType to the get v5 enterprises enterprise members search params.

func (*GetV5EnterprisesEnterpriseMembersSearchParams) SetQueryValue

func (o *GetV5EnterprisesEnterpriseMembersSearchParams) SetQueryValue(queryValue string)

SetQueryValue adds the queryValue to the get v5 enterprises enterprise members search params.

func (*GetV5EnterprisesEnterpriseMembersSearchParams) SetTimeout

SetTimeout adds the timeout to the get v5 enterprises enterprise members search params.

func (*GetV5EnterprisesEnterpriseMembersSearchParams) WithAccessToken

WithAccessToken adds the accessToken to the get v5 enterprises enterprise members search params.

func (*GetV5EnterprisesEnterpriseMembersSearchParams) WithContext deprecated

WithContext adds the context to the get v5 enterprises enterprise members search params.

Deprecated: use the operation call with context to pass the context instead of GetV5EnterprisesEnterpriseMembersSearchParams.

func (*GetV5EnterprisesEnterpriseMembersSearchParams) WithDefaults

WithDefaults hydrates default values in the get v5 enterprises enterprise members search params (not the query body).

All values with no default are reset to their zero value.

func (*GetV5EnterprisesEnterpriseMembersSearchParams) WithEnterprise

WithEnterprise adds the enterprise to the get v5 enterprises enterprise members search params.

func (*GetV5EnterprisesEnterpriseMembersSearchParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get v5 enterprises enterprise members search params.

func (*GetV5EnterprisesEnterpriseMembersSearchParams) WithQueryType

WithQueryType adds the queryType to the get v5 enterprises enterprise members search params.

func (*GetV5EnterprisesEnterpriseMembersSearchParams) WithQueryValue

WithQueryValue adds the queryValue to the get v5 enterprises enterprise members search params.

func (*GetV5EnterprisesEnterpriseMembersSearchParams) WithTimeout

WithTimeout adds the timeout to the get v5 enterprises enterprise members search params.

func (*GetV5EnterprisesEnterpriseMembersSearchParams) WriteToRequest

WriteToRequest writes these params to a runtime.ClientRequest.

type GetV5EnterprisesEnterpriseMembersSearchReader

type GetV5EnterprisesEnterpriseMembersSearchReader struct {
	// contains filtered or unexported fields
}

GetV5EnterprisesEnterpriseMembersSearchReader is a Reader for the GetV5EnterprisesEnterpriseMembersSearch structure.

func (*GetV5EnterprisesEnterpriseMembersSearchReader) ReadResponse

ReadResponse reads a server response into the received o.

type GetV5EnterprisesEnterpriseMembersUsernameNotFound

type GetV5EnterprisesEnterpriseMembersUsernameNotFound struct {
}

GetV5EnterprisesEnterpriseMembersUsernameNotFound describes a response with status code 404, with default header values.

没有相关数据

func NewGetV5EnterprisesEnterpriseMembersUsernameNotFound

func NewGetV5EnterprisesEnterpriseMembersUsernameNotFound() *GetV5EnterprisesEnterpriseMembersUsernameNotFound

NewGetV5EnterprisesEnterpriseMembersUsernameNotFound creates a GetV5EnterprisesEnterpriseMembersUsernameNotFound with default headers values

func (*GetV5EnterprisesEnterpriseMembersUsernameNotFound) Code

Code gets the status code for the get v5 enterprises enterprise members username not found response

func (*GetV5EnterprisesEnterpriseMembersUsernameNotFound) Error

func (*GetV5EnterprisesEnterpriseMembersUsernameNotFound) IsClientError

IsClientError returns true when this get v5 enterprises enterprise members username not found response has a 4xx status code

func (*GetV5EnterprisesEnterpriseMembersUsernameNotFound) IsCode

IsCode returns true when this get v5 enterprises enterprise members username not found response a status code equal to that given

func (*GetV5EnterprisesEnterpriseMembersUsernameNotFound) IsRedirect

IsRedirect returns true when this get v5 enterprises enterprise members username not found response has a 3xx status code

func (*GetV5EnterprisesEnterpriseMembersUsernameNotFound) IsServerError

IsServerError returns true when this get v5 enterprises enterprise members username not found response has a 5xx status code

func (*GetV5EnterprisesEnterpriseMembersUsernameNotFound) IsSuccess

IsSuccess returns true when this get v5 enterprises enterprise members username not found response has a 2xx status code

func (*GetV5EnterprisesEnterpriseMembersUsernameNotFound) String

type GetV5EnterprisesEnterpriseMembersUsernameOK

type GetV5EnterprisesEnterpriseMembersUsernameOK struct {
	Payload *models.EnterpriseMember
}

GetV5EnterprisesEnterpriseMembersUsernameOK describes a response with status code 200, with default header values.

返回格式

func NewGetV5EnterprisesEnterpriseMembersUsernameOK

func NewGetV5EnterprisesEnterpriseMembersUsernameOK() *GetV5EnterprisesEnterpriseMembersUsernameOK

NewGetV5EnterprisesEnterpriseMembersUsernameOK creates a GetV5EnterprisesEnterpriseMembersUsernameOK with default headers values

func (*GetV5EnterprisesEnterpriseMembersUsernameOK) Code

Code gets the status code for the get v5 enterprises enterprise members username o k response

func (*GetV5EnterprisesEnterpriseMembersUsernameOK) Error

func (*GetV5EnterprisesEnterpriseMembersUsernameOK) GetPayload

func (*GetV5EnterprisesEnterpriseMembersUsernameOK) IsClientError

IsClientError returns true when this get v5 enterprises enterprise members username o k response has a 4xx status code

func (*GetV5EnterprisesEnterpriseMembersUsernameOK) IsCode

IsCode returns true when this get v5 enterprises enterprise members username o k response a status code equal to that given

func (*GetV5EnterprisesEnterpriseMembersUsernameOK) IsRedirect

IsRedirect returns true when this get v5 enterprises enterprise members username o k response has a 3xx status code

func (*GetV5EnterprisesEnterpriseMembersUsernameOK) IsServerError

IsServerError returns true when this get v5 enterprises enterprise members username o k response has a 5xx status code

func (*GetV5EnterprisesEnterpriseMembersUsernameOK) IsSuccess

IsSuccess returns true when this get v5 enterprises enterprise members username o k response has a 2xx status code

func (*GetV5EnterprisesEnterpriseMembersUsernameOK) String

type GetV5EnterprisesEnterpriseMembersUsernameParams

type GetV5EnterprisesEnterpriseMembersUsernameParams struct {

	/* AccessToken.

	   用户授权码
	*/
	AccessToken *string

	/* Enterprise.

	   企业的路径(path/login)
	*/
	Enterprise string

	/* Username.

	   用户名(username/login)
	*/
	Username string

	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetV5EnterprisesEnterpriseMembersUsernameParams contains all the parameters to send to the API endpoint

for the get v5 enterprises enterprise members username operation.

Typically these are written to a http.Request.

func NewGetV5EnterprisesEnterpriseMembersUsernameParams

func NewGetV5EnterprisesEnterpriseMembersUsernameParams() *GetV5EnterprisesEnterpriseMembersUsernameParams

NewGetV5EnterprisesEnterpriseMembersUsernameParams creates a new GetV5EnterprisesEnterpriseMembersUsernameParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetV5EnterprisesEnterpriseMembersUsernameParamsWithContext deprecated

func NewGetV5EnterprisesEnterpriseMembersUsernameParamsWithContext(ctx context.Context) *GetV5EnterprisesEnterpriseMembersUsernameParams

NewGetV5EnterprisesEnterpriseMembersUsernameParamsWithContext creates a new GetV5EnterprisesEnterpriseMembersUsernameParams object with the ability to set a context for a request.

Deprecated: use the operation call with context to pass the context instead of GetV5EnterprisesEnterpriseMembersUsernameParams.

func NewGetV5EnterprisesEnterpriseMembersUsernameParamsWithHTTPClient

func NewGetV5EnterprisesEnterpriseMembersUsernameParamsWithHTTPClient(client *http.Client) *GetV5EnterprisesEnterpriseMembersUsernameParams

NewGetV5EnterprisesEnterpriseMembersUsernameParamsWithHTTPClient creates a new GetV5EnterprisesEnterpriseMembersUsernameParams object with the ability to set a custom HTTPClient for a request.

func NewGetV5EnterprisesEnterpriseMembersUsernameParamsWithTimeout

func NewGetV5EnterprisesEnterpriseMembersUsernameParamsWithTimeout(timeout time.Duration) *GetV5EnterprisesEnterpriseMembersUsernameParams

NewGetV5EnterprisesEnterpriseMembersUsernameParamsWithTimeout creates a new GetV5EnterprisesEnterpriseMembersUsernameParams object with the ability to set a timeout on a request.

func (*GetV5EnterprisesEnterpriseMembersUsernameParams) SetAccessToken

func (o *GetV5EnterprisesEnterpriseMembersUsernameParams) SetAccessToken(accessToken *string)

SetAccessToken adds the accessToken to the get v5 enterprises enterprise members username params.

func (*GetV5EnterprisesEnterpriseMembersUsernameParams) SetContext deprecated

SetContext adds the context to the get v5 enterprises enterprise members username params.

Deprecated: use the operation call with context to pass the context instead of GetV5EnterprisesEnterpriseMembersUsernameParams.

func (*GetV5EnterprisesEnterpriseMembersUsernameParams) SetDefaults

SetDefaults hydrates default values in the get v5 enterprises enterprise members username params (not the query body).

All values with no default are reset to their zero value.

func (*GetV5EnterprisesEnterpriseMembersUsernameParams) SetEnterprise

func (o *GetV5EnterprisesEnterpriseMembersUsernameParams) SetEnterprise(enterprise string)

SetEnterprise adds the enterprise to the get v5 enterprises enterprise members username params.

func (*GetV5EnterprisesEnterpriseMembersUsernameParams) SetHTTPClient

SetHTTPClient adds the HTTPClient to the get v5 enterprises enterprise members username params.

func (*GetV5EnterprisesEnterpriseMembersUsernameParams) SetTimeout

SetTimeout adds the timeout to the get v5 enterprises enterprise members username params.

func (*GetV5EnterprisesEnterpriseMembersUsernameParams) SetUsername

SetUsername adds the username to the get v5 enterprises enterprise members username params.

func (*GetV5EnterprisesEnterpriseMembersUsernameParams) WithAccessToken

WithAccessToken adds the accessToken to the get v5 enterprises enterprise members username params.

func (*GetV5EnterprisesEnterpriseMembersUsernameParams) WithContext deprecated

WithContext adds the context to the get v5 enterprises enterprise members username params.

Deprecated: use the operation call with context to pass the context instead of GetV5EnterprisesEnterpriseMembersUsernameParams.

func (*GetV5EnterprisesEnterpriseMembersUsernameParams) WithDefaults

WithDefaults hydrates default values in the get v5 enterprises enterprise members username params (not the query body).

All values with no default are reset to their zero value.

func (*GetV5EnterprisesEnterpriseMembersUsernameParams) WithEnterprise

WithEnterprise adds the enterprise to the get v5 enterprises enterprise members username params.

func (*GetV5EnterprisesEnterpriseMembersUsernameParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get v5 enterprises enterprise members username params.

func (*GetV5EnterprisesEnterpriseMembersUsernameParams) WithTimeout

WithTimeout adds the timeout to the get v5 enterprises enterprise members username params.

func (*GetV5EnterprisesEnterpriseMembersUsernameParams) WithUsername

WithUsername adds the username to the get v5 enterprises enterprise members username params.

func (*GetV5EnterprisesEnterpriseMembersUsernameParams) WriteToRequest

WriteToRequest writes these params to a runtime.ClientRequest.

type GetV5EnterprisesEnterpriseMembersUsernameReader

type GetV5EnterprisesEnterpriseMembersUsernameReader struct {
	// contains filtered or unexported fields
}

GetV5EnterprisesEnterpriseMembersUsernameReader is a Reader for the GetV5EnterprisesEnterpriseMembersUsername structure.

func (*GetV5EnterprisesEnterpriseMembersUsernameReader) ReadResponse

ReadResponse reads a server response into the received o.

type GetV5EnterprisesEnterpriseNotFound

type GetV5EnterprisesEnterpriseNotFound struct {
}

GetV5EnterprisesEnterpriseNotFound describes a response with status code 404, with default header values.

没有相关数据

func NewGetV5EnterprisesEnterpriseNotFound

func NewGetV5EnterprisesEnterpriseNotFound() *GetV5EnterprisesEnterpriseNotFound

NewGetV5EnterprisesEnterpriseNotFound creates a GetV5EnterprisesEnterpriseNotFound with default headers values

func (*GetV5EnterprisesEnterpriseNotFound) Code

Code gets the status code for the get v5 enterprises enterprise not found response

func (*GetV5EnterprisesEnterpriseNotFound) Error

func (*GetV5EnterprisesEnterpriseNotFound) IsClientError

func (o *GetV5EnterprisesEnterpriseNotFound) IsClientError() bool

IsClientError returns true when this get v5 enterprises enterprise not found response has a 4xx status code

func (*GetV5EnterprisesEnterpriseNotFound) IsCode

IsCode returns true when this get v5 enterprises enterprise not found response a status code equal to that given

func (*GetV5EnterprisesEnterpriseNotFound) IsRedirect

func (o *GetV5EnterprisesEnterpriseNotFound) IsRedirect() bool

IsRedirect returns true when this get v5 enterprises enterprise not found response has a 3xx status code

func (*GetV5EnterprisesEnterpriseNotFound) IsServerError

func (o *GetV5EnterprisesEnterpriseNotFound) IsServerError() bool

IsServerError returns true when this get v5 enterprises enterprise not found response has a 5xx status code

func (*GetV5EnterprisesEnterpriseNotFound) IsSuccess

IsSuccess returns true when this get v5 enterprises enterprise not found response has a 2xx status code

func (*GetV5EnterprisesEnterpriseNotFound) String

type GetV5EnterprisesEnterpriseOK

type GetV5EnterprisesEnterpriseOK struct {
	Payload *models.EnterpriseBasic
}

GetV5EnterprisesEnterpriseOK describes a response with status code 200, with default header values.

返回格式

func NewGetV5EnterprisesEnterpriseOK

func NewGetV5EnterprisesEnterpriseOK() *GetV5EnterprisesEnterpriseOK

NewGetV5EnterprisesEnterpriseOK creates a GetV5EnterprisesEnterpriseOK with default headers values

func (*GetV5EnterprisesEnterpriseOK) Code

Code gets the status code for the get v5 enterprises enterprise o k response

func (*GetV5EnterprisesEnterpriseOK) Error

func (*GetV5EnterprisesEnterpriseOK) GetPayload

func (*GetV5EnterprisesEnterpriseOK) IsClientError

func (o *GetV5EnterprisesEnterpriseOK) IsClientError() bool

IsClientError returns true when this get v5 enterprises enterprise o k response has a 4xx status code

func (*GetV5EnterprisesEnterpriseOK) IsCode

func (o *GetV5EnterprisesEnterpriseOK) IsCode(code int) bool

IsCode returns true when this get v5 enterprises enterprise o k response a status code equal to that given

func (*GetV5EnterprisesEnterpriseOK) IsRedirect

func (o *GetV5EnterprisesEnterpriseOK) IsRedirect() bool

IsRedirect returns true when this get v5 enterprises enterprise o k response has a 3xx status code

func (*GetV5EnterprisesEnterpriseOK) IsServerError

func (o *GetV5EnterprisesEnterpriseOK) IsServerError() bool

IsServerError returns true when this get v5 enterprises enterprise o k response has a 5xx status code

func (*GetV5EnterprisesEnterpriseOK) IsSuccess

func (o *GetV5EnterprisesEnterpriseOK) IsSuccess() bool

IsSuccess returns true when this get v5 enterprises enterprise o k response has a 2xx status code

func (*GetV5EnterprisesEnterpriseOK) String

type GetV5EnterprisesEnterpriseParams

type GetV5EnterprisesEnterpriseParams struct {

	/* AccessToken.

	   用户授权码
	*/
	AccessToken *string

	/* Enterprise.

	   企业的路径(path/login)
	*/
	Enterprise string

	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetV5EnterprisesEnterpriseParams contains all the parameters to send to the API endpoint

for the get v5 enterprises enterprise operation.

Typically these are written to a http.Request.

func NewGetV5EnterprisesEnterpriseParams

func NewGetV5EnterprisesEnterpriseParams() *GetV5EnterprisesEnterpriseParams

NewGetV5EnterprisesEnterpriseParams creates a new GetV5EnterprisesEnterpriseParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetV5EnterprisesEnterpriseParamsWithContext deprecated

func NewGetV5EnterprisesEnterpriseParamsWithContext(ctx context.Context) *GetV5EnterprisesEnterpriseParams

NewGetV5EnterprisesEnterpriseParamsWithContext creates a new GetV5EnterprisesEnterpriseParams object with the ability to set a context for a request.

Deprecated: use the operation call with context to pass the context instead of GetV5EnterprisesEnterpriseParams.

func NewGetV5EnterprisesEnterpriseParamsWithHTTPClient

func NewGetV5EnterprisesEnterpriseParamsWithHTTPClient(client *http.Client) *GetV5EnterprisesEnterpriseParams

NewGetV5EnterprisesEnterpriseParamsWithHTTPClient creates a new GetV5EnterprisesEnterpriseParams object with the ability to set a custom HTTPClient for a request.

func NewGetV5EnterprisesEnterpriseParamsWithTimeout

func NewGetV5EnterprisesEnterpriseParamsWithTimeout(timeout time.Duration) *GetV5EnterprisesEnterpriseParams

NewGetV5EnterprisesEnterpriseParamsWithTimeout creates a new GetV5EnterprisesEnterpriseParams object with the ability to set a timeout on a request.

func (*GetV5EnterprisesEnterpriseParams) SetAccessToken

func (o *GetV5EnterprisesEnterpriseParams) SetAccessToken(accessToken *string)

SetAccessToken adds the accessToken to the get v5 enterprises enterprise params.

func (*GetV5EnterprisesEnterpriseParams) SetContext deprecated

SetContext adds the context to the get v5 enterprises enterprise params.

Deprecated: use the operation call with context to pass the context instead of GetV5EnterprisesEnterpriseParams.

func (*GetV5EnterprisesEnterpriseParams) SetDefaults

func (o *GetV5EnterprisesEnterpriseParams) SetDefaults()

SetDefaults hydrates default values in the get v5 enterprises enterprise params (not the query body).

All values with no default are reset to their zero value.

func (*GetV5EnterprisesEnterpriseParams) SetEnterprise

func (o *GetV5EnterprisesEnterpriseParams) SetEnterprise(enterprise string)

SetEnterprise adds the enterprise to the get v5 enterprises enterprise params.

func (*GetV5EnterprisesEnterpriseParams) SetHTTPClient

func (o *GetV5EnterprisesEnterpriseParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get v5 enterprises enterprise params.

func (*GetV5EnterprisesEnterpriseParams) SetTimeout

func (o *GetV5EnterprisesEnterpriseParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get v5 enterprises enterprise params.

func (*GetV5EnterprisesEnterpriseParams) WithAccessToken

WithAccessToken adds the accessToken to the get v5 enterprises enterprise params.

func (*GetV5EnterprisesEnterpriseParams) WithContext deprecated

WithContext adds the context to the get v5 enterprises enterprise params.

Deprecated: use the operation call with context to pass the context instead of GetV5EnterprisesEnterpriseParams.

func (*GetV5EnterprisesEnterpriseParams) WithDefaults

WithDefaults hydrates default values in the get v5 enterprises enterprise params (not the query body).

All values with no default are reset to their zero value.

func (*GetV5EnterprisesEnterpriseParams) WithEnterprise

WithEnterprise adds the enterprise to the get v5 enterprises enterprise params.

func (*GetV5EnterprisesEnterpriseParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get v5 enterprises enterprise params.

func (*GetV5EnterprisesEnterpriseParams) WithTimeout

WithTimeout adds the timeout to the get v5 enterprises enterprise params.

func (*GetV5EnterprisesEnterpriseParams) WriteToRequest

WriteToRequest writes these params to a runtime.ClientRequest.

type GetV5EnterprisesEnterpriseReader

type GetV5EnterprisesEnterpriseReader struct {
	// contains filtered or unexported fields
}

GetV5EnterprisesEnterpriseReader is a Reader for the GetV5EnterprisesEnterprise structure.

func (*GetV5EnterprisesEnterpriseReader) ReadResponse

func (o *GetV5EnterprisesEnterpriseReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)

ReadResponse reads a server response into the received o.

type GetV5EnterprisesEnterpriseUsersUsernameWeekReportsOK

type GetV5EnterprisesEnterpriseUsersUsernameWeekReportsOK struct {
	Payload []*models.WeekReport
}

GetV5EnterprisesEnterpriseUsersUsernameWeekReportsOK describes a response with status code 200, with default header values.

返回格式

func NewGetV5EnterprisesEnterpriseUsersUsernameWeekReportsOK

func NewGetV5EnterprisesEnterpriseUsersUsernameWeekReportsOK() *GetV5EnterprisesEnterpriseUsersUsernameWeekReportsOK

NewGetV5EnterprisesEnterpriseUsersUsernameWeekReportsOK creates a GetV5EnterprisesEnterpriseUsersUsernameWeekReportsOK with default headers values

func (*GetV5EnterprisesEnterpriseUsersUsernameWeekReportsOK) Code

Code gets the status code for the get v5 enterprises enterprise users username week reports o k response

func (*GetV5EnterprisesEnterpriseUsersUsernameWeekReportsOK) Error

func (*GetV5EnterprisesEnterpriseUsersUsernameWeekReportsOK) GetPayload

func (*GetV5EnterprisesEnterpriseUsersUsernameWeekReportsOK) IsClientError

IsClientError returns true when this get v5 enterprises enterprise users username week reports o k response has a 4xx status code

func (*GetV5EnterprisesEnterpriseUsersUsernameWeekReportsOK) IsCode

IsCode returns true when this get v5 enterprises enterprise users username week reports o k response a status code equal to that given

func (*GetV5EnterprisesEnterpriseUsersUsernameWeekReportsOK) IsRedirect

IsRedirect returns true when this get v5 enterprises enterprise users username week reports o k response has a 3xx status code

func (*GetV5EnterprisesEnterpriseUsersUsernameWeekReportsOK) IsServerError

IsServerError returns true when this get v5 enterprises enterprise users username week reports o k response has a 5xx status code

func (*GetV5EnterprisesEnterpriseUsersUsernameWeekReportsOK) IsSuccess

IsSuccess returns true when this get v5 enterprises enterprise users username week reports o k response has a 2xx status code

func (*GetV5EnterprisesEnterpriseUsersUsernameWeekReportsOK) String

type GetV5EnterprisesEnterpriseUsersUsernameWeekReportsParams

type GetV5EnterprisesEnterpriseUsersUsernameWeekReportsParams struct {

	/* AccessToken.

	   用户授权码
	*/
	AccessToken *string

	/* Enterprise.

	   企业的路径(path/login)
	*/
	Enterprise string

	/* Page.

	   当前的页码

	   Format: int32
	   Default: 1
	*/
	Page *int32

	/* PerPage.

	   每页的数量,最大为 100

	   Format: int32
	   Default: 20
	*/
	PerPage *int32

	/* Username.

	   用户名(username/login)
	*/
	Username string

	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetV5EnterprisesEnterpriseUsersUsernameWeekReportsParams contains all the parameters to send to the API endpoint

for the get v5 enterprises enterprise users username week reports operation.

Typically these are written to a http.Request.

func NewGetV5EnterprisesEnterpriseUsersUsernameWeekReportsParams

func NewGetV5EnterprisesEnterpriseUsersUsernameWeekReportsParams() *GetV5EnterprisesEnterpriseUsersUsernameWeekReportsParams

NewGetV5EnterprisesEnterpriseUsersUsernameWeekReportsParams creates a new GetV5EnterprisesEnterpriseUsersUsernameWeekReportsParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetV5EnterprisesEnterpriseUsersUsernameWeekReportsParamsWithContext deprecated

func NewGetV5EnterprisesEnterpriseUsersUsernameWeekReportsParamsWithContext(ctx context.Context) *GetV5EnterprisesEnterpriseUsersUsernameWeekReportsParams

NewGetV5EnterprisesEnterpriseUsersUsernameWeekReportsParamsWithContext creates a new GetV5EnterprisesEnterpriseUsersUsernameWeekReportsParams object with the ability to set a context for a request.

Deprecated: use the operation call with context to pass the context instead of GetV5EnterprisesEnterpriseUsersUsernameWeekReportsParams.

func NewGetV5EnterprisesEnterpriseUsersUsernameWeekReportsParamsWithHTTPClient

func NewGetV5EnterprisesEnterpriseUsersUsernameWeekReportsParamsWithHTTPClient(client *http.Client) *GetV5EnterprisesEnterpriseUsersUsernameWeekReportsParams

NewGetV5EnterprisesEnterpriseUsersUsernameWeekReportsParamsWithHTTPClient creates a new GetV5EnterprisesEnterpriseUsersUsernameWeekReportsParams object with the ability to set a custom HTTPClient for a request.

func NewGetV5EnterprisesEnterpriseUsersUsernameWeekReportsParamsWithTimeout

func NewGetV5EnterprisesEnterpriseUsersUsernameWeekReportsParamsWithTimeout(timeout time.Duration) *GetV5EnterprisesEnterpriseUsersUsernameWeekReportsParams

NewGetV5EnterprisesEnterpriseUsersUsernameWeekReportsParamsWithTimeout creates a new GetV5EnterprisesEnterpriseUsersUsernameWeekReportsParams object with the ability to set a timeout on a request.

func (*GetV5EnterprisesEnterpriseUsersUsernameWeekReportsParams) SetAccessToken

func (o *GetV5EnterprisesEnterpriseUsersUsernameWeekReportsParams) SetAccessToken(accessToken *string)

SetAccessToken adds the accessToken to the get v5 enterprises enterprise users username week reports params.

func (*GetV5EnterprisesEnterpriseUsersUsernameWeekReportsParams) SetContext deprecated

SetContext adds the context to the get v5 enterprises enterprise users username week reports params.

Deprecated: use the operation call with context to pass the context instead of GetV5EnterprisesEnterpriseUsersUsernameWeekReportsParams.

func (*GetV5EnterprisesEnterpriseUsersUsernameWeekReportsParams) SetDefaults

SetDefaults hydrates default values in the get v5 enterprises enterprise users username week reports params (not the query body).

All values with no default are reset to their zero value.

func (*GetV5EnterprisesEnterpriseUsersUsernameWeekReportsParams) SetEnterprise

SetEnterprise adds the enterprise to the get v5 enterprises enterprise users username week reports params.

func (*GetV5EnterprisesEnterpriseUsersUsernameWeekReportsParams) SetHTTPClient

SetHTTPClient adds the HTTPClient to the get v5 enterprises enterprise users username week reports params.

func (*GetV5EnterprisesEnterpriseUsersUsernameWeekReportsParams) SetPage

SetPage adds the page to the get v5 enterprises enterprise users username week reports params.

func (*GetV5EnterprisesEnterpriseUsersUsernameWeekReportsParams) SetPerPage

SetPerPage adds the perPage to the get v5 enterprises enterprise users username week reports params.

func (*GetV5EnterprisesEnterpriseUsersUsernameWeekReportsParams) SetTimeout

SetTimeout adds the timeout to the get v5 enterprises enterprise users username week reports params.

func (*GetV5EnterprisesEnterpriseUsersUsernameWeekReportsParams) SetUsername

SetUsername adds the username to the get v5 enterprises enterprise users username week reports params.

func (*GetV5EnterprisesEnterpriseUsersUsernameWeekReportsParams) WithAccessToken

WithAccessToken adds the accessToken to the get v5 enterprises enterprise users username week reports params.

func (*GetV5EnterprisesEnterpriseUsersUsernameWeekReportsParams) WithContext deprecated

WithContext adds the context to the get v5 enterprises enterprise users username week reports params.

Deprecated: use the operation call with context to pass the context instead of GetV5EnterprisesEnterpriseUsersUsernameWeekReportsParams.

func (*GetV5EnterprisesEnterpriseUsersUsernameWeekReportsParams) WithDefaults

WithDefaults hydrates default values in the get v5 enterprises enterprise users username week reports params (not the query body).

All values with no default are reset to their zero value.

func (*GetV5EnterprisesEnterpriseUsersUsernameWeekReportsParams) WithEnterprise

WithEnterprise adds the enterprise to the get v5 enterprises enterprise users username week reports params.

func (*GetV5EnterprisesEnterpriseUsersUsernameWeekReportsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get v5 enterprises enterprise users username week reports params.

func (*GetV5EnterprisesEnterpriseUsersUsernameWeekReportsParams) WithPage

WithPage adds the page to the get v5 enterprises enterprise users username week reports params.

func (*GetV5EnterprisesEnterpriseUsersUsernameWeekReportsParams) WithPerPage

WithPerPage adds the perPage to the get v5 enterprises enterprise users username week reports params.

func (*GetV5EnterprisesEnterpriseUsersUsernameWeekReportsParams) WithTimeout

WithTimeout adds the timeout to the get v5 enterprises enterprise users username week reports params.

func (*GetV5EnterprisesEnterpriseUsersUsernameWeekReportsParams) WithUsername

WithUsername adds the username to the get v5 enterprises enterprise users username week reports params.

func (*GetV5EnterprisesEnterpriseUsersUsernameWeekReportsParams) WriteToRequest

WriteToRequest writes these params to a runtime.ClientRequest.

type GetV5EnterprisesEnterpriseUsersUsernameWeekReportsReader

type GetV5EnterprisesEnterpriseUsersUsernameWeekReportsReader struct {
	// contains filtered or unexported fields
}

GetV5EnterprisesEnterpriseUsersUsernameWeekReportsReader is a Reader for the GetV5EnterprisesEnterpriseUsersUsernameWeekReports structure.

func (*GetV5EnterprisesEnterpriseUsersUsernameWeekReportsReader) ReadResponse

ReadResponse reads a server response into the received o.

type GetV5EnterprisesEnterpriseWeekReportsIDCommentsOK

type GetV5EnterprisesEnterpriseWeekReportsIDCommentsOK struct {
	Payload []*models.Note
}

GetV5EnterprisesEnterpriseWeekReportsIDCommentsOK describes a response with status code 200, with default header values.

返回格式

func NewGetV5EnterprisesEnterpriseWeekReportsIDCommentsOK

func NewGetV5EnterprisesEnterpriseWeekReportsIDCommentsOK() *GetV5EnterprisesEnterpriseWeekReportsIDCommentsOK

NewGetV5EnterprisesEnterpriseWeekReportsIDCommentsOK creates a GetV5EnterprisesEnterpriseWeekReportsIDCommentsOK with default headers values

func (*GetV5EnterprisesEnterpriseWeekReportsIDCommentsOK) Code

Code gets the status code for the get v5 enterprises enterprise week reports Id comments o k response

func (*GetV5EnterprisesEnterpriseWeekReportsIDCommentsOK) Error

func (*GetV5EnterprisesEnterpriseWeekReportsIDCommentsOK) GetPayload

func (*GetV5EnterprisesEnterpriseWeekReportsIDCommentsOK) IsClientError

IsClientError returns true when this get v5 enterprises enterprise week reports Id comments o k response has a 4xx status code

func (*GetV5EnterprisesEnterpriseWeekReportsIDCommentsOK) IsCode

IsCode returns true when this get v5 enterprises enterprise week reports Id comments o k response a status code equal to that given

func (*GetV5EnterprisesEnterpriseWeekReportsIDCommentsOK) IsRedirect

IsRedirect returns true when this get v5 enterprises enterprise week reports Id comments o k response has a 3xx status code

func (*GetV5EnterprisesEnterpriseWeekReportsIDCommentsOK) IsServerError

IsServerError returns true when this get v5 enterprises enterprise week reports Id comments o k response has a 5xx status code

func (*GetV5EnterprisesEnterpriseWeekReportsIDCommentsOK) IsSuccess

IsSuccess returns true when this get v5 enterprises enterprise week reports Id comments o k response has a 2xx status code

func (*GetV5EnterprisesEnterpriseWeekReportsIDCommentsOK) String

type GetV5EnterprisesEnterpriseWeekReportsIDCommentsParams

type GetV5EnterprisesEnterpriseWeekReportsIDCommentsParams struct {

	/* AccessToken.

	   用户授权码
	*/
	AccessToken *string

	/* Enterprise.

	   企业的路径(path/login)
	*/
	Enterprise string

	/* ID.

	   周报ID

	   Format: int32
	*/
	ID int32

	/* Page.

	   当前的页码

	   Format: int32
	   Default: 1
	*/
	Page *int32

	/* PerPage.

	   每页的数量,最大为 100

	   Format: int32
	   Default: 20
	*/
	PerPage *int32

	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetV5EnterprisesEnterpriseWeekReportsIDCommentsParams contains all the parameters to send to the API endpoint

for the get v5 enterprises enterprise week reports Id comments operation.

Typically these are written to a http.Request.

func NewGetV5EnterprisesEnterpriseWeekReportsIDCommentsParams

func NewGetV5EnterprisesEnterpriseWeekReportsIDCommentsParams() *GetV5EnterprisesEnterpriseWeekReportsIDCommentsParams

NewGetV5EnterprisesEnterpriseWeekReportsIDCommentsParams creates a new GetV5EnterprisesEnterpriseWeekReportsIDCommentsParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetV5EnterprisesEnterpriseWeekReportsIDCommentsParamsWithContext deprecated

func NewGetV5EnterprisesEnterpriseWeekReportsIDCommentsParamsWithContext(ctx context.Context) *GetV5EnterprisesEnterpriseWeekReportsIDCommentsParams

NewGetV5EnterprisesEnterpriseWeekReportsIDCommentsParamsWithContext creates a new GetV5EnterprisesEnterpriseWeekReportsIDCommentsParams object with the ability to set a context for a request.

Deprecated: use the operation call with context to pass the context instead of GetV5EnterprisesEnterpriseWeekReportsIDCommentsParams.

func NewGetV5EnterprisesEnterpriseWeekReportsIDCommentsParamsWithHTTPClient

func NewGetV5EnterprisesEnterpriseWeekReportsIDCommentsParamsWithHTTPClient(client *http.Client) *GetV5EnterprisesEnterpriseWeekReportsIDCommentsParams

NewGetV5EnterprisesEnterpriseWeekReportsIDCommentsParamsWithHTTPClient creates a new GetV5EnterprisesEnterpriseWeekReportsIDCommentsParams object with the ability to set a custom HTTPClient for a request.

func NewGetV5EnterprisesEnterpriseWeekReportsIDCommentsParamsWithTimeout

func NewGetV5EnterprisesEnterpriseWeekReportsIDCommentsParamsWithTimeout(timeout time.Duration) *GetV5EnterprisesEnterpriseWeekReportsIDCommentsParams

NewGetV5EnterprisesEnterpriseWeekReportsIDCommentsParamsWithTimeout creates a new GetV5EnterprisesEnterpriseWeekReportsIDCommentsParams object with the ability to set a timeout on a request.

func (*GetV5EnterprisesEnterpriseWeekReportsIDCommentsParams) SetAccessToken

func (o *GetV5EnterprisesEnterpriseWeekReportsIDCommentsParams) SetAccessToken(accessToken *string)

SetAccessToken adds the accessToken to the get v5 enterprises enterprise week reports Id comments params.

func (*GetV5EnterprisesEnterpriseWeekReportsIDCommentsParams) SetContext deprecated

SetContext adds the context to the get v5 enterprises enterprise week reports Id comments params.

Deprecated: use the operation call with context to pass the context instead of GetV5EnterprisesEnterpriseWeekReportsIDCommentsParams.

func (*GetV5EnterprisesEnterpriseWeekReportsIDCommentsParams) SetDefaults

SetDefaults hydrates default values in the get v5 enterprises enterprise week reports Id comments params (not the query body).

All values with no default are reset to their zero value.

func (*GetV5EnterprisesEnterpriseWeekReportsIDCommentsParams) SetEnterprise

SetEnterprise adds the enterprise to the get v5 enterprises enterprise week reports Id comments params.

func (*GetV5EnterprisesEnterpriseWeekReportsIDCommentsParams) SetHTTPClient

SetHTTPClient adds the HTTPClient to the get v5 enterprises enterprise week reports Id comments params.

func (*GetV5EnterprisesEnterpriseWeekReportsIDCommentsParams) SetID

SetID adds the id to the get v5 enterprises enterprise week reports Id comments params.

func (*GetV5EnterprisesEnterpriseWeekReportsIDCommentsParams) SetPage

SetPage adds the page to the get v5 enterprises enterprise week reports Id comments params.

func (*GetV5EnterprisesEnterpriseWeekReportsIDCommentsParams) SetPerPage

SetPerPage adds the perPage to the get v5 enterprises enterprise week reports Id comments params.

func (*GetV5EnterprisesEnterpriseWeekReportsIDCommentsParams) SetTimeout

SetTimeout adds the timeout to the get v5 enterprises enterprise week reports Id comments params.

func (*GetV5EnterprisesEnterpriseWeekReportsIDCommentsParams) WithAccessToken

WithAccessToken adds the accessToken to the get v5 enterprises enterprise week reports Id comments params.

func (*GetV5EnterprisesEnterpriseWeekReportsIDCommentsParams) WithContext deprecated

WithContext adds the context to the get v5 enterprises enterprise week reports Id comments params.

Deprecated: use the operation call with context to pass the context instead of GetV5EnterprisesEnterpriseWeekReportsIDCommentsParams.

func (*GetV5EnterprisesEnterpriseWeekReportsIDCommentsParams) WithDefaults

WithDefaults hydrates default values in the get v5 enterprises enterprise week reports Id comments params (not the query body).

All values with no default are reset to their zero value.

func (*GetV5EnterprisesEnterpriseWeekReportsIDCommentsParams) WithEnterprise

WithEnterprise adds the enterprise to the get v5 enterprises enterprise week reports Id comments params.

func (*GetV5EnterprisesEnterpriseWeekReportsIDCommentsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get v5 enterprises enterprise week reports Id comments params.

func (*GetV5EnterprisesEnterpriseWeekReportsIDCommentsParams) WithID

WithID adds the id to the get v5 enterprises enterprise week reports Id comments params.

func (*GetV5EnterprisesEnterpriseWeekReportsIDCommentsParams) WithPage

WithPage adds the page to the get v5 enterprises enterprise week reports Id comments params.

func (*GetV5EnterprisesEnterpriseWeekReportsIDCommentsParams) WithPerPage

WithPerPage adds the perPage to the get v5 enterprises enterprise week reports Id comments params.

func (*GetV5EnterprisesEnterpriseWeekReportsIDCommentsParams) WithTimeout

WithTimeout adds the timeout to the get v5 enterprises enterprise week reports Id comments params.

func (*GetV5EnterprisesEnterpriseWeekReportsIDCommentsParams) WriteToRequest

WriteToRequest writes these params to a runtime.ClientRequest.

type GetV5EnterprisesEnterpriseWeekReportsIDCommentsReader

type GetV5EnterprisesEnterpriseWeekReportsIDCommentsReader struct {
	// contains filtered or unexported fields
}

GetV5EnterprisesEnterpriseWeekReportsIDCommentsReader is a Reader for the GetV5EnterprisesEnterpriseWeekReportsIDComments structure.

func (*GetV5EnterprisesEnterpriseWeekReportsIDCommentsReader) ReadResponse

ReadResponse reads a server response into the received o.

type GetV5EnterprisesEnterpriseWeekReportsIDOK

type GetV5EnterprisesEnterpriseWeekReportsIDOK struct {
	Payload *models.WeekReport
}

GetV5EnterprisesEnterpriseWeekReportsIDOK describes a response with status code 200, with default header values.

返回格式

func NewGetV5EnterprisesEnterpriseWeekReportsIDOK

func NewGetV5EnterprisesEnterpriseWeekReportsIDOK() *GetV5EnterprisesEnterpriseWeekReportsIDOK

NewGetV5EnterprisesEnterpriseWeekReportsIDOK creates a GetV5EnterprisesEnterpriseWeekReportsIDOK with default headers values

func (*GetV5EnterprisesEnterpriseWeekReportsIDOK) Code

Code gets the status code for the get v5 enterprises enterprise week reports Id o k response

func (*GetV5EnterprisesEnterpriseWeekReportsIDOK) Error

func (*GetV5EnterprisesEnterpriseWeekReportsIDOK) GetPayload

func (*GetV5EnterprisesEnterpriseWeekReportsIDOK) IsClientError

IsClientError returns true when this get v5 enterprises enterprise week reports Id o k response has a 4xx status code

func (*GetV5EnterprisesEnterpriseWeekReportsIDOK) IsCode

IsCode returns true when this get v5 enterprises enterprise week reports Id o k response a status code equal to that given

func (*GetV5EnterprisesEnterpriseWeekReportsIDOK) IsRedirect

IsRedirect returns true when this get v5 enterprises enterprise week reports Id o k response has a 3xx status code

func (*GetV5EnterprisesEnterpriseWeekReportsIDOK) IsServerError

IsServerError returns true when this get v5 enterprises enterprise week reports Id o k response has a 5xx status code

func (*GetV5EnterprisesEnterpriseWeekReportsIDOK) IsSuccess

IsSuccess returns true when this get v5 enterprises enterprise week reports Id o k response has a 2xx status code

func (*GetV5EnterprisesEnterpriseWeekReportsIDOK) String

type GetV5EnterprisesEnterpriseWeekReportsIDParams

type GetV5EnterprisesEnterpriseWeekReportsIDParams struct {

	/* AccessToken.

	   用户授权码
	*/
	AccessToken *string

	/* Enterprise.

	   企业的路径(path/login)
	*/
	Enterprise string

	/* ID.

	   周报ID

	   Format: int32
	*/
	ID int32

	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetV5EnterprisesEnterpriseWeekReportsIDParams contains all the parameters to send to the API endpoint

for the get v5 enterprises enterprise week reports Id operation.

Typically these are written to a http.Request.

func NewGetV5EnterprisesEnterpriseWeekReportsIDParams

func NewGetV5EnterprisesEnterpriseWeekReportsIDParams() *GetV5EnterprisesEnterpriseWeekReportsIDParams

NewGetV5EnterprisesEnterpriseWeekReportsIDParams creates a new GetV5EnterprisesEnterpriseWeekReportsIDParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetV5EnterprisesEnterpriseWeekReportsIDParamsWithContext deprecated

func NewGetV5EnterprisesEnterpriseWeekReportsIDParamsWithContext(ctx context.Context) *GetV5EnterprisesEnterpriseWeekReportsIDParams

NewGetV5EnterprisesEnterpriseWeekReportsIDParamsWithContext creates a new GetV5EnterprisesEnterpriseWeekReportsIDParams object with the ability to set a context for a request.

Deprecated: use the operation call with context to pass the context instead of GetV5EnterprisesEnterpriseWeekReportsIDParams.

func NewGetV5EnterprisesEnterpriseWeekReportsIDParamsWithHTTPClient

func NewGetV5EnterprisesEnterpriseWeekReportsIDParamsWithHTTPClient(client *http.Client) *GetV5EnterprisesEnterpriseWeekReportsIDParams

NewGetV5EnterprisesEnterpriseWeekReportsIDParamsWithHTTPClient creates a new GetV5EnterprisesEnterpriseWeekReportsIDParams object with the ability to set a custom HTTPClient for a request.

func NewGetV5EnterprisesEnterpriseWeekReportsIDParamsWithTimeout

func NewGetV5EnterprisesEnterpriseWeekReportsIDParamsWithTimeout(timeout time.Duration) *GetV5EnterprisesEnterpriseWeekReportsIDParams

NewGetV5EnterprisesEnterpriseWeekReportsIDParamsWithTimeout creates a new GetV5EnterprisesEnterpriseWeekReportsIDParams object with the ability to set a timeout on a request.

func (*GetV5EnterprisesEnterpriseWeekReportsIDParams) SetAccessToken

func (o *GetV5EnterprisesEnterpriseWeekReportsIDParams) SetAccessToken(accessToken *string)

SetAccessToken adds the accessToken to the get v5 enterprises enterprise week reports Id params.

func (*GetV5EnterprisesEnterpriseWeekReportsIDParams) SetContext deprecated

SetContext adds the context to the get v5 enterprises enterprise week reports Id params.

Deprecated: use the operation call with context to pass the context instead of GetV5EnterprisesEnterpriseWeekReportsIDParams.

func (*GetV5EnterprisesEnterpriseWeekReportsIDParams) SetDefaults

SetDefaults hydrates default values in the get v5 enterprises enterprise week reports Id params (not the query body).

All values with no default are reset to their zero value.

func (*GetV5EnterprisesEnterpriseWeekReportsIDParams) SetEnterprise

func (o *GetV5EnterprisesEnterpriseWeekReportsIDParams) SetEnterprise(enterprise string)

SetEnterprise adds the enterprise to the get v5 enterprises enterprise week reports Id params.

func (*GetV5EnterprisesEnterpriseWeekReportsIDParams) SetHTTPClient

func (o *GetV5EnterprisesEnterpriseWeekReportsIDParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get v5 enterprises enterprise week reports Id params.

func (*GetV5EnterprisesEnterpriseWeekReportsIDParams) SetID

SetID adds the id to the get v5 enterprises enterprise week reports Id params.

func (*GetV5EnterprisesEnterpriseWeekReportsIDParams) SetTimeout

SetTimeout adds the timeout to the get v5 enterprises enterprise week reports Id params.

func (*GetV5EnterprisesEnterpriseWeekReportsIDParams) WithAccessToken

WithAccessToken adds the accessToken to the get v5 enterprises enterprise week reports Id params.

func (*GetV5EnterprisesEnterpriseWeekReportsIDParams) WithContext deprecated

WithContext adds the context to the get v5 enterprises enterprise week reports Id params.

Deprecated: use the operation call with context to pass the context instead of GetV5EnterprisesEnterpriseWeekReportsIDParams.

func (*GetV5EnterprisesEnterpriseWeekReportsIDParams) WithDefaults

WithDefaults hydrates default values in the get v5 enterprises enterprise week reports Id params (not the query body).

All values with no default are reset to their zero value.

func (*GetV5EnterprisesEnterpriseWeekReportsIDParams) WithEnterprise

WithEnterprise adds the enterprise to the get v5 enterprises enterprise week reports Id params.

func (*GetV5EnterprisesEnterpriseWeekReportsIDParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get v5 enterprises enterprise week reports Id params.

func (*GetV5EnterprisesEnterpriseWeekReportsIDParams) WithID

WithID adds the id to the get v5 enterprises enterprise week reports Id params.

func (*GetV5EnterprisesEnterpriseWeekReportsIDParams) WithTimeout

WithTimeout adds the timeout to the get v5 enterprises enterprise week reports Id params.

func (*GetV5EnterprisesEnterpriseWeekReportsIDParams) WriteToRequest

WriteToRequest writes these params to a runtime.ClientRequest.

type GetV5EnterprisesEnterpriseWeekReportsIDReader

type GetV5EnterprisesEnterpriseWeekReportsIDReader struct {
	// contains filtered or unexported fields
}

GetV5EnterprisesEnterpriseWeekReportsIDReader is a Reader for the GetV5EnterprisesEnterpriseWeekReportsID structure.

func (*GetV5EnterprisesEnterpriseWeekReportsIDReader) ReadResponse

ReadResponse reads a server response into the received o.

type GetV5EnterprisesEnterpriseWeekReportsOK

type GetV5EnterprisesEnterpriseWeekReportsOK struct {
	Payload []*models.WeekReport
}

GetV5EnterprisesEnterpriseWeekReportsOK describes a response with status code 200, with default header values.

返回格式

func NewGetV5EnterprisesEnterpriseWeekReportsOK

func NewGetV5EnterprisesEnterpriseWeekReportsOK() *GetV5EnterprisesEnterpriseWeekReportsOK

NewGetV5EnterprisesEnterpriseWeekReportsOK creates a GetV5EnterprisesEnterpriseWeekReportsOK with default headers values

func (*GetV5EnterprisesEnterpriseWeekReportsOK) Code

Code gets the status code for the get v5 enterprises enterprise week reports o k response

func (*GetV5EnterprisesEnterpriseWeekReportsOK) Error

func (*GetV5EnterprisesEnterpriseWeekReportsOK) GetPayload

func (*GetV5EnterprisesEnterpriseWeekReportsOK) IsClientError

func (o *GetV5EnterprisesEnterpriseWeekReportsOK) IsClientError() bool

IsClientError returns true when this get v5 enterprises enterprise week reports o k response has a 4xx status code

func (*GetV5EnterprisesEnterpriseWeekReportsOK) IsCode

IsCode returns true when this get v5 enterprises enterprise week reports o k response a status code equal to that given

func (*GetV5EnterprisesEnterpriseWeekReportsOK) IsRedirect

IsRedirect returns true when this get v5 enterprises enterprise week reports o k response has a 3xx status code

func (*GetV5EnterprisesEnterpriseWeekReportsOK) IsServerError

func (o *GetV5EnterprisesEnterpriseWeekReportsOK) IsServerError() bool

IsServerError returns true when this get v5 enterprises enterprise week reports o k response has a 5xx status code

func (*GetV5EnterprisesEnterpriseWeekReportsOK) IsSuccess

IsSuccess returns true when this get v5 enterprises enterprise week reports o k response has a 2xx status code

func (*GetV5EnterprisesEnterpriseWeekReportsOK) String

type GetV5EnterprisesEnterpriseWeekReportsParams

type GetV5EnterprisesEnterpriseWeekReportsParams struct {

	/* AccessToken.

	   用户授权码
	*/
	AccessToken *string

	/* Date.

	   周报日期(格式:2019-03-25)
	*/
	Date *string

	/* Enterprise.

	   企业的路径(path/login)
	*/
	Enterprise string

	/* Page.

	   当前的页码

	   Format: int32
	   Default: 1
	*/
	Page *int32

	/* PerPage.

	   每页的数量,最大为 100

	   Format: int32
	   Default: 20
	*/
	PerPage *int32

	/* Username.

	   用户名(username/login)
	*/
	Username *string

	/* WeekIndex.

	   周报所属周

	   Format: int32
	*/
	WeekIndex *int32

	/* Year.

	   周报所属年

	   Format: int32
	*/
	Year *int32

	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetV5EnterprisesEnterpriseWeekReportsParams contains all the parameters to send to the API endpoint

for the get v5 enterprises enterprise week reports operation.

Typically these are written to a http.Request.

func NewGetV5EnterprisesEnterpriseWeekReportsParams

func NewGetV5EnterprisesEnterpriseWeekReportsParams() *GetV5EnterprisesEnterpriseWeekReportsParams

NewGetV5EnterprisesEnterpriseWeekReportsParams creates a new GetV5EnterprisesEnterpriseWeekReportsParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetV5EnterprisesEnterpriseWeekReportsParamsWithContext deprecated

func NewGetV5EnterprisesEnterpriseWeekReportsParamsWithContext(ctx context.Context) *GetV5EnterprisesEnterpriseWeekReportsParams

NewGetV5EnterprisesEnterpriseWeekReportsParamsWithContext creates a new GetV5EnterprisesEnterpriseWeekReportsParams object with the ability to set a context for a request.

Deprecated: use the operation call with context to pass the context instead of GetV5EnterprisesEnterpriseWeekReportsParams.

func NewGetV5EnterprisesEnterpriseWeekReportsParamsWithHTTPClient

func NewGetV5EnterprisesEnterpriseWeekReportsParamsWithHTTPClient(client *http.Client) *GetV5EnterprisesEnterpriseWeekReportsParams

NewGetV5EnterprisesEnterpriseWeekReportsParamsWithHTTPClient creates a new GetV5EnterprisesEnterpriseWeekReportsParams object with the ability to set a custom HTTPClient for a request.

func NewGetV5EnterprisesEnterpriseWeekReportsParamsWithTimeout

func NewGetV5EnterprisesEnterpriseWeekReportsParamsWithTimeout(timeout time.Duration) *GetV5EnterprisesEnterpriseWeekReportsParams

NewGetV5EnterprisesEnterpriseWeekReportsParamsWithTimeout creates a new GetV5EnterprisesEnterpriseWeekReportsParams object with the ability to set a timeout on a request.

func (*GetV5EnterprisesEnterpriseWeekReportsParams) SetAccessToken

func (o *GetV5EnterprisesEnterpriseWeekReportsParams) SetAccessToken(accessToken *string)

SetAccessToken adds the accessToken to the get v5 enterprises enterprise week reports params.

func (*GetV5EnterprisesEnterpriseWeekReportsParams) SetContext deprecated

SetContext adds the context to the get v5 enterprises enterprise week reports params.

Deprecated: use the operation call with context to pass the context instead of GetV5EnterprisesEnterpriseWeekReportsParams.

func (*GetV5EnterprisesEnterpriseWeekReportsParams) SetDate

SetDate adds the date to the get v5 enterprises enterprise week reports params.

func (*GetV5EnterprisesEnterpriseWeekReportsParams) SetDefaults

SetDefaults hydrates default values in the get v5 enterprises enterprise week reports params (not the query body).

All values with no default are reset to their zero value.

func (*GetV5EnterprisesEnterpriseWeekReportsParams) SetEnterprise

func (o *GetV5EnterprisesEnterpriseWeekReportsParams) SetEnterprise(enterprise string)

SetEnterprise adds the enterprise to the get v5 enterprises enterprise week reports params.

func (*GetV5EnterprisesEnterpriseWeekReportsParams) SetHTTPClient

func (o *GetV5EnterprisesEnterpriseWeekReportsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get v5 enterprises enterprise week reports params.

func (*GetV5EnterprisesEnterpriseWeekReportsParams) SetPage

SetPage adds the page to the get v5 enterprises enterprise week reports params.

func (*GetV5EnterprisesEnterpriseWeekReportsParams) SetPerPage

func (o *GetV5EnterprisesEnterpriseWeekReportsParams) SetPerPage(perPage *int32)

SetPerPage adds the perPage to the get v5 enterprises enterprise week reports params.

func (*GetV5EnterprisesEnterpriseWeekReportsParams) SetTimeout

SetTimeout adds the timeout to the get v5 enterprises enterprise week reports params.

func (*GetV5EnterprisesEnterpriseWeekReportsParams) SetUsername

func (o *GetV5EnterprisesEnterpriseWeekReportsParams) SetUsername(username *string)

SetUsername adds the username to the get v5 enterprises enterprise week reports params.

func (*GetV5EnterprisesEnterpriseWeekReportsParams) SetWeekIndex

func (o *GetV5EnterprisesEnterpriseWeekReportsParams) SetWeekIndex(weekIndex *int32)

SetWeekIndex adds the weekIndex to the get v5 enterprises enterprise week reports params.

func (*GetV5EnterprisesEnterpriseWeekReportsParams) SetYear

SetYear adds the year to the get v5 enterprises enterprise week reports params.

func (*GetV5EnterprisesEnterpriseWeekReportsParams) WithAccessToken

WithAccessToken adds the accessToken to the get v5 enterprises enterprise week reports params.

func (*GetV5EnterprisesEnterpriseWeekReportsParams) WithContext deprecated

WithContext adds the context to the get v5 enterprises enterprise week reports params.

Deprecated: use the operation call with context to pass the context instead of GetV5EnterprisesEnterpriseWeekReportsParams.

func (*GetV5EnterprisesEnterpriseWeekReportsParams) WithDate

WithDate adds the date to the get v5 enterprises enterprise week reports params.

func (*GetV5EnterprisesEnterpriseWeekReportsParams) WithDefaults

WithDefaults hydrates default values in the get v5 enterprises enterprise week reports params (not the query body).

All values with no default are reset to their zero value.

func (*GetV5EnterprisesEnterpriseWeekReportsParams) WithEnterprise

WithEnterprise adds the enterprise to the get v5 enterprises enterprise week reports params.

func (*GetV5EnterprisesEnterpriseWeekReportsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get v5 enterprises enterprise week reports params.

func (*GetV5EnterprisesEnterpriseWeekReportsParams) WithPage

WithPage adds the page to the get v5 enterprises enterprise week reports params.

func (*GetV5EnterprisesEnterpriseWeekReportsParams) WithPerPage

WithPerPage adds the perPage to the get v5 enterprises enterprise week reports params.

func (*GetV5EnterprisesEnterpriseWeekReportsParams) WithTimeout

WithTimeout adds the timeout to the get v5 enterprises enterprise week reports params.

func (*GetV5EnterprisesEnterpriseWeekReportsParams) WithUsername

WithUsername adds the username to the get v5 enterprises enterprise week reports params.

func (*GetV5EnterprisesEnterpriseWeekReportsParams) WithWeekIndex

WithWeekIndex adds the weekIndex to the get v5 enterprises enterprise week reports params.

func (*GetV5EnterprisesEnterpriseWeekReportsParams) WithYear

WithYear adds the year to the get v5 enterprises enterprise week reports params.

func (*GetV5EnterprisesEnterpriseWeekReportsParams) WriteToRequest

WriteToRequest writes these params to a runtime.ClientRequest.

type GetV5EnterprisesEnterpriseWeekReportsReader

type GetV5EnterprisesEnterpriseWeekReportsReader struct {
	// contains filtered or unexported fields
}

GetV5EnterprisesEnterpriseWeekReportsReader is a Reader for the GetV5EnterprisesEnterpriseWeekReports structure.

func (*GetV5EnterprisesEnterpriseWeekReportsReader) ReadResponse

ReadResponse reads a server response into the received o.

type GetV5UserEnterprisesOK

type GetV5UserEnterprisesOK struct {
	Payload []*models.EnterpriseBasic
}

GetV5UserEnterprisesOK describes a response with status code 200, with default header values.

返回格式

func NewGetV5UserEnterprisesOK

func NewGetV5UserEnterprisesOK() *GetV5UserEnterprisesOK

NewGetV5UserEnterprisesOK creates a GetV5UserEnterprisesOK with default headers values

func (*GetV5UserEnterprisesOK) Code

func (o *GetV5UserEnterprisesOK) Code() int

Code gets the status code for the get v5 user enterprises o k response

func (*GetV5UserEnterprisesOK) Error

func (o *GetV5UserEnterprisesOK) Error() string

func (*GetV5UserEnterprisesOK) GetPayload

func (o *GetV5UserEnterprisesOK) GetPayload() []*models.EnterpriseBasic

func (*GetV5UserEnterprisesOK) IsClientError

func (o *GetV5UserEnterprisesOK) IsClientError() bool

IsClientError returns true when this get v5 user enterprises o k response has a 4xx status code

func (*GetV5UserEnterprisesOK) IsCode

func (o *GetV5UserEnterprisesOK) IsCode(code int) bool

IsCode returns true when this get v5 user enterprises o k response a status code equal to that given

func (*GetV5UserEnterprisesOK) IsRedirect

func (o *GetV5UserEnterprisesOK) IsRedirect() bool

IsRedirect returns true when this get v5 user enterprises o k response has a 3xx status code

func (*GetV5UserEnterprisesOK) IsServerError

func (o *GetV5UserEnterprisesOK) IsServerError() bool

IsServerError returns true when this get v5 user enterprises o k response has a 5xx status code

func (*GetV5UserEnterprisesOK) IsSuccess

func (o *GetV5UserEnterprisesOK) IsSuccess() bool

IsSuccess returns true when this get v5 user enterprises o k response has a 2xx status code

func (*GetV5UserEnterprisesOK) String

func (o *GetV5UserEnterprisesOK) String() string

type GetV5UserEnterprisesParams

type GetV5UserEnterprisesParams struct {

	/* AccessToken.

	   用户授权码
	*/
	AccessToken *string

	/* Admin.

	   只列出授权用户管理的企业

	   Default: true
	*/
	Admin *bool

	/* Page.

	   当前的页码

	   Format: int32
	   Default: 1
	*/
	Page *int32

	/* PerPage.

	   每页的数量,最大为 100

	   Format: int32
	   Default: 20
	*/
	PerPage *int32

	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetV5UserEnterprisesParams contains all the parameters to send to the API endpoint

for the get v5 user enterprises operation.

Typically these are written to a http.Request.

func NewGetV5UserEnterprisesParams

func NewGetV5UserEnterprisesParams() *GetV5UserEnterprisesParams

NewGetV5UserEnterprisesParams creates a new GetV5UserEnterprisesParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetV5UserEnterprisesParamsWithContext deprecated

func NewGetV5UserEnterprisesParamsWithContext(ctx context.Context) *GetV5UserEnterprisesParams

NewGetV5UserEnterprisesParamsWithContext creates a new GetV5UserEnterprisesParams object with the ability to set a context for a request.

Deprecated: use the operation call with context to pass the context instead of GetV5UserEnterprisesParams.

func NewGetV5UserEnterprisesParamsWithHTTPClient

func NewGetV5UserEnterprisesParamsWithHTTPClient(client *http.Client) *GetV5UserEnterprisesParams

NewGetV5UserEnterprisesParamsWithHTTPClient creates a new GetV5UserEnterprisesParams object with the ability to set a custom HTTPClient for a request.

func NewGetV5UserEnterprisesParamsWithTimeout

func NewGetV5UserEnterprisesParamsWithTimeout(timeout time.Duration) *GetV5UserEnterprisesParams

NewGetV5UserEnterprisesParamsWithTimeout creates a new GetV5UserEnterprisesParams object with the ability to set a timeout on a request.

func (*GetV5UserEnterprisesParams) SetAccessToken

func (o *GetV5UserEnterprisesParams) SetAccessToken(accessToken *string)

SetAccessToken adds the accessToken to the get v5 user enterprises params.

func (*GetV5UserEnterprisesParams) SetAdmin

func (o *GetV5UserEnterprisesParams) SetAdmin(admin *bool)

SetAdmin adds the admin to the get v5 user enterprises params.

func (*GetV5UserEnterprisesParams) SetContext deprecated

func (o *GetV5UserEnterprisesParams) SetContext(ctx context.Context)

SetContext adds the context to the get v5 user enterprises params.

Deprecated: use the operation call with context to pass the context instead of GetV5UserEnterprisesParams.

func (*GetV5UserEnterprisesParams) SetDefaults

func (o *GetV5UserEnterprisesParams) SetDefaults()

SetDefaults hydrates default values in the get v5 user enterprises params (not the query body).

All values with no default are reset to their zero value.

func (*GetV5UserEnterprisesParams) SetHTTPClient

func (o *GetV5UserEnterprisesParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get v5 user enterprises params.

func (*GetV5UserEnterprisesParams) SetPage

func (o *GetV5UserEnterprisesParams) SetPage(page *int32)

SetPage adds the page to the get v5 user enterprises params.

func (*GetV5UserEnterprisesParams) SetPerPage

func (o *GetV5UserEnterprisesParams) SetPerPage(perPage *int32)

SetPerPage adds the perPage to the get v5 user enterprises params.

func (*GetV5UserEnterprisesParams) SetTimeout

func (o *GetV5UserEnterprisesParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get v5 user enterprises params.

func (*GetV5UserEnterprisesParams) WithAccessToken

func (o *GetV5UserEnterprisesParams) WithAccessToken(accessToken *string) *GetV5UserEnterprisesParams

WithAccessToken adds the accessToken to the get v5 user enterprises params.

func (*GetV5UserEnterprisesParams) WithAdmin

WithAdmin adds the admin to the get v5 user enterprises params.

func (*GetV5UserEnterprisesParams) WithContext deprecated

WithContext adds the context to the get v5 user enterprises params.

Deprecated: use the operation call with context to pass the context instead of GetV5UserEnterprisesParams.

func (*GetV5UserEnterprisesParams) WithDefaults

WithDefaults hydrates default values in the get v5 user enterprises params (not the query body).

All values with no default are reset to their zero value.

func (*GetV5UserEnterprisesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get v5 user enterprises params.

func (*GetV5UserEnterprisesParams) WithPage

WithPage adds the page to the get v5 user enterprises params.

func (*GetV5UserEnterprisesParams) WithPerPage

WithPerPage adds the perPage to the get v5 user enterprises params.

func (*GetV5UserEnterprisesParams) WithTimeout

WithTimeout adds the timeout to the get v5 user enterprises params.

func (*GetV5UserEnterprisesParams) WriteToRequest

WriteToRequest writes these params to a runtime.ClientRequest.

type GetV5UserEnterprisesReader

type GetV5UserEnterprisesReader struct {
	// contains filtered or unexported fields
}

GetV5UserEnterprisesReader is a Reader for the GetV5UserEnterprises structure.

func (*GetV5UserEnterprisesReader) ReadResponse

func (o *GetV5UserEnterprisesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)

ReadResponse reads a server response into the received o.

type PatchV5EnterprisesEnterpriseWeekReportIDOK

type PatchV5EnterprisesEnterpriseWeekReportIDOK struct {
	Payload *models.WeekReport
}

PatchV5EnterprisesEnterpriseWeekReportIDOK describes a response with status code 200, with default header values.

返回格式

func NewPatchV5EnterprisesEnterpriseWeekReportIDOK

func NewPatchV5EnterprisesEnterpriseWeekReportIDOK() *PatchV5EnterprisesEnterpriseWeekReportIDOK

NewPatchV5EnterprisesEnterpriseWeekReportIDOK creates a PatchV5EnterprisesEnterpriseWeekReportIDOK with default headers values

func (*PatchV5EnterprisesEnterpriseWeekReportIDOK) Code

Code gets the status code for the patch v5 enterprises enterprise week report Id o k response

func (*PatchV5EnterprisesEnterpriseWeekReportIDOK) Error

func (*PatchV5EnterprisesEnterpriseWeekReportIDOK) GetPayload

func (*PatchV5EnterprisesEnterpriseWeekReportIDOK) IsClientError

IsClientError returns true when this patch v5 enterprises enterprise week report Id o k response has a 4xx status code

func (*PatchV5EnterprisesEnterpriseWeekReportIDOK) IsCode

IsCode returns true when this patch v5 enterprises enterprise week report Id o k response a status code equal to that given

func (*PatchV5EnterprisesEnterpriseWeekReportIDOK) IsRedirect

IsRedirect returns true when this patch v5 enterprises enterprise week report Id o k response has a 3xx status code

func (*PatchV5EnterprisesEnterpriseWeekReportIDOK) IsServerError

IsServerError returns true when this patch v5 enterprises enterprise week report Id o k response has a 5xx status code

func (*PatchV5EnterprisesEnterpriseWeekReportIDOK) IsSuccess

IsSuccess returns true when this patch v5 enterprises enterprise week report Id o k response has a 2xx status code

func (*PatchV5EnterprisesEnterpriseWeekReportIDOK) String

type PatchV5EnterprisesEnterpriseWeekReportIDParams

type PatchV5EnterprisesEnterpriseWeekReportIDParams struct {

	/* AccessToken.

	   用户授权码
	*/
	AccessToken *string

	/* Content.

	   周报内容
	*/
	Content string

	/* Enterprise.

	   企业的路径(path/login)
	*/
	Enterprise string

	/* ID.

	   周报ID

	   Format: int32
	*/
	ID int32

	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PatchV5EnterprisesEnterpriseWeekReportIDParams contains all the parameters to send to the API endpoint

for the patch v5 enterprises enterprise week report Id operation.

Typically these are written to a http.Request.

func NewPatchV5EnterprisesEnterpriseWeekReportIDParams

func NewPatchV5EnterprisesEnterpriseWeekReportIDParams() *PatchV5EnterprisesEnterpriseWeekReportIDParams

NewPatchV5EnterprisesEnterpriseWeekReportIDParams creates a new PatchV5EnterprisesEnterpriseWeekReportIDParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewPatchV5EnterprisesEnterpriseWeekReportIDParamsWithContext deprecated

func NewPatchV5EnterprisesEnterpriseWeekReportIDParamsWithContext(ctx context.Context) *PatchV5EnterprisesEnterpriseWeekReportIDParams

NewPatchV5EnterprisesEnterpriseWeekReportIDParamsWithContext creates a new PatchV5EnterprisesEnterpriseWeekReportIDParams object with the ability to set a context for a request.

Deprecated: use the operation call with context to pass the context instead of PatchV5EnterprisesEnterpriseWeekReportIDParams.

func NewPatchV5EnterprisesEnterpriseWeekReportIDParamsWithHTTPClient

func NewPatchV5EnterprisesEnterpriseWeekReportIDParamsWithHTTPClient(client *http.Client) *PatchV5EnterprisesEnterpriseWeekReportIDParams

NewPatchV5EnterprisesEnterpriseWeekReportIDParamsWithHTTPClient creates a new PatchV5EnterprisesEnterpriseWeekReportIDParams object with the ability to set a custom HTTPClient for a request.

func NewPatchV5EnterprisesEnterpriseWeekReportIDParamsWithTimeout

func NewPatchV5EnterprisesEnterpriseWeekReportIDParamsWithTimeout(timeout time.Duration) *PatchV5EnterprisesEnterpriseWeekReportIDParams

NewPatchV5EnterprisesEnterpriseWeekReportIDParamsWithTimeout creates a new PatchV5EnterprisesEnterpriseWeekReportIDParams object with the ability to set a timeout on a request.

func (*PatchV5EnterprisesEnterpriseWeekReportIDParams) SetAccessToken

func (o *PatchV5EnterprisesEnterpriseWeekReportIDParams) SetAccessToken(accessToken *string)

SetAccessToken adds the accessToken to the patch v5 enterprises enterprise week report Id params.

func (*PatchV5EnterprisesEnterpriseWeekReportIDParams) SetContent

SetContent adds the content to the patch v5 enterprises enterprise week report Id params.

func (*PatchV5EnterprisesEnterpriseWeekReportIDParams) SetContext deprecated

SetContext adds the context to the patch v5 enterprises enterprise week report Id params.

Deprecated: use the operation call with context to pass the context instead of PatchV5EnterprisesEnterpriseWeekReportIDParams.

func (*PatchV5EnterprisesEnterpriseWeekReportIDParams) SetDefaults

SetDefaults hydrates default values in the patch v5 enterprises enterprise week report Id params (not the query body).

All values with no default are reset to their zero value.

func (*PatchV5EnterprisesEnterpriseWeekReportIDParams) SetEnterprise

func (o *PatchV5EnterprisesEnterpriseWeekReportIDParams) SetEnterprise(enterprise string)

SetEnterprise adds the enterprise to the patch v5 enterprises enterprise week report Id params.

func (*PatchV5EnterprisesEnterpriseWeekReportIDParams) SetHTTPClient

SetHTTPClient adds the HTTPClient to the patch v5 enterprises enterprise week report Id params.

func (*PatchV5EnterprisesEnterpriseWeekReportIDParams) SetID

SetID adds the id to the patch v5 enterprises enterprise week report Id params.

func (*PatchV5EnterprisesEnterpriseWeekReportIDParams) SetTimeout

SetTimeout adds the timeout to the patch v5 enterprises enterprise week report Id params.

func (*PatchV5EnterprisesEnterpriseWeekReportIDParams) WithAccessToken

WithAccessToken adds the accessToken to the patch v5 enterprises enterprise week report Id params.

func (*PatchV5EnterprisesEnterpriseWeekReportIDParams) WithContent

WithContent adds the content to the patch v5 enterprises enterprise week report Id params.

func (*PatchV5EnterprisesEnterpriseWeekReportIDParams) WithContext deprecated

WithContext adds the context to the patch v5 enterprises enterprise week report Id params.

Deprecated: use the operation call with context to pass the context instead of PatchV5EnterprisesEnterpriseWeekReportIDParams.

func (*PatchV5EnterprisesEnterpriseWeekReportIDParams) WithDefaults

WithDefaults hydrates default values in the patch v5 enterprises enterprise week report Id params (not the query body).

All values with no default are reset to their zero value.

func (*PatchV5EnterprisesEnterpriseWeekReportIDParams) WithEnterprise

WithEnterprise adds the enterprise to the patch v5 enterprises enterprise week report Id params.

func (*PatchV5EnterprisesEnterpriseWeekReportIDParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the patch v5 enterprises enterprise week report Id params.

func (*PatchV5EnterprisesEnterpriseWeekReportIDParams) WithID

WithID adds the id to the patch v5 enterprises enterprise week report Id params.

func (*PatchV5EnterprisesEnterpriseWeekReportIDParams) WithTimeout

WithTimeout adds the timeout to the patch v5 enterprises enterprise week report Id params.

func (*PatchV5EnterprisesEnterpriseWeekReportIDParams) WriteToRequest

WriteToRequest writes these params to a runtime.ClientRequest.

type PatchV5EnterprisesEnterpriseWeekReportIDReader

type PatchV5EnterprisesEnterpriseWeekReportIDReader struct {
	// contains filtered or unexported fields
}

PatchV5EnterprisesEnterpriseWeekReportIDReader is a Reader for the PatchV5EnterprisesEnterpriseWeekReportID structure.

func (*PatchV5EnterprisesEnterpriseWeekReportIDReader) ReadResponse

ReadResponse reads a server response into the received o.

type PostV5EnterprisesEnterpriseMembersForbidden

type PostV5EnterprisesEnterpriseMembersForbidden struct {
}

PostV5EnterprisesEnterpriseMembersForbidden describes a response with status code 403, with default header values.

没有权限

func NewPostV5EnterprisesEnterpriseMembersForbidden

func NewPostV5EnterprisesEnterpriseMembersForbidden() *PostV5EnterprisesEnterpriseMembersForbidden

NewPostV5EnterprisesEnterpriseMembersForbidden creates a PostV5EnterprisesEnterpriseMembersForbidden with default headers values

func (*PostV5EnterprisesEnterpriseMembersForbidden) Code

Code gets the status code for the post v5 enterprises enterprise members forbidden response

func (*PostV5EnterprisesEnterpriseMembersForbidden) Error

func (*PostV5EnterprisesEnterpriseMembersForbidden) IsClientError

IsClientError returns true when this post v5 enterprises enterprise members forbidden response has a 4xx status code

func (*PostV5EnterprisesEnterpriseMembersForbidden) IsCode

IsCode returns true when this post v5 enterprises enterprise members forbidden response a status code equal to that given

func (*PostV5EnterprisesEnterpriseMembersForbidden) IsRedirect

IsRedirect returns true when this post v5 enterprises enterprise members forbidden response has a 3xx status code

func (*PostV5EnterprisesEnterpriseMembersForbidden) IsServerError

IsServerError returns true when this post v5 enterprises enterprise members forbidden response has a 5xx status code

func (*PostV5EnterprisesEnterpriseMembersForbidden) IsSuccess

IsSuccess returns true when this post v5 enterprises enterprise members forbidden response has a 2xx status code

func (*PostV5EnterprisesEnterpriseMembersForbidden) String

type PostV5EnterprisesEnterpriseMembersNoContent

type PostV5EnterprisesEnterpriseMembersNoContent struct {
}

PostV5EnterprisesEnterpriseMembersNoContent describes a response with status code 204, with default header values.

执行成功

func NewPostV5EnterprisesEnterpriseMembersNoContent

func NewPostV5EnterprisesEnterpriseMembersNoContent() *PostV5EnterprisesEnterpriseMembersNoContent

NewPostV5EnterprisesEnterpriseMembersNoContent creates a PostV5EnterprisesEnterpriseMembersNoContent with default headers values

func (*PostV5EnterprisesEnterpriseMembersNoContent) Code

Code gets the status code for the post v5 enterprises enterprise members no content response

func (*PostV5EnterprisesEnterpriseMembersNoContent) Error

func (*PostV5EnterprisesEnterpriseMembersNoContent) IsClientError

IsClientError returns true when this post v5 enterprises enterprise members no content response has a 4xx status code

func (*PostV5EnterprisesEnterpriseMembersNoContent) IsCode

IsCode returns true when this post v5 enterprises enterprise members no content response a status code equal to that given

func (*PostV5EnterprisesEnterpriseMembersNoContent) IsRedirect

IsRedirect returns true when this post v5 enterprises enterprise members no content response has a 3xx status code

func (*PostV5EnterprisesEnterpriseMembersNoContent) IsServerError

IsServerError returns true when this post v5 enterprises enterprise members no content response has a 5xx status code

func (*PostV5EnterprisesEnterpriseMembersNoContent) IsSuccess

IsSuccess returns true when this post v5 enterprises enterprise members no content response has a 2xx status code

func (*PostV5EnterprisesEnterpriseMembersNoContent) String

type PostV5EnterprisesEnterpriseMembersNotFound

type PostV5EnterprisesEnterpriseMembersNotFound struct {
}

PostV5EnterprisesEnterpriseMembersNotFound describes a response with status code 404, with default header values.

没有相关数据

func NewPostV5EnterprisesEnterpriseMembersNotFound

func NewPostV5EnterprisesEnterpriseMembersNotFound() *PostV5EnterprisesEnterpriseMembersNotFound

NewPostV5EnterprisesEnterpriseMembersNotFound creates a PostV5EnterprisesEnterpriseMembersNotFound with default headers values

func (*PostV5EnterprisesEnterpriseMembersNotFound) Code

Code gets the status code for the post v5 enterprises enterprise members not found response

func (*PostV5EnterprisesEnterpriseMembersNotFound) Error

func (*PostV5EnterprisesEnterpriseMembersNotFound) IsClientError

IsClientError returns true when this post v5 enterprises enterprise members not found response has a 4xx status code

func (*PostV5EnterprisesEnterpriseMembersNotFound) IsCode

IsCode returns true when this post v5 enterprises enterprise members not found response a status code equal to that given

func (*PostV5EnterprisesEnterpriseMembersNotFound) IsRedirect

IsRedirect returns true when this post v5 enterprises enterprise members not found response has a 3xx status code

func (*PostV5EnterprisesEnterpriseMembersNotFound) IsServerError

IsServerError returns true when this post v5 enterprises enterprise members not found response has a 5xx status code

func (*PostV5EnterprisesEnterpriseMembersNotFound) IsSuccess

IsSuccess returns true when this post v5 enterprises enterprise members not found response has a 2xx status code

func (*PostV5EnterprisesEnterpriseMembersNotFound) String

type PostV5EnterprisesEnterpriseMembersParams

type PostV5EnterprisesEnterpriseMembersParams struct {

	/* AccessToken.

	   用户授权码
	*/
	AccessToken *string

	/* Email.

	   要添加邮箱地址,若该邮箱未注册则自动创建帐号。username,email至少填写一个
	*/
	Email *string

	/* Enterprise.

	   企业的路径(path/login)
	*/
	Enterprise string

	/* Name.

	   企业成员真实姓名(备注)
	*/
	Name *string

	/* Role.

	   企业角色:member => 普通成员, outsourced => 外包成员, admin => 管理员

	   Default: "member"
	*/
	Role *string

	/* Username.

	   需要邀请的用户名(username/login),username,email至少填写一个
	*/
	Username *string

	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PostV5EnterprisesEnterpriseMembersParams contains all the parameters to send to the API endpoint

for the post v5 enterprises enterprise members operation.

Typically these are written to a http.Request.

func NewPostV5EnterprisesEnterpriseMembersParams

func NewPostV5EnterprisesEnterpriseMembersParams() *PostV5EnterprisesEnterpriseMembersParams

NewPostV5EnterprisesEnterpriseMembersParams creates a new PostV5EnterprisesEnterpriseMembersParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewPostV5EnterprisesEnterpriseMembersParamsWithContext deprecated

func NewPostV5EnterprisesEnterpriseMembersParamsWithContext(ctx context.Context) *PostV5EnterprisesEnterpriseMembersParams

NewPostV5EnterprisesEnterpriseMembersParamsWithContext creates a new PostV5EnterprisesEnterpriseMembersParams object with the ability to set a context for a request.

Deprecated: use the operation call with context to pass the context instead of PostV5EnterprisesEnterpriseMembersParams.

func NewPostV5EnterprisesEnterpriseMembersParamsWithHTTPClient

func NewPostV5EnterprisesEnterpriseMembersParamsWithHTTPClient(client *http.Client) *PostV5EnterprisesEnterpriseMembersParams

NewPostV5EnterprisesEnterpriseMembersParamsWithHTTPClient creates a new PostV5EnterprisesEnterpriseMembersParams object with the ability to set a custom HTTPClient for a request.

func NewPostV5EnterprisesEnterpriseMembersParamsWithTimeout

func NewPostV5EnterprisesEnterpriseMembersParamsWithTimeout(timeout time.Duration) *PostV5EnterprisesEnterpriseMembersParams

NewPostV5EnterprisesEnterpriseMembersParamsWithTimeout creates a new PostV5EnterprisesEnterpriseMembersParams object with the ability to set a timeout on a request.

func (*PostV5EnterprisesEnterpriseMembersParams) SetAccessToken

func (o *PostV5EnterprisesEnterpriseMembersParams) SetAccessToken(accessToken *string)

SetAccessToken adds the accessToken to the post v5 enterprises enterprise members params.

func (*PostV5EnterprisesEnterpriseMembersParams) SetContext deprecated

SetContext adds the context to the post v5 enterprises enterprise members params.

Deprecated: use the operation call with context to pass the context instead of PostV5EnterprisesEnterpriseMembersParams.

func (*PostV5EnterprisesEnterpriseMembersParams) SetDefaults

SetDefaults hydrates default values in the post v5 enterprises enterprise members params (not the query body).

All values with no default are reset to their zero value.

func (*PostV5EnterprisesEnterpriseMembersParams) SetEmail

SetEmail adds the email to the post v5 enterprises enterprise members params.

func (*PostV5EnterprisesEnterpriseMembersParams) SetEnterprise

func (o *PostV5EnterprisesEnterpriseMembersParams) SetEnterprise(enterprise string)

SetEnterprise adds the enterprise to the post v5 enterprises enterprise members params.

func (*PostV5EnterprisesEnterpriseMembersParams) SetHTTPClient

func (o *PostV5EnterprisesEnterpriseMembersParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the post v5 enterprises enterprise members params.

func (*PostV5EnterprisesEnterpriseMembersParams) SetName

SetName adds the name to the post v5 enterprises enterprise members params.

func (*PostV5EnterprisesEnterpriseMembersParams) SetRole

SetRole adds the role to the post v5 enterprises enterprise members params.

func (*PostV5EnterprisesEnterpriseMembersParams) SetTimeout

SetTimeout adds the timeout to the post v5 enterprises enterprise members params.

func (*PostV5EnterprisesEnterpriseMembersParams) SetUsername

func (o *PostV5EnterprisesEnterpriseMembersParams) SetUsername(username *string)

SetUsername adds the username to the post v5 enterprises enterprise members params.

func (*PostV5EnterprisesEnterpriseMembersParams) WithAccessToken

WithAccessToken adds the accessToken to the post v5 enterprises enterprise members params.

func (*PostV5EnterprisesEnterpriseMembersParams) WithContext deprecated

WithContext adds the context to the post v5 enterprises enterprise members params.

Deprecated: use the operation call with context to pass the context instead of PostV5EnterprisesEnterpriseMembersParams.

func (*PostV5EnterprisesEnterpriseMembersParams) WithDefaults

WithDefaults hydrates default values in the post v5 enterprises enterprise members params (not the query body).

All values with no default are reset to their zero value.

func (*PostV5EnterprisesEnterpriseMembersParams) WithEmail

WithEmail adds the email to the post v5 enterprises enterprise members params.

func (*PostV5EnterprisesEnterpriseMembersParams) WithEnterprise

WithEnterprise adds the enterprise to the post v5 enterprises enterprise members params.

func (*PostV5EnterprisesEnterpriseMembersParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the post v5 enterprises enterprise members params.

func (*PostV5EnterprisesEnterpriseMembersParams) WithName

WithName adds the name to the post v5 enterprises enterprise members params.

func (*PostV5EnterprisesEnterpriseMembersParams) WithRole

WithRole adds the role to the post v5 enterprises enterprise members params.

func (*PostV5EnterprisesEnterpriseMembersParams) WithTimeout

WithTimeout adds the timeout to the post v5 enterprises enterprise members params.

func (*PostV5EnterprisesEnterpriseMembersParams) WithUsername

WithUsername adds the username to the post v5 enterprises enterprise members params.

func (*PostV5EnterprisesEnterpriseMembersParams) WriteToRequest

WriteToRequest writes these params to a runtime.ClientRequest.

type PostV5EnterprisesEnterpriseMembersReader

type PostV5EnterprisesEnterpriseMembersReader struct {
	// contains filtered or unexported fields
}

PostV5EnterprisesEnterpriseMembersReader is a Reader for the PostV5EnterprisesEnterpriseMembers structure.

func (*PostV5EnterprisesEnterpriseMembersReader) ReadResponse

ReadResponse reads a server response into the received o.

type PostV5EnterprisesEnterpriseWeekReportCreated

type PostV5EnterprisesEnterpriseWeekReportCreated struct {
	Payload *models.WeekReport
}

PostV5EnterprisesEnterpriseWeekReportCreated describes a response with status code 201, with default header values.

返回格式

func NewPostV5EnterprisesEnterpriseWeekReportCreated

func NewPostV5EnterprisesEnterpriseWeekReportCreated() *PostV5EnterprisesEnterpriseWeekReportCreated

NewPostV5EnterprisesEnterpriseWeekReportCreated creates a PostV5EnterprisesEnterpriseWeekReportCreated with default headers values

func (*PostV5EnterprisesEnterpriseWeekReportCreated) Code

Code gets the status code for the post v5 enterprises enterprise week report created response

func (*PostV5EnterprisesEnterpriseWeekReportCreated) Error

func (*PostV5EnterprisesEnterpriseWeekReportCreated) GetPayload

func (*PostV5EnterprisesEnterpriseWeekReportCreated) IsClientError

IsClientError returns true when this post v5 enterprises enterprise week report created response has a 4xx status code

func (*PostV5EnterprisesEnterpriseWeekReportCreated) IsCode

IsCode returns true when this post v5 enterprises enterprise week report created response a status code equal to that given

func (*PostV5EnterprisesEnterpriseWeekReportCreated) IsRedirect

IsRedirect returns true when this post v5 enterprises enterprise week report created response has a 3xx status code

func (*PostV5EnterprisesEnterpriseWeekReportCreated) IsServerError

IsServerError returns true when this post v5 enterprises enterprise week report created response has a 5xx status code

func (*PostV5EnterprisesEnterpriseWeekReportCreated) IsSuccess

IsSuccess returns true when this post v5 enterprises enterprise week report created response has a 2xx status code

func (*PostV5EnterprisesEnterpriseWeekReportCreated) String

type PostV5EnterprisesEnterpriseWeekReportParams

type PostV5EnterprisesEnterpriseWeekReportParams struct {

	/* AccessToken.

	   用户授权码
	*/
	AccessToken *string

	/* Content.

	   周报内容
	*/
	Content string

	/* Date.

	   周报日期(格式:2019-03-25)
	*/
	Date *string

	/* Enterprise.

	   企业的路径(path/login)
	*/
	Enterprise string

	/* WeekIndex.

	   周报所属周

	   Format: int32
	*/
	WeekIndex int32

	/* Year.

	   周报所属年

	   Format: int32
	*/
	Year int32

	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PostV5EnterprisesEnterpriseWeekReportParams contains all the parameters to send to the API endpoint

for the post v5 enterprises enterprise week report operation.

Typically these are written to a http.Request.

func NewPostV5EnterprisesEnterpriseWeekReportParams

func NewPostV5EnterprisesEnterpriseWeekReportParams() *PostV5EnterprisesEnterpriseWeekReportParams

NewPostV5EnterprisesEnterpriseWeekReportParams creates a new PostV5EnterprisesEnterpriseWeekReportParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewPostV5EnterprisesEnterpriseWeekReportParamsWithContext deprecated

func NewPostV5EnterprisesEnterpriseWeekReportParamsWithContext(ctx context.Context) *PostV5EnterprisesEnterpriseWeekReportParams

NewPostV5EnterprisesEnterpriseWeekReportParamsWithContext creates a new PostV5EnterprisesEnterpriseWeekReportParams object with the ability to set a context for a request.

Deprecated: use the operation call with context to pass the context instead of PostV5EnterprisesEnterpriseWeekReportParams.

func NewPostV5EnterprisesEnterpriseWeekReportParamsWithHTTPClient

func NewPostV5EnterprisesEnterpriseWeekReportParamsWithHTTPClient(client *http.Client) *PostV5EnterprisesEnterpriseWeekReportParams

NewPostV5EnterprisesEnterpriseWeekReportParamsWithHTTPClient creates a new PostV5EnterprisesEnterpriseWeekReportParams object with the ability to set a custom HTTPClient for a request.

func NewPostV5EnterprisesEnterpriseWeekReportParamsWithTimeout

func NewPostV5EnterprisesEnterpriseWeekReportParamsWithTimeout(timeout time.Duration) *PostV5EnterprisesEnterpriseWeekReportParams

NewPostV5EnterprisesEnterpriseWeekReportParamsWithTimeout creates a new PostV5EnterprisesEnterpriseWeekReportParams object with the ability to set a timeout on a request.

func (*PostV5EnterprisesEnterpriseWeekReportParams) SetAccessToken

func (o *PostV5EnterprisesEnterpriseWeekReportParams) SetAccessToken(accessToken *string)

SetAccessToken adds the accessToken to the post v5 enterprises enterprise week report params.

func (*PostV5EnterprisesEnterpriseWeekReportParams) SetContent

func (o *PostV5EnterprisesEnterpriseWeekReportParams) SetContent(content string)

SetContent adds the content to the post v5 enterprises enterprise week report params.

func (*PostV5EnterprisesEnterpriseWeekReportParams) SetContext deprecated

SetContext adds the context to the post v5 enterprises enterprise week report params.

Deprecated: use the operation call with context to pass the context instead of PostV5EnterprisesEnterpriseWeekReportParams.

func (*PostV5EnterprisesEnterpriseWeekReportParams) SetDate

SetDate adds the date to the post v5 enterprises enterprise week report params.

func (*PostV5EnterprisesEnterpriseWeekReportParams) SetDefaults

SetDefaults hydrates default values in the post v5 enterprises enterprise week report params (not the query body).

All values with no default are reset to their zero value.

func (*PostV5EnterprisesEnterpriseWeekReportParams) SetEnterprise

func (o *PostV5EnterprisesEnterpriseWeekReportParams) SetEnterprise(enterprise string)

SetEnterprise adds the enterprise to the post v5 enterprises enterprise week report params.

func (*PostV5EnterprisesEnterpriseWeekReportParams) SetHTTPClient

func (o *PostV5EnterprisesEnterpriseWeekReportParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the post v5 enterprises enterprise week report params.

func (*PostV5EnterprisesEnterpriseWeekReportParams) SetTimeout

SetTimeout adds the timeout to the post v5 enterprises enterprise week report params.

func (*PostV5EnterprisesEnterpriseWeekReportParams) SetWeekIndex

func (o *PostV5EnterprisesEnterpriseWeekReportParams) SetWeekIndex(weekIndex int32)

SetWeekIndex adds the weekIndex to the post v5 enterprises enterprise week report params.

func (*PostV5EnterprisesEnterpriseWeekReportParams) SetYear

SetYear adds the year to the post v5 enterprises enterprise week report params.

func (*PostV5EnterprisesEnterpriseWeekReportParams) WithAccessToken

WithAccessToken adds the accessToken to the post v5 enterprises enterprise week report params.

func (*PostV5EnterprisesEnterpriseWeekReportParams) WithContent

WithContent adds the content to the post v5 enterprises enterprise week report params.

func (*PostV5EnterprisesEnterpriseWeekReportParams) WithContext deprecated

WithContext adds the context to the post v5 enterprises enterprise week report params.

Deprecated: use the operation call with context to pass the context instead of PostV5EnterprisesEnterpriseWeekReportParams.

func (*PostV5EnterprisesEnterpriseWeekReportParams) WithDate

WithDate adds the date to the post v5 enterprises enterprise week report params.

func (*PostV5EnterprisesEnterpriseWeekReportParams) WithDefaults

WithDefaults hydrates default values in the post v5 enterprises enterprise week report params (not the query body).

All values with no default are reset to their zero value.

func (*PostV5EnterprisesEnterpriseWeekReportParams) WithEnterprise

WithEnterprise adds the enterprise to the post v5 enterprises enterprise week report params.

func (*PostV5EnterprisesEnterpriseWeekReportParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the post v5 enterprises enterprise week report params.

func (*PostV5EnterprisesEnterpriseWeekReportParams) WithTimeout

WithTimeout adds the timeout to the post v5 enterprises enterprise week report params.

func (*PostV5EnterprisesEnterpriseWeekReportParams) WithWeekIndex

WithWeekIndex adds the weekIndex to the post v5 enterprises enterprise week report params.

func (*PostV5EnterprisesEnterpriseWeekReportParams) WithYear

WithYear adds the year to the post v5 enterprises enterprise week report params.

func (*PostV5EnterprisesEnterpriseWeekReportParams) WriteToRequest

WriteToRequest writes these params to a runtime.ClientRequest.

type PostV5EnterprisesEnterpriseWeekReportReader

type PostV5EnterprisesEnterpriseWeekReportReader struct {
	// contains filtered or unexported fields
}

PostV5EnterprisesEnterpriseWeekReportReader is a Reader for the PostV5EnterprisesEnterpriseWeekReport structure.

func (*PostV5EnterprisesEnterpriseWeekReportReader) ReadResponse

ReadResponse reads a server response into the received o.

type PostV5EnterprisesEnterpriseWeekReportsIDCommentCreated

type PostV5EnterprisesEnterpriseWeekReportsIDCommentCreated struct {
	Payload *models.Note
}

PostV5EnterprisesEnterpriseWeekReportsIDCommentCreated describes a response with status code 201, with default header values.

返回格式

func NewPostV5EnterprisesEnterpriseWeekReportsIDCommentCreated

func NewPostV5EnterprisesEnterpriseWeekReportsIDCommentCreated() *PostV5EnterprisesEnterpriseWeekReportsIDCommentCreated

NewPostV5EnterprisesEnterpriseWeekReportsIDCommentCreated creates a PostV5EnterprisesEnterpriseWeekReportsIDCommentCreated with default headers values

func (*PostV5EnterprisesEnterpriseWeekReportsIDCommentCreated) Code

Code gets the status code for the post v5 enterprises enterprise week reports Id comment created response

func (*PostV5EnterprisesEnterpriseWeekReportsIDCommentCreated) Error

func (*PostV5EnterprisesEnterpriseWeekReportsIDCommentCreated) GetPayload

func (*PostV5EnterprisesEnterpriseWeekReportsIDCommentCreated) IsClientError

IsClientError returns true when this post v5 enterprises enterprise week reports Id comment created response has a 4xx status code

func (*PostV5EnterprisesEnterpriseWeekReportsIDCommentCreated) IsCode

IsCode returns true when this post v5 enterprises enterprise week reports Id comment created response a status code equal to that given

func (*PostV5EnterprisesEnterpriseWeekReportsIDCommentCreated) IsRedirect

IsRedirect returns true when this post v5 enterprises enterprise week reports Id comment created response has a 3xx status code

func (*PostV5EnterprisesEnterpriseWeekReportsIDCommentCreated) IsServerError

IsServerError returns true when this post v5 enterprises enterprise week reports Id comment created response has a 5xx status code

func (*PostV5EnterprisesEnterpriseWeekReportsIDCommentCreated) IsSuccess

IsSuccess returns true when this post v5 enterprises enterprise week reports Id comment created response has a 2xx status code

func (*PostV5EnterprisesEnterpriseWeekReportsIDCommentCreated) String

type PostV5EnterprisesEnterpriseWeekReportsIDCommentParams

type PostV5EnterprisesEnterpriseWeekReportsIDCommentParams struct {

	/* AccessToken.

	   用户授权码
	*/
	AccessToken *string

	/* Body.

	   评论的内容
	*/
	Body string

	/* Enterprise.

	   企业的路径(path/login)
	*/
	Enterprise string

	/* ID.

	   周报ID

	   Format: int32
	*/
	ID int32

	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PostV5EnterprisesEnterpriseWeekReportsIDCommentParams contains all the parameters to send to the API endpoint

for the post v5 enterprises enterprise week reports Id comment operation.

Typically these are written to a http.Request.

func NewPostV5EnterprisesEnterpriseWeekReportsIDCommentParams

func NewPostV5EnterprisesEnterpriseWeekReportsIDCommentParams() *PostV5EnterprisesEnterpriseWeekReportsIDCommentParams

NewPostV5EnterprisesEnterpriseWeekReportsIDCommentParams creates a new PostV5EnterprisesEnterpriseWeekReportsIDCommentParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewPostV5EnterprisesEnterpriseWeekReportsIDCommentParamsWithContext deprecated

func NewPostV5EnterprisesEnterpriseWeekReportsIDCommentParamsWithContext(ctx context.Context) *PostV5EnterprisesEnterpriseWeekReportsIDCommentParams

NewPostV5EnterprisesEnterpriseWeekReportsIDCommentParamsWithContext creates a new PostV5EnterprisesEnterpriseWeekReportsIDCommentParams object with the ability to set a context for a request.

Deprecated: use the operation call with context to pass the context instead of PostV5EnterprisesEnterpriseWeekReportsIDCommentParams.

func NewPostV5EnterprisesEnterpriseWeekReportsIDCommentParamsWithHTTPClient

func NewPostV5EnterprisesEnterpriseWeekReportsIDCommentParamsWithHTTPClient(client *http.Client) *PostV5EnterprisesEnterpriseWeekReportsIDCommentParams

NewPostV5EnterprisesEnterpriseWeekReportsIDCommentParamsWithHTTPClient creates a new PostV5EnterprisesEnterpriseWeekReportsIDCommentParams object with the ability to set a custom HTTPClient for a request.

func NewPostV5EnterprisesEnterpriseWeekReportsIDCommentParamsWithTimeout

func NewPostV5EnterprisesEnterpriseWeekReportsIDCommentParamsWithTimeout(timeout time.Duration) *PostV5EnterprisesEnterpriseWeekReportsIDCommentParams

NewPostV5EnterprisesEnterpriseWeekReportsIDCommentParamsWithTimeout creates a new PostV5EnterprisesEnterpriseWeekReportsIDCommentParams object with the ability to set a timeout on a request.

func (*PostV5EnterprisesEnterpriseWeekReportsIDCommentParams) SetAccessToken

func (o *PostV5EnterprisesEnterpriseWeekReportsIDCommentParams) SetAccessToken(accessToken *string)

SetAccessToken adds the accessToken to the post v5 enterprises enterprise week reports Id comment params.

func (*PostV5EnterprisesEnterpriseWeekReportsIDCommentParams) SetBody

SetBody adds the body to the post v5 enterprises enterprise week reports Id comment params.

func (*PostV5EnterprisesEnterpriseWeekReportsIDCommentParams) SetContext deprecated

SetContext adds the context to the post v5 enterprises enterprise week reports Id comment params.

Deprecated: use the operation call with context to pass the context instead of PostV5EnterprisesEnterpriseWeekReportsIDCommentParams.

func (*PostV5EnterprisesEnterpriseWeekReportsIDCommentParams) SetDefaults

SetDefaults hydrates default values in the post v5 enterprises enterprise week reports Id comment params (not the query body).

All values with no default are reset to their zero value.

func (*PostV5EnterprisesEnterpriseWeekReportsIDCommentParams) SetEnterprise

SetEnterprise adds the enterprise to the post v5 enterprises enterprise week reports Id comment params.

func (*PostV5EnterprisesEnterpriseWeekReportsIDCommentParams) SetHTTPClient

SetHTTPClient adds the HTTPClient to the post v5 enterprises enterprise week reports Id comment params.

func (*PostV5EnterprisesEnterpriseWeekReportsIDCommentParams) SetID

SetID adds the id to the post v5 enterprises enterprise week reports Id comment params.

func (*PostV5EnterprisesEnterpriseWeekReportsIDCommentParams) SetTimeout

SetTimeout adds the timeout to the post v5 enterprises enterprise week reports Id comment params.

func (*PostV5EnterprisesEnterpriseWeekReportsIDCommentParams) WithAccessToken

WithAccessToken adds the accessToken to the post v5 enterprises enterprise week reports Id comment params.

func (*PostV5EnterprisesEnterpriseWeekReportsIDCommentParams) WithBody

WithBody adds the body to the post v5 enterprises enterprise week reports Id comment params.

func (*PostV5EnterprisesEnterpriseWeekReportsIDCommentParams) WithContext deprecated

WithContext adds the context to the post v5 enterprises enterprise week reports Id comment params.

Deprecated: use the operation call with context to pass the context instead of PostV5EnterprisesEnterpriseWeekReportsIDCommentParams.

func (*PostV5EnterprisesEnterpriseWeekReportsIDCommentParams) WithDefaults

WithDefaults hydrates default values in the post v5 enterprises enterprise week reports Id comment params (not the query body).

All values with no default are reset to their zero value.

func (*PostV5EnterprisesEnterpriseWeekReportsIDCommentParams) WithEnterprise

WithEnterprise adds the enterprise to the post v5 enterprises enterprise week reports Id comment params.

func (*PostV5EnterprisesEnterpriseWeekReportsIDCommentParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the post v5 enterprises enterprise week reports Id comment params.

func (*PostV5EnterprisesEnterpriseWeekReportsIDCommentParams) WithID

WithID adds the id to the post v5 enterprises enterprise week reports Id comment params.

func (*PostV5EnterprisesEnterpriseWeekReportsIDCommentParams) WithTimeout

WithTimeout adds the timeout to the post v5 enterprises enterprise week reports Id comment params.

func (*PostV5EnterprisesEnterpriseWeekReportsIDCommentParams) WriteToRequest

WriteToRequest writes these params to a runtime.ClientRequest.

type PostV5EnterprisesEnterpriseWeekReportsIDCommentReader

type PostV5EnterprisesEnterpriseWeekReportsIDCommentReader struct {
	// contains filtered or unexported fields
}

PostV5EnterprisesEnterpriseWeekReportsIDCommentReader is a Reader for the PostV5EnterprisesEnterpriseWeekReportsIDComment structure.

func (*PostV5EnterprisesEnterpriseWeekReportsIDCommentReader) ReadResponse

ReadResponse reads a server response into the received o.

type PutV5EnterprisesEnterpriseMembersUsernameBadRequest

type PutV5EnterprisesEnterpriseMembersUsernameBadRequest struct {
}

PutV5EnterprisesEnterpriseMembersUsernameBadRequest describes a response with status code 400, with default header values.

数据不合法

func NewPutV5EnterprisesEnterpriseMembersUsernameBadRequest

func NewPutV5EnterprisesEnterpriseMembersUsernameBadRequest() *PutV5EnterprisesEnterpriseMembersUsernameBadRequest

NewPutV5EnterprisesEnterpriseMembersUsernameBadRequest creates a PutV5EnterprisesEnterpriseMembersUsernameBadRequest with default headers values

func (*PutV5EnterprisesEnterpriseMembersUsernameBadRequest) Code

Code gets the status code for the put v5 enterprises enterprise members username bad request response

func (*PutV5EnterprisesEnterpriseMembersUsernameBadRequest) Error

func (*PutV5EnterprisesEnterpriseMembersUsernameBadRequest) IsClientError

IsClientError returns true when this put v5 enterprises enterprise members username bad request response has a 4xx status code

func (*PutV5EnterprisesEnterpriseMembersUsernameBadRequest) IsCode

IsCode returns true when this put v5 enterprises enterprise members username bad request response a status code equal to that given

func (*PutV5EnterprisesEnterpriseMembersUsernameBadRequest) IsRedirect

IsRedirect returns true when this put v5 enterprises enterprise members username bad request response has a 3xx status code

func (*PutV5EnterprisesEnterpriseMembersUsernameBadRequest) IsServerError

IsServerError returns true when this put v5 enterprises enterprise members username bad request response has a 5xx status code

func (*PutV5EnterprisesEnterpriseMembersUsernameBadRequest) IsSuccess

IsSuccess returns true when this put v5 enterprises enterprise members username bad request response has a 2xx status code

func (*PutV5EnterprisesEnterpriseMembersUsernameBadRequest) String

type PutV5EnterprisesEnterpriseMembersUsernameForbidden

type PutV5EnterprisesEnterpriseMembersUsernameForbidden struct {
}

PutV5EnterprisesEnterpriseMembersUsernameForbidden describes a response with status code 403, with default header values.

没有权限

func NewPutV5EnterprisesEnterpriseMembersUsernameForbidden

func NewPutV5EnterprisesEnterpriseMembersUsernameForbidden() *PutV5EnterprisesEnterpriseMembersUsernameForbidden

NewPutV5EnterprisesEnterpriseMembersUsernameForbidden creates a PutV5EnterprisesEnterpriseMembersUsernameForbidden with default headers values

func (*PutV5EnterprisesEnterpriseMembersUsernameForbidden) Code

Code gets the status code for the put v5 enterprises enterprise members username forbidden response

func (*PutV5EnterprisesEnterpriseMembersUsernameForbidden) Error

func (*PutV5EnterprisesEnterpriseMembersUsernameForbidden) IsClientError

IsClientError returns true when this put v5 enterprises enterprise members username forbidden response has a 4xx status code

func (*PutV5EnterprisesEnterpriseMembersUsernameForbidden) IsCode

IsCode returns true when this put v5 enterprises enterprise members username forbidden response a status code equal to that given

func (*PutV5EnterprisesEnterpriseMembersUsernameForbidden) IsRedirect

IsRedirect returns true when this put v5 enterprises enterprise members username forbidden response has a 3xx status code

func (*PutV5EnterprisesEnterpriseMembersUsernameForbidden) IsServerError

IsServerError returns true when this put v5 enterprises enterprise members username forbidden response has a 5xx status code

func (*PutV5EnterprisesEnterpriseMembersUsernameForbidden) IsSuccess

IsSuccess returns true when this put v5 enterprises enterprise members username forbidden response has a 2xx status code

func (*PutV5EnterprisesEnterpriseMembersUsernameForbidden) String

type PutV5EnterprisesEnterpriseMembersUsernameNotFound

type PutV5EnterprisesEnterpriseMembersUsernameNotFound struct {
}

PutV5EnterprisesEnterpriseMembersUsernameNotFound describes a response with status code 404, with default header values.

没有相关数据

func NewPutV5EnterprisesEnterpriseMembersUsernameNotFound

func NewPutV5EnterprisesEnterpriseMembersUsernameNotFound() *PutV5EnterprisesEnterpriseMembersUsernameNotFound

NewPutV5EnterprisesEnterpriseMembersUsernameNotFound creates a PutV5EnterprisesEnterpriseMembersUsernameNotFound with default headers values

func (*PutV5EnterprisesEnterpriseMembersUsernameNotFound) Code

Code gets the status code for the put v5 enterprises enterprise members username not found response

func (*PutV5EnterprisesEnterpriseMembersUsernameNotFound) Error

func (*PutV5EnterprisesEnterpriseMembersUsernameNotFound) IsClientError

IsClientError returns true when this put v5 enterprises enterprise members username not found response has a 4xx status code

func (*PutV5EnterprisesEnterpriseMembersUsernameNotFound) IsCode

IsCode returns true when this put v5 enterprises enterprise members username not found response a status code equal to that given

func (*PutV5EnterprisesEnterpriseMembersUsernameNotFound) IsRedirect

IsRedirect returns true when this put v5 enterprises enterprise members username not found response has a 3xx status code

func (*PutV5EnterprisesEnterpriseMembersUsernameNotFound) IsServerError

IsServerError returns true when this put v5 enterprises enterprise members username not found response has a 5xx status code

func (*PutV5EnterprisesEnterpriseMembersUsernameNotFound) IsSuccess

IsSuccess returns true when this put v5 enterprises enterprise members username not found response has a 2xx status code

func (*PutV5EnterprisesEnterpriseMembersUsernameNotFound) String

type PutV5EnterprisesEnterpriseMembersUsernameOK

type PutV5EnterprisesEnterpriseMembersUsernameOK struct {
	Payload *models.EnterpriseMember
}

PutV5EnterprisesEnterpriseMembersUsernameOK describes a response with status code 200, with default header values.

返回格式

func NewPutV5EnterprisesEnterpriseMembersUsernameOK

func NewPutV5EnterprisesEnterpriseMembersUsernameOK() *PutV5EnterprisesEnterpriseMembersUsernameOK

NewPutV5EnterprisesEnterpriseMembersUsernameOK creates a PutV5EnterprisesEnterpriseMembersUsernameOK with default headers values

func (*PutV5EnterprisesEnterpriseMembersUsernameOK) Code

Code gets the status code for the put v5 enterprises enterprise members username o k response

func (*PutV5EnterprisesEnterpriseMembersUsernameOK) Error

func (*PutV5EnterprisesEnterpriseMembersUsernameOK) GetPayload

func (*PutV5EnterprisesEnterpriseMembersUsernameOK) IsClientError

IsClientError returns true when this put v5 enterprises enterprise members username o k response has a 4xx status code

func (*PutV5EnterprisesEnterpriseMembersUsernameOK) IsCode

IsCode returns true when this put v5 enterprises enterprise members username o k response a status code equal to that given

func (*PutV5EnterprisesEnterpriseMembersUsernameOK) IsRedirect

IsRedirect returns true when this put v5 enterprises enterprise members username o k response has a 3xx status code

func (*PutV5EnterprisesEnterpriseMembersUsernameOK) IsServerError

IsServerError returns true when this put v5 enterprises enterprise members username o k response has a 5xx status code

func (*PutV5EnterprisesEnterpriseMembersUsernameOK) IsSuccess

IsSuccess returns true when this put v5 enterprises enterprise members username o k response has a 2xx status code

func (*PutV5EnterprisesEnterpriseMembersUsernameOK) String

type PutV5EnterprisesEnterpriseMembersUsernameParams

type PutV5EnterprisesEnterpriseMembersUsernameParams struct {

	/* AccessToken.

	   用户授权码
	*/
	AccessToken *string

	/* Active.

	   是否可访问企业资源,默认:是。(若选否则禁止该用户访问企业资源)

	   Default: true
	*/
	Active *bool

	/* Enterprise.

	   企业的路径(path/login)
	*/
	Enterprise string

	/* Name.

	   企业成员真实姓名(备注)
	*/
	Name *string

	/* Role.

	   企业角色:member => 普通成员, outsourced => 外包成员, admin => 管理员

	   Default: "member"
	*/
	Role *string

	/* Username.

	   用户名(username/login)
	*/
	Username string

	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PutV5EnterprisesEnterpriseMembersUsernameParams contains all the parameters to send to the API endpoint

for the put v5 enterprises enterprise members username operation.

Typically these are written to a http.Request.

func NewPutV5EnterprisesEnterpriseMembersUsernameParams

func NewPutV5EnterprisesEnterpriseMembersUsernameParams() *PutV5EnterprisesEnterpriseMembersUsernameParams

NewPutV5EnterprisesEnterpriseMembersUsernameParams creates a new PutV5EnterprisesEnterpriseMembersUsernameParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewPutV5EnterprisesEnterpriseMembersUsernameParamsWithContext deprecated

func NewPutV5EnterprisesEnterpriseMembersUsernameParamsWithContext(ctx context.Context) *PutV5EnterprisesEnterpriseMembersUsernameParams

NewPutV5EnterprisesEnterpriseMembersUsernameParamsWithContext creates a new PutV5EnterprisesEnterpriseMembersUsernameParams object with the ability to set a context for a request.

Deprecated: use the operation call with context to pass the context instead of PutV5EnterprisesEnterpriseMembersUsernameParams.

func NewPutV5EnterprisesEnterpriseMembersUsernameParamsWithHTTPClient

func NewPutV5EnterprisesEnterpriseMembersUsernameParamsWithHTTPClient(client *http.Client) *PutV5EnterprisesEnterpriseMembersUsernameParams

NewPutV5EnterprisesEnterpriseMembersUsernameParamsWithHTTPClient creates a new PutV5EnterprisesEnterpriseMembersUsernameParams object with the ability to set a custom HTTPClient for a request.

func NewPutV5EnterprisesEnterpriseMembersUsernameParamsWithTimeout

func NewPutV5EnterprisesEnterpriseMembersUsernameParamsWithTimeout(timeout time.Duration) *PutV5EnterprisesEnterpriseMembersUsernameParams

NewPutV5EnterprisesEnterpriseMembersUsernameParamsWithTimeout creates a new PutV5EnterprisesEnterpriseMembersUsernameParams object with the ability to set a timeout on a request.

func (*PutV5EnterprisesEnterpriseMembersUsernameParams) SetAccessToken

func (o *PutV5EnterprisesEnterpriseMembersUsernameParams) SetAccessToken(accessToken *string)

SetAccessToken adds the accessToken to the put v5 enterprises enterprise members username params.

func (*PutV5EnterprisesEnterpriseMembersUsernameParams) SetActive

SetActive adds the active to the put v5 enterprises enterprise members username params.

func (*PutV5EnterprisesEnterpriseMembersUsernameParams) SetContext deprecated

SetContext adds the context to the put v5 enterprises enterprise members username params.

Deprecated: use the operation call with context to pass the context instead of PutV5EnterprisesEnterpriseMembersUsernameParams.

func (*PutV5EnterprisesEnterpriseMembersUsernameParams) SetDefaults

SetDefaults hydrates default values in the put v5 enterprises enterprise members username params (not the query body).

All values with no default are reset to their zero value.

func (*PutV5EnterprisesEnterpriseMembersUsernameParams) SetEnterprise

func (o *PutV5EnterprisesEnterpriseMembersUsernameParams) SetEnterprise(enterprise string)

SetEnterprise adds the enterprise to the put v5 enterprises enterprise members username params.

func (*PutV5EnterprisesEnterpriseMembersUsernameParams) SetHTTPClient

SetHTTPClient adds the HTTPClient to the put v5 enterprises enterprise members username params.

func (*PutV5EnterprisesEnterpriseMembersUsernameParams) SetName

SetName adds the name to the put v5 enterprises enterprise members username params.

func (*PutV5EnterprisesEnterpriseMembersUsernameParams) SetRole

SetRole adds the role to the put v5 enterprises enterprise members username params.

func (*PutV5EnterprisesEnterpriseMembersUsernameParams) SetTimeout

SetTimeout adds the timeout to the put v5 enterprises enterprise members username params.

func (*PutV5EnterprisesEnterpriseMembersUsernameParams) SetUsername

SetUsername adds the username to the put v5 enterprises enterprise members username params.

func (*PutV5EnterprisesEnterpriseMembersUsernameParams) WithAccessToken

WithAccessToken adds the accessToken to the put v5 enterprises enterprise members username params.

func (*PutV5EnterprisesEnterpriseMembersUsernameParams) WithActive

WithActive adds the active to the put v5 enterprises enterprise members username params.

func (*PutV5EnterprisesEnterpriseMembersUsernameParams) WithContext deprecated

WithContext adds the context to the put v5 enterprises enterprise members username params.

Deprecated: use the operation call with context to pass the context instead of PutV5EnterprisesEnterpriseMembersUsernameParams.

func (*PutV5EnterprisesEnterpriseMembersUsernameParams) WithDefaults

WithDefaults hydrates default values in the put v5 enterprises enterprise members username params (not the query body).

All values with no default are reset to their zero value.

func (*PutV5EnterprisesEnterpriseMembersUsernameParams) WithEnterprise

WithEnterprise adds the enterprise to the put v5 enterprises enterprise members username params.

func (*PutV5EnterprisesEnterpriseMembersUsernameParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the put v5 enterprises enterprise members username params.

func (*PutV5EnterprisesEnterpriseMembersUsernameParams) WithName

WithName adds the name to the put v5 enterprises enterprise members username params.

func (*PutV5EnterprisesEnterpriseMembersUsernameParams) WithRole

WithRole adds the role to the put v5 enterprises enterprise members username params.

func (*PutV5EnterprisesEnterpriseMembersUsernameParams) WithTimeout

WithTimeout adds the timeout to the put v5 enterprises enterprise members username params.

func (*PutV5EnterprisesEnterpriseMembersUsernameParams) WithUsername

WithUsername adds the username to the put v5 enterprises enterprise members username params.

func (*PutV5EnterprisesEnterpriseMembersUsernameParams) WriteToRequest

WriteToRequest writes these params to a runtime.ClientRequest.

type PutV5EnterprisesEnterpriseMembersUsernameReader

type PutV5EnterprisesEnterpriseMembersUsernameReader struct {
	// contains filtered or unexported fields
}

PutV5EnterprisesEnterpriseMembersUsernameReader is a Reader for the PutV5EnterprisesEnterpriseMembersUsername structure.

func (*PutV5EnterprisesEnterpriseMembersUsernameReader) ReadResponse

ReadResponse reads a server response into the received o.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL