models

package
v0.0.0-...-64063fb Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthenticationRequest

type AuthenticationRequest struct {

	/* 用户使用移动设备登录时的设备token

	Max Length: 100
	*/
	DeviceToken string `json:"deviceToken,omitempty"`

	/* 用户注册的邮件地址

	Max Length: 45
	Pattern: ^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$
	*/
	Email string `json:"email,omitempty"`

	/* token失效时间, 单位为分钟
	 */
	Expiration int32 `json:"expiration,omitempty"`

	/* 密码

	Required: true
	Max Length: 20
	*/
	Password string `json:"password,omitempty"`

	/* 用户注册的电话号码

	Max Length: 45
	*/
	Phone string `json:"phone,omitempty"`
}

表示认证请求, 用户可以通过邮件地址或电话号码登录, 二者必选其一

swagger:model AuthenticationRequest

func (*AuthenticationRequest) Validate

func (m *AuthenticationRequest) Validate(formats strfmt.Registry) error

Validate validates this authentication request

type AuthenticationResponse

type AuthenticationResponse struct {

	/* 若为创业公司员工, 则返回此项
	 */
	Employee Employee `json:"employee,omitempty"`

	/* 若为专家, 则返回此项
	 */
	Expert Expert `json:"expert,omitempty"`

	/* token失效时间
	 */
	ExpiresIn int64 `json:"expiresIn,omitempty"`

	/* 服务器当前时间
	 */
	ServerTime int64 `json:"serverTime,omitempty"`

	/* 是否为创业公司员工
	 */
	Startup bool `json:"startup,omitempty"`

	/* 访问token
	 */
	Token string `json:"token,omitempty"`
}

表示认证响应

swagger:model AuthenticationResponse

func (*AuthenticationResponse) Validate

func (m *AuthenticationResponse) Validate(formats strfmt.Registry) error

Validate validates this authentication response

type Author

type Author struct {

	/* 用户头像
	 */
	Avatar string `json:"avatar,omitempty"`

	/* 发布者ID
	 */
	ID int64 `json:"id,omitempty"`

	/* 用户姓名
	 */
	Name string `json:"name,omitempty"`

	/* 是否为创业公司员工
	 */
	Startup bool `json:"startup,omitempty"`
}

表示发布者资源

swagger:model Author

func (*Author) Validate

func (m *Author) Validate(formats strfmt.Registry) error

Validate validates this author

type Code

type Code struct {

	/* 中文描述
	 */
	Description string `json:"description,omitempty"`

	/* 码表映射
	 */
	Mapping map[string]string `json:"mapping,omitempty"`

	/* 代码类名
	 */
	Name string `json:"name,omitempty"`
}

表示码表资源

swagger:model Code

func (*Code) Validate

func (m *Code) Validate(formats strfmt.Registry) error

Validate validates this code

type Comment

type Comment struct {
	Post

	/* 评论针对的评论ID
	 */
	ReferCommentID int64 `json:"referCommentId,omitempty"`

	/* 评论回复的ID
	 */
	ReplyID int64 `json:"replyId,omitempty"`

	/* 评论针对的作者
	 */
	ReplyTo *Author `json:"replyTo,omitempty"`

	/* 评论主题的ID
	 */
	TopicID int64 `json:"topicId,omitempty"`
}

表示评论资源

swagger:model Comment

func (*Comment) Validate

func (m *Comment) Validate(formats strfmt.Registry) error

Validate validates this comment

type CommentPageableResult

type CommentPageableResult struct {

	/* 当前页资源列表
	 */
	Content []Comment `json:"content,omitempty"`

	/* 是否最后一页
	 */
	First bool `json:"first,omitempty"`

	/* 是否第一页
	 */
	Last bool `json:"last,omitempty"`

	/* 当前页数
	 */
	Number int32 `json:"number,omitempty"`

	/* 当前页资源项数
	 */
	NumberOfElements int32 `json:"numberOfElements,omitempty"`

	/* 服务器当前时间
	 */
	ServerTime int64 `json:"serverTime,omitempty"`

	/* 每页资源项数
	 */
	Size int32 `json:"size,omitempty"`

	/* 总共资源项数
	 */
	TotalElements int32 `json:"totalElements,omitempty"`

	/* 总共页数
	 */
	TotalPages int32 `json:"totalPages,omitempty"`
}

资源列表的一页结果

swagger:model CommentPageableResult

func (*CommentPageableResult) Validate

func (m *CommentPageableResult) Validate(formats strfmt.Registry) error

Validate validates this comment pageable result

type CreateCommentRequest

type CreateCommentRequest struct {

	/* 发布内容

	Max Length: 65535
	*/
	Content string `json:"content,omitempty"`

	/* 评论针对的评论ID
	 */
	ReferCommentID int64 `json:"referCommentId,omitempty"`

	/* 评论回复的ID
	 */
	ReplyID int64 `json:"replyId,omitempty"`

	/* 评论主题的ID
	 */
	TopicID int64 `json:"topicId,omitempty"`
}

表示创建评论请求

swagger:model CreateCommentRequest

func (*CreateCommentRequest) Validate

func (m *CreateCommentRequest) Validate(formats strfmt.Registry) error

Validate validates this create comment request

type CreateEmployeeRequest

type CreateEmployeeRequest struct {

	/* 是否为管理员

	Required: true
	*/
	Admin bool `json:"admin,omitempty"`

	/* 用户头像

	Max Length: 200
	*/
	Avatar string `json:"avatar,omitempty"`

	/* 用户介绍

	Max Length: 255
	*/
	Description string `json:"description,omitempty"`

	/* 用户使用的移动设备token

	Max Length: 100
	*/
	DeviceToken string `json:"deviceToken,omitempty"`

	/* 用户邮件地址

	Required: true
	Max Length: 45
	Pattern: ^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$
	*/
	Email string `json:"email,omitempty"`

	/* token失效时间, 单位为分钟
	 */
	Expiration int32 `json:"expiration,omitempty"`

	/* 使用的邀请码

	Max Length: 45
	*/
	InviteCode string `json:"inviteCode,omitempty"`

	/* 用户姓名

	Max Length: 45
	*/
	Name string `json:"name,omitempty"`

	/* 评论有评论时邮件通知
	 */
	NotifyCommentNewCommentByEmail bool `json:"notifyCommentNewCommentByEmail,omitempty"`

	/* 评论有评论时推送通知
	 */
	NotifyCommentNewCommentByPush bool `json:"notifyCommentNewCommentByPush,omitempty"`

	/* 主题有回复时邮件通知
	 */
	NotifyNewReplyByEmail bool `json:"notifyNewReplyByEmail,omitempty"`

	/* 主题有回复时推送通知
	 */
	NotifyNewReplyByPush bool `json:"notifyNewReplyByPush,omitempty"`

	/* 只当我的主题有响应时通知
	 */
	NotifyOnlyMyTopic bool `json:"notifyOnlyMyTopic,omitempty"`

	/* 主题有评论时邮件通知
	 */
	NotifyTopicNewCommentByEmail bool `json:"notifyTopicNewCommentByEmail,omitempty"`

	/* 主题有评论时推送通知
	 */
	NotifyTopicNewCommentByPush bool `json:"notifyTopicNewCommentByPush,omitempty"`

	/* 用户密码

	Required: true
	Max Length: 20
	*/
	Password string `json:"password,omitempty"`

	/* 用户电话号码

	Max Length: 45
	*/
	Phone string `json:"phone,omitempty"`

	/* 职位

	Max Length: 45
	*/
	Position string `json:"position,omitempty"`

	/* 创业公司ID
	 */
	StartupID int64 `json:"startupId,omitempty"`
}

表示创建创业员工资源

swagger:model CreateEmployeeRequest

func (*CreateEmployeeRequest) Validate

func (m *CreateEmployeeRequest) Validate(formats strfmt.Registry) error

Validate validates this create employee request

type CreateExpertRequest

type CreateExpertRequest struct {

	/* 用户头像

	Max Length: 200
	*/
	Avatar string `json:"avatar,omitempty"`

	/* 城市id
	 */
	City int32 `json:"city,omitempty"`

	/* 专家任职公司

	Max Length: 45
	*/
	Company string `json:"company,omitempty"`

	/* 封面图片

	Max Length: 200
	*/
	CoverImage string `json:"coverImage,omitempty"`

	/* 封面标题

	Max Length: 100
	*/
	CoverTitle string `json:"coverTitle,omitempty"`

	/* 用户介绍

	Max Length: 255
	*/
	Description string `json:"description,omitempty"`

	/* 用户使用的移动设备token

	Max Length: 100
	*/
	DeviceToken string `json:"deviceToken,omitempty"`

	/* 用户邮件地址

	Required: true
	Max Length: 45
	Pattern: ^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$
	*/
	Email string `json:"email,omitempty"`

	/* 专家特长
	 */
	Expertise []int32 `json:"expertise,omitempty"`

	/* token失效时间, 单位为分钟
	 */
	Expiration int32 `json:"expiration,omitempty"`

	/* 使用的邀请码

	Max Length: 45
	*/
	InviteCode string `json:"inviteCode,omitempty"`

	/* 专家管理技能
	 */
	ManagementSkill int32 `json:"managementSkill,omitempty"`

	/* 用户姓名

	Max Length: 45
	*/
	Name string `json:"name,omitempty"`

	/* 评论被评论时邮件通知
	 */
	NotifyCommentNewCommentByEmail bool `json:"notifyCommentNewCommentByEmail,omitempty"`

	/* 评论被评论时推送通知
	 */
	NotifyCommentNewCommentByPush bool `json:"notifyCommentNewCommentByPush,omitempty"`

	/* 新主题邮件通知
	 */
	NotifyNewTopicByEmail bool `json:"notifyNewTopicByEmail,omitempty"`

	/* 新主题推送通知
	 */
	NotifyNewTopicByPush bool `json:"notifyNewTopicByPush,omitempty"`

	/* 是否只在空闲时间通知
	 */
	NotifyOnlyFreeTime bool `json:"notifyOnlyFreeTime,omitempty"`

	/* 有回复被采纳时邮件通知
	 */
	NotifyReplyAcceptedByEmail bool `json:"notifyReplyAcceptedByEmail,omitempty"`

	/* 有回复被采纳时推送通知
	 */
	NotifyReplyAcceptedByPush bool `json:"notifyReplyAcceptedByPush,omitempty"`

	/* 答案或评论被评论时邮件通知
	 */
	NotifyReplyNewCommentByEmail bool `json:"notifyReplyNewCommentByEmail,omitempty"`

	/* 答案或评论被评论时推送通知
	 */
	NotifyReplyNewCommentByPush bool `json:"notifyReplyNewCommentByPush,omitempty"`

	/* 用户新密码

	Required: true
	Max Length: 20
	*/
	Password string `json:"password,omitempty"`

	/* 用户电话号码

	Max Length: 45
	*/
	Phone string `json:"phone,omitempty"`

	/* 专家职位

	Max Length: 45
	*/
	Position string `json:"position,omitempty"`
}

表示创建专家请求

swagger:model CreateExpertRequest

func (*CreateExpertRequest) Validate

func (m *CreateExpertRequest) Validate(formats strfmt.Registry) error

Validate validates this create expert request

type CreateFeedbackRequest

type CreateFeedbackRequest struct {

	/* 希望提供的服务列表
	 */
	Services []int32 `json:"services,omitempty"`

	/* 建议
	 */
	Suggestion string `json:"suggestion,omitempty"`
}

表示创建反馈资源

swagger:model CreateFeedbackRequest

func (*CreateFeedbackRequest) Validate

func (m *CreateFeedbackRequest) Validate(formats strfmt.Registry) error

Validate validates this create feedback request

type CreateInviteCodeRequest

type CreateInviteCodeRequest struct {

	/* 可用次数, 默认为1

	Minimum: 1
	*/
	Quota int32 `json:"quota,omitempty"`

	/* 已使用次数

	Minimum: 0
	*/
	Used int32 `json:"used,omitempty"`
}

表示创建邀请码请求

swagger:model CreateInviteCodeRequest

func (*CreateInviteCodeRequest) Validate

func (m *CreateInviteCodeRequest) Validate(formats strfmt.Registry) error

Validate validates this create invite code request

type CreateRecommendationRequest

type CreateRecommendationRequest struct {

	/* 推荐对象名称

	Max Length: 100
	*/
	Name string `json:"name,omitempty"`

	/* Photo photo

	Max Length: 200
	*/
	Photo string `json:"photo,omitempty"`

	/* 推荐对象职位

	Max Length: 100
	*/
	Position string `json:"position,omitempty"`

	/* 推荐语

	Max Length: 1024
	*/
	Words string `json:"words,omitempty"`
}

表示创建推荐资源

swagger:model CreateRecommendationRequest

func (*CreateRecommendationRequest) Validate

func (m *CreateRecommendationRequest) Validate(formats strfmt.Registry) error

Validate validates this create recommendation request

type CreateReplyRequest

type CreateReplyRequest struct {

	/* 是否匿名发布
	 */
	Anonymous bool `json:"anonymous,omitempty"`

	/* 发布内容

	Max Length: 65535
	*/
	Content string `json:"content,omitempty"`

	/* 摘要

	Max Length: 100
	*/
	Summary string `json:"summary,omitempty"`

	/* 发布标题

	Max Length: 255
	*/
	Title string `json:"title,omitempty"`

	/* 回复主题的ID

	Required: true
	*/
	TopicID int64 `json:"topicId,omitempty"`
}

表示创建回复请求

swagger:model CreateReplyRequest

func (*CreateReplyRequest) Validate

func (m *CreateReplyRequest) Validate(formats strfmt.Registry) error

Validate validates this create reply request

type CreateStarRequest

type CreateStarRequest struct {

	/* 日期

	Pattern: ^(19|20)\\d\\d[- /.](0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01])$
	*/
	Date string `json:"date,omitempty"`

	/* 明星专家
	 */
	Experts []int64 `json:"experts,omitempty"`

	/* 明星企业
	 */
	Startups []int64 `json:"startups,omitempty"`
}

表示创建明星资源

swagger:model CreateStarRequest

func (*CreateStarRequest) Validate

func (m *CreateStarRequest) Validate(formats strfmt.Registry) error

Validate validates this create star request

type CreateStartupRequest

type CreateStartupRequest struct {

	/* 创业公司许可证

	Max Length: 200
	*/
	Certificate string `json:"certificate,omitempty"`

	/* 创业公司城市
	 */
	City int32 `json:"city,omitempty"`

	/* 封面图片

	Max Length: 200
	*/
	CoverImage string `json:"coverImage,omitempty"`

	/* 封面标题

	Max Length: 100
	*/
	CoverTitle string `json:"coverTitle,omitempty"`

	/* 创业公司ctocoins

	Minimum: 0
	*/
	CtoCoins int32 `json:"ctoCoins,omitempty"`

	/* 创业公司介绍

	Max Length: 255
	*/
	Description string `json:"description,omitempty"`

	/* 创业公司经营范围
	 */
	Domain int32 `json:"domain,omitempty"`

	/* 创始人
	 */
	Founders []*Founder `json:"founders,omitempty"`

	/* 创业公司网址

	Max Length: 100
	*/
	Homepage string `json:"homepage,omitempty"`

	/* 创业公司融资阶段
	 */
	InvestmentStatus int32 `json:"investmentStatus,omitempty"`

	/* 投资人
	 */
	Investors []string `json:"investors,omitempty"`


	Logo string `json:"logo,omitempty"`

	/* 创业公司名称

	Max Length: 100
	*/
	Name string `json:"name,omitempty"`

	/* 产品
	 */
	Products []*Product `json:"products,omitempty"`

	/* 创业公司省份
	 */
	Province int32 `json:"province,omitempty"`

	/* 创业公司注册名称

	Max Length: 100
	*/
	RegistrationName string `json:"registrationName,omitempty"`

	/* 创业公司运营状态
	 */
	RunningStatus int32 `json:"runningStatus,omitempty"`

	/* 员工人数
	 */
	StaffNumber int32 `json:"staffNumber,omitempty"`

	/* 创业公司创始月份

	Maximum: 12
	*/
	StartMonth int32 `json:"startMonth,omitempty"`

	/* 创业公司创始年份

	Maximum: 2020
	*/
	StartYear int32 `json:"startYear,omitempty"`
}

表示创建创业公司请求

swagger:model CreateStartupRequest

func (*CreateStartupRequest) Validate

func (m *CreateStartupRequest) Validate(formats strfmt.Registry) error

Validate validates this create startup request

type CreateTopicRequest

type CreateTopicRequest struct {

	/* 主题类别

	Required: true
	*/
	Category int32 `json:"category,omitempty"`

	/* 发布内容

	Max Length: 65535
	*/
	Content string `json:"content,omitempty"`

	/* 主题悬赏分

	Required: true
	Minimum: 10
	*/
	CtoCoins int32 `json:"ctoCoins,omitempty"`

	/* 主题发布者所属创业公司
	 */
	StartupID int64 `json:"startupId,omitempty"`

	/* 摘要

	Max Length: 100
	*/
	Summary string `json:"summary,omitempty"`

	/* 主题标签
	 */
	Tags []string `json:"tags,omitempty"`

	/* 发布标题

	Required: true
	Max Length: 255
	*/
	Title string `json:"title,omitempty"`
}

表示创建主题请求

swagger:model CreateTopicRequest

func (*CreateTopicRequest) Validate

func (m *CreateTopicRequest) Validate(formats strfmt.Registry) error

Validate validates this create topic request

type CsecCheckRequest

type CsecCheckRequest struct {

	/* 业务ID

	Required: true
	*/
	BusinessID int32 `json:"businessId,omitempty"`

	/* 验证码类型

	Required: true
	*/
	Captype int32 `json:"captype,omitempty"`

	/* 场景ID

	Required: true
	*/
	SceneID int32 `json:"sceneId,omitempty"`

	/* 验证码票据

	Required: true
	*/
	Ticket string `json:"ticket,omitempty"`

	/* 用户ID

	Required: true
	*/
	UserID int32 `json:"userId,omitempty"`

	/* 用户IP

	Required: true
	*/
	UserIP string `json:"userIp,omitempty"`
}

表示CSEC验证请求

swagger:model CsecCheckRequest

func (*CsecCheckRequest) Validate

func (m *CsecCheckRequest) Validate(formats strfmt.Registry) error

Validate validates this csec check request

type Employee

type Employee struct {
	User

	/* 是否为管理员
	 */
	Admin bool `json:"admin,omitempty"`

	/* 消费ctocoins总数
	 */
	ConsumeCtoCoins int32 `json:"consumeCtoCoins,omitempty"`

	/* 评论有评论时邮件通知
	 */
	NotifyCommentNewCommentByEmail bool `json:"notifyCommentNewCommentByEmail,omitempty"`

	/* 评论有评论时推送通知
	 */
	NotifyCommentNewCommentByPush bool `json:"notifyCommentNewCommentByPush,omitempty"`

	/* 主题有回复时邮件通知
	 */
	NotifyNewReplyByEmail bool `json:"notifyNewReplyByEmail,omitempty"`

	/* 主题有回复时推送通知
	 */
	NotifyNewReplyByPush bool `json:"notifyNewReplyByPush,omitempty"`

	/* 只当我的主题有响应时通知
	 */
	NotifyOnlyMyTopic bool `json:"notifyOnlyMyTopic,omitempty"`

	/* 主题有评论时邮件通知
	 */
	NotifyTopicNewCommentByEmail bool `json:"notifyTopicNewCommentByEmail,omitempty"`

	/* 主题有评论时推送通知
	 */
	NotifyTopicNewCommentByPush bool `json:"notifyTopicNewCommentByPush,omitempty"`

	/* 职位
	 */
	Position string `json:"position,omitempty"`

	/* 所在创业公司审核状态
	 */
	StartupReviewStatus int32 `json:"startupReviewStatus,omitempty"`

	/* 发过主题总数
	 */
	TopicCount int32 `json:"topicCount,omitempty"`
}

表示创业公司员工资源

swagger:model Employee

func (*Employee) Validate

func (m *Employee) Validate(formats strfmt.Registry) error

Validate validates this employee

type EmployeePageableResult

type EmployeePageableResult struct {

	/* 当前页资源列表
	 */
	Content []Employee `json:"content,omitempty"`

	/* 是否最后一页
	 */
	First bool `json:"first,omitempty"`

	/* 是否第一页
	 */
	Last bool `json:"last,omitempty"`

	/* 当前页数
	 */
	Number int32 `json:"number,omitempty"`

	/* 当前页资源项数
	 */
	NumberOfElements int32 `json:"numberOfElements,omitempty"`

	/* 服务器当前时间
	 */
	ServerTime int64 `json:"serverTime,omitempty"`

	/* 每页资源项数
	 */
	Size int32 `json:"size,omitempty"`

	/* 总共资源项数
	 */
	TotalElements int32 `json:"totalElements,omitempty"`

	/* 总共页数
	 */
	TotalPages int32 `json:"totalPages,omitempty"`
}

资源列表的一页结果

swagger:model EmployeePageableResult

func (*EmployeePageableResult) Validate

func (m *EmployeePageableResult) Validate(formats strfmt.Registry) error

Validate validates this employee pageable result

type Error

type Error struct {

	/* 错误代码
	 */
	Code string `json:"code,omitempty"`

	/* 错误信息
	 */
	Message string `json:"message,omitempty"`
}

Error error

swagger:model Error

func (*Error) Validate

func (m *Error) Validate(formats strfmt.Registry) error

Validate validates this error

type Expert

type Expert struct {
	User

	/* 被采纳的答案数
	 */
	AcceptedReplyCount int32 `json:"acceptedReplyCount,omitempty"`

	/* 城市id
	 */
	City int32 `json:"city,omitempty"`

	/* 专家任职公司
	 */
	Company string `json:"company,omitempty"`

	/* 封面图片
	 */
	CoverImage string `json:"coverImage,omitempty"`

	/* 封面标题
	 */
	CoverTitle string `json:"coverTitle,omitempty"`

	/* 拥有的悬赏分
	 */
	CtoCoins int32 `json:"ctoCoins,omitempty"`

	/* 专家特长
	 */
	Expertise []int32 `json:"expertise,omitempty"`

	/* 帮助过的企业列表
	 */
	HelpedStartups []Startup `json:"helpedStartups,omitempty"`

	/* 是否为内部专家
	 */
	Internal bool `json:"internal,omitempty"`

	/* 可邀请的专家数
	 */
	InviteQuota int32 `json:"inviteQuota,omitempty"`

	/* 已邀请的专家数
	 */
	InviteUsed int32 `json:"inviteUsed,omitempty"`

	/* 专家管理技能
	 */
	ManagementSkill int32 `json:"managementSkill,omitempty"`

	/* 评论被评论时邮件通知
	 */
	NotifyCommentNewCommentByEmail bool `json:"notifyCommentNewCommentByEmail,omitempty"`

	/* 评论被评论时推送通知
	 */
	NotifyCommentNewCommentByPush bool `json:"notifyCommentNewCommentByPush,omitempty"`

	/* 新主题邮件通知
	 */
	NotifyNewTopicByEmail bool `json:"notifyNewTopicByEmail,omitempty"`

	/* 新主题推送通知
	 */
	NotifyNewTopicByPush bool `json:"notifyNewTopicByPush,omitempty"`

	/* 是否只在空闲时间通知
	 */
	NotifyOnlyFreeTime bool `json:"notifyOnlyFreeTime,omitempty"`

	/* 有回复被采纳时邮件通知
	 */
	NotifyReplyAcceptedByEmail bool `json:"notifyReplyAcceptedByEmail,omitempty"`

	/* 有回复被采纳时推送通知
	 */
	NotifyReplyAcceptedByPush bool `json:"notifyReplyAcceptedByPush,omitempty"`

	/* 答案或评论被评论时邮件通知
	 */
	NotifyReplyNewCommentByEmail bool `json:"notifyReplyNewCommentByEmail,omitempty"`

	/* 答案或评论被评论时推送通知
	 */
	NotifyReplyNewCommentByPush bool `json:"notifyReplyNewCommentByPush,omitempty"`

	/* 专家职位
	 */
	Position string `json:"position,omitempty"`

	/* 答案数
	 */
	ReplyCount int32 `json:"replyCount,omitempty"`

	/* 专家威望
	 */
	Reputation int32 `json:"reputation,omitempty"`

	/* 申请状态
	 */
	ReviewStatus int32 `json:"reviewStatus,omitempty"`
}

表示专家资源

swagger:model Expert

func (*Expert) Validate

func (m *Expert) Validate(formats strfmt.Registry) error

Validate validates this expert

type ExpertPageableResult

type ExpertPageableResult struct {

	/* 当前页资源列表
	 */
	Content []Expert `json:"content,omitempty"`

	/* 是否最后一页
	 */
	First bool `json:"first,omitempty"`

	/* 是否第一页
	 */
	Last bool `json:"last,omitempty"`

	/* 当前页数
	 */
	Number int32 `json:"number,omitempty"`

	/* 当前页资源项数
	 */
	NumberOfElements int32 `json:"numberOfElements,omitempty"`

	/* 服务器当前时间
	 */
	ServerTime int64 `json:"serverTime,omitempty"`

	/* 每页资源项数
	 */
	Size int32 `json:"size,omitempty"`

	/* 总共资源项数
	 */
	TotalElements int32 `json:"totalElements,omitempty"`

	/* 总共页数
	 */
	TotalPages int32 `json:"totalPages,omitempty"`
}

资源列表的一页结果

swagger:model ExpertPageableResult

func (*ExpertPageableResult) Validate

func (m *ExpertPageableResult) Validate(formats strfmt.Registry) error

Validate validates this expert pageable result

type Feedback

type Feedback struct {

	/* 发布者
	 */
	Author *Author `json:"author,omitempty"`

	/* 反馈ID
	 */
	ID int64 `json:"id,omitempty"`

	/* 希望提供的服务列表
	 */
	Services []int32 `json:"services,omitempty"`

	/* 建议
	 */
	Suggestion string `json:"suggestion,omitempty"`
}

表示反馈资源

swagger:model Feedback

func (*Feedback) Validate

func (m *Feedback) Validate(formats strfmt.Registry) error

Validate validates this feedback

type FeedbackPageableResult

type FeedbackPageableResult struct {

	/* 当前页资源列表
	 */
	Content []*Feedback `json:"content,omitempty"`

	/* 是否最后一页
	 */
	First bool `json:"first,omitempty"`

	/* 是否第一页
	 */
	Last bool `json:"last,omitempty"`

	/* 当前页数
	 */
	Number int32 `json:"number,omitempty"`

	/* 当前页资源项数
	 */
	NumberOfElements int32 `json:"numberOfElements,omitempty"`

	/* 服务器当前时间
	 */
	ServerTime int64 `json:"serverTime,omitempty"`

	/* 每页资源项数
	 */
	Size int32 `json:"size,omitempty"`

	/* 总共资源项数
	 */
	TotalElements int32 `json:"totalElements,omitempty"`

	/* 总共页数
	 */
	TotalPages int32 `json:"totalPages,omitempty"`
}

资源列表的一页结果

swagger:model FeedbackPageableResult

func (*FeedbackPageableResult) Validate

func (m *FeedbackPageableResult) Validate(formats strfmt.Registry) error

Validate validates this feedback pageable result

type ForgotPasswordRequest

type ForgotPasswordRequest struct {

	/* 用户注册的email地址

	Required: true
	Max Length: 45
	Pattern: ^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$
	*/
	Email string `json:"email,omitempty"`
}

表示忘记密码请求

swagger:model ForgotPasswordRequest

func (*ForgotPasswordRequest) Validate

func (m *ForgotPasswordRequest) Validate(formats strfmt.Registry) error

Validate validates this forgot password request

type Founder

type Founder struct {

	/* 创始人头像

	Max Length: 200
	*/
	Avatar string `json:"avatar,omitempty"`

	/* 创始人介绍

	Max Length: 255
	*/
	Description string `json:"description,omitempty"`

	/* 创始人邮件地址

	Max Length: 45
	Pattern: ^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$
	*/
	Email string `json:"email,omitempty"`

	/* 创始人姓名

	Max Length: 45
	*/
	Name string `json:"name,omitempty"`

	/* 创始人职位

	Max Length: 45
	*/
	Position string `json:"position,omitempty"`
}

表示创始人资源

swagger:model Founder

func (*Founder) Validate

func (m *Founder) Validate(formats strfmt.Registry) error

Validate validates this founder

type InviteCode

type InviteCode struct {
	Resource

	/* 邀请码
	 */
	Code string `json:"code,omitempty"`

	/* InviterID inviter id
	 */
	InviterID int64 `json:"inviterId,omitempty"`

	/* 可用次数, 默认为1
	 */
	Quota int32 `json:"quota,omitempty"`

	/* 创业公司ID,如是专家邀请码,则无此项
	 */
	StartupID int64 `json:"startupId,omitempty"`

	/* 已用次数
	 */
	Used int32 `json:"used,omitempty"`
}

表示邀请码资源

swagger:model InviteCode

func (*InviteCode) Validate

func (m *InviteCode) Validate(formats strfmt.Registry) error

Validate validates this invite code

type Notification

type Notification struct {

	/* 发布者
	 */
	Author *Author `json:"author,omitempty"`

	/* 通知正文
	 */
	Content string `json:"content,omitempty"`

	/* 通知创建时间
	 */
	CreateTime int64 `json:"createTime,omitempty"`

	/* 通知关联的悬赏分, 在问题采纳时非空
	 */
	CtoCoins int32 `json:"ctoCoins,omitempty"`

	/* 设备token
	 */
	DeviceToken string `json:"deviceToken,omitempty"`

	/* 设备类型
	 */
	DeviceType int32 `json:"deviceType,omitempty"`

	/* 邮件地址
	 */
	Email string `json:"email,omitempty"`

	/* 通知ID
	 */
	ID int64 `json:"id,omitempty"`

	/* 跳转资源ID
	 */
	LinkID int64 `json:"linkId,omitempty"`

	/* 跳转资源类型
	 */
	LinkType int32 `json:"linkType,omitempty"`

	/* 是否已读
	 */
	Read bool `json:"read,omitempty"`

	/* 服务器当前时间
	 */
	ServerTime int64 `json:"serverTime,omitempty"`

	/* 是否创业公司员工
	 */
	Startup bool `json:"startup,omitempty"`

	/* 通知标题
	 */
	Title string `json:"title,omitempty"`

	/* 通知类型
	 */
	Type int32 `json:"type,omitempty"`

	/* 通知的用户ID
	 */
	UserID int64 `json:"userId,omitempty"`
}

表示通知资源

swagger:model Notification

func (*Notification) Validate

func (m *Notification) Validate(formats strfmt.Registry) error

Validate validates this notification

type NotificationPageableResult

type NotificationPageableResult struct {

	/* 当前页资源列表
	 */
	Content []*Notification `json:"content,omitempty"`

	/* 是否最后一页
	 */
	First bool `json:"first,omitempty"`

	/* 是否第一页
	 */
	Last bool `json:"last,omitempty"`

	/* 当前页数
	 */
	Number int32 `json:"number,omitempty"`

	/* 当前页资源项数
	 */
	NumberOfElements int32 `json:"numberOfElements,omitempty"`

	/* 服务器当前时间
	 */
	ServerTime int64 `json:"serverTime,omitempty"`

	/* 每页资源项数
	 */
	Size int32 `json:"size,omitempty"`

	/* 总共资源项数
	 */
	TotalElements int32 `json:"totalElements,omitempty"`

	/* 总共页数
	 */
	TotalPages int32 `json:"totalPages,omitempty"`
}

资源列表的一页结果

swagger:model NotificationPageableResult

func (*NotificationPageableResult) Validate

func (m *NotificationPageableResult) Validate(formats strfmt.Registry) error

Validate validates this notification pageable result

type Operator

type Operator struct {
	User
}

表示审批者资源

swagger:model Operator

func (*Operator) Validate

func (m *Operator) Validate(formats strfmt.Registry) error

Validate validates this operator

type OssSignatureResponse

type OssSignatureResponse struct {

	/* access key ID
	 */
	AccessKeyID string `json:"accessKeyId,omitempty"`

	/* policy失效时间
	 */
	ExpiresIn int64 `json:"expiresIn,omitempty"`

	/* decoded policy
	 */
	Policy string `json:"policy,omitempty"`

	/* 服务器当前时间
	 */
	ServerTime int64 `json:"serverTime,omitempty"`

	/* 签名
	 */
	Signature string `json:"signature,omitempty"`
}

表示OSS签名响应

swagger:model OssSignatureResponse

func (*OssSignatureResponse) Validate

func (m *OssSignatureResponse) Validate(formats strfmt.Registry) error

Validate validates this oss signature response

type Post

type Post struct {
	Resource

	/* 发布者
	 */
	Author *Author `json:"author,omitempty"`

	/* 发布内容
	 */
	Content string `json:"content,omitempty"`

	/* 发布状态
	 */
	Status int32 `json:"status,omitempty"`

	/* 发布标题
	 */
	Title string `json:"title,omitempty"`

	/* 浏览次数
	 */
	ViewCount int64 `json:"viewCount,omitempty"`
}

表示发布资源

swagger:model Post

func (*Post) Validate

func (m *Post) Validate(formats strfmt.Registry) error

Validate validates this post

type Product

type Product struct {

	/* 产品Android APP链接

	Max Length: 200
	*/
	AndroidLink string `json:"androidLink,omitempty"`

	/* 产品描述

	Max Length: 255
	*/
	Description string `json:"description,omitempty"`

	/* 产品主页

	Max Length: 200
	*/
	Homepage string `json:"homepage,omitempty"`

	/* 产品iOS APP链接

	Max Length: 200
	*/
	IosLink string `json:"iosLink,omitempty"`


	Logo string `json:"logo,omitempty"`

	/* 产品名称

	Max Length: 45
	*/
	Name string `json:"name,omitempty"`
}

表示产品资源

swagger:model Product

func (*Product) Validate

func (m *Product) Validate(formats strfmt.Registry) error

Validate validates this product

type Recommendation

type Recommendation struct {

	/* 推荐ID
	 */
	ID int64 `json:"id,omitempty"`

	/* 推荐对象名称
	 */
	Name string `json:"name,omitempty"`

	/* Photo photo
	 */
	Photo string `json:"photo,omitempty"`

	/* 推荐对象职位
	 */
	Position string `json:"position,omitempty"`

	/* 推荐语
	 */
	Words string `json:"words,omitempty"`
}

表示推荐资源

swagger:model Recommendation

func (*Recommendation) Validate

func (m *Recommendation) Validate(formats strfmt.Registry) error

Validate validates this recommendation

type RecommendationPageableResult

type RecommendationPageableResult struct {

	/* 当前页资源列表
	 */
	Content []*Recommendation `json:"content,omitempty"`

	/* 是否最后一页
	 */
	First bool `json:"first,omitempty"`

	/* 是否第一页
	 */
	Last bool `json:"last,omitempty"`

	/* 当前页数
	 */
	Number int32 `json:"number,omitempty"`

	/* 当前页资源项数
	 */
	NumberOfElements int32 `json:"numberOfElements,omitempty"`

	/* 服务器当前时间
	 */
	ServerTime int64 `json:"serverTime,omitempty"`

	/* 每页资源项数
	 */
	Size int32 `json:"size,omitempty"`

	/* 总共资源项数
	 */
	TotalElements int32 `json:"totalElements,omitempty"`

	/* 总共页数
	 */
	TotalPages int32 `json:"totalPages,omitempty"`
}

资源列表的一页结果

swagger:model RecommendationPageableResult

func (*RecommendationPageableResult) Validate

func (m *RecommendationPageableResult) Validate(formats strfmt.Registry) error

Validate validates this recommendation pageable result

type Reply

type Reply struct {
	Post

	/* 是否匿名发布
	 */
	Anonymous bool `json:"anonymous,omitempty"`

	/* 评论数
	 */
	CommentCount int32 `json:"commentCount,omitempty"`

	/* 专家信息
	 */
	Expert Expert `json:"expert,omitempty"`

	/* 摘要

	Max Length: 100
	*/
	Summary string `json:"summary,omitempty"`

	/* 回复主题
	 */
	Topic Topic `json:"topic,omitempty"`

	/* 回复主题的ID
	 */
	TopicID int64 `json:"topicId,omitempty"`
}

表示回复资源

swagger:model Reply

func (*Reply) Validate

func (m *Reply) Validate(formats strfmt.Registry) error

Validate validates this reply

type ReplyPageableResult

type ReplyPageableResult struct {

	/* 当前页资源列表
	 */
	Content []Reply `json:"content,omitempty"`

	/* 是否最后一页
	 */
	First bool `json:"first,omitempty"`

	/* 是否第一页
	 */
	Last bool `json:"last,omitempty"`

	/* 当前页数
	 */
	Number int32 `json:"number,omitempty"`

	/* 当前页资源项数
	 */
	NumberOfElements int32 `json:"numberOfElements,omitempty"`

	/* 服务器当前时间
	 */
	ServerTime int64 `json:"serverTime,omitempty"`

	/* 每页资源项数
	 */
	Size int32 `json:"size,omitempty"`

	/* 总共资源项数
	 */
	TotalElements int32 `json:"totalElements,omitempty"`

	/* 总共页数
	 */
	TotalPages int32 `json:"totalPages,omitempty"`
}

资源列表的一页结果

swagger:model ReplyPageableResult

func (*ReplyPageableResult) Validate

func (m *ReplyPageableResult) Validate(formats strfmt.Registry) error

Validate validates this reply pageable result

type ResetPasswordRequest

type ResetPasswordRequest struct {

	/* 用户的新密码

	Required: true
	Max Length: 20
	*/
	Password string `json:"password,omitempty"`
}

表示重设密码请求

swagger:model ResetPasswordRequest

func (*ResetPasswordRequest) Validate

func (m *ResetPasswordRequest) Validate(formats strfmt.Registry) error

Validate validates this reset password request

type Resource

type Resource struct {

	/* 创建者
	 */
	CreateBy string `json:"createBy,omitempty"`

	/* 创建时间
	 */
	CreateTime int64 `json:"createTime,omitempty"`

	/* 资源ID
	 */
	ID int64 `json:"id,omitempty"`

	/* 当前用户对此资源的权限列表, 0为GET, 1为UPDATE, 2为DELETE
	 */
	Permissions []int32 `json:"permissions,omitempty"`

	/* 可读创建时间
	 */
	ReadableCreateTime string `json:"readableCreateTime,omitempty"`

	/* 可读更新时间
	 */
	ReadableUpdateTime string `json:"readableUpdateTime,omitempty"`

	/* 服务器当前时间
	 */
	ServerTime int64 `json:"serverTime,omitempty"`

	/* 更新者
	 */
	UpdateBy string `json:"updateBy,omitempty"`

	/* 最近一次修改时间
	 */
	UpdateTime int64 `json:"updateTime,omitempty"`
}

表示资源

swagger:model Resource

func (*Resource) Validate

func (m *Resource) Validate(formats strfmt.Registry) error

Validate validates this resource

type SendMailRequest

type SendMailRequest struct {

	/* 正文
	 */
	Body string `json:"body,omitempty"`

	/* 抄送人
	 */
	Cc []string `json:"cc,omitempty"`

	/* 标题

	Max Length: 100
	*/
	Subject string `json:"subject,omitempty"`

	/* 收件人
	 */
	To []string `json:"to,omitempty"`
}

表示发送邮件请求

swagger:model SendMailRequest

func (*SendMailRequest) Validate

func (m *SendMailRequest) Validate(formats strfmt.Registry) error

Validate validates this send mail request

type Star

type Star struct {

	/* 日期
	 */
	Date string `json:"date,omitempty"`

	/* 明星专家
	 */
	Experts []Expert `json:"experts,omitempty"`

	/* 明星ID
	 */
	ID int64 `json:"id,omitempty"`

	/* 明星企业
	 */
	Startups []Startup `json:"startups,omitempty"`
}

表示明星资源

swagger:model Star

func (*Star) Validate

func (m *Star) Validate(formats strfmt.Registry) error

Validate validates this star

type Startup

type Startup struct {
	Resource

	/* 创业公司许可证
	 */
	Certificate string `json:"certificate,omitempty"`

	/* 创业公司城市
	 */
	City int32 `json:"city,omitempty"`

	/* 消费ctocoins总数
	 */
	ConsumeCtoCoins int32 `json:"consumeCtoCoins,omitempty"`

	/* 封面图片
	 */
	CoverImage string `json:"coverImage,omitempty"`

	/* 封面标题
	 */
	CoverTitle string `json:"coverTitle,omitempty"`

	/* 创业公司ctocoins
	 */
	CtoCoins int32 `json:"ctoCoins,omitempty"`

	/* 创业公司介绍
	 */
	Description string `json:"description,omitempty"`

	/* 创业公司经营范围
	 */
	Domain int32 `json:"domain,omitempty"`

	/* 创始人
	 */
	Founders []*Founder `json:"founders,omitempty"`

	/* 帮助过的专家列表
	 */
	HelpedExperts []Expert `json:"helpedExperts,omitempty"`

	/* 创业公司网址
	 */
	Homepage string `json:"homepage,omitempty"`

	/* 创业公司融资阶段
	 */
	InvestmentStatus int32 `json:"investmentStatus,omitempty"`

	/* 投资人
	 */
	Investors []string `json:"investors,omitempty"`


	Logo string `json:"logo,omitempty"`

	/* 创业公司名称
	 */
	Name string `json:"name,omitempty"`

	/* 产品
	 */
	Products []*Product `json:"products,omitempty"`

	/* 创业公司省份
	 */
	Province int32 `json:"province,omitempty"`

	/* 创业公司注册名称
	 */
	RegistrationName string `json:"registrationName,omitempty"`

	/* 被解决的问题总数
	 */
	ResolvedTopicCount int32 `json:"resolvedTopicCount,omitempty"`

	/* 申请状态
	 */
	ReviewStatus int32 `json:"reviewStatus,omitempty"`

	/* 创业公司运营状态
	 */
	RunningStatus int32 `json:"runningStatus,omitempty"`

	/* 员工人数
	 */
	StaffNumber int32 `json:"staffNumber,omitempty"`

	/* 创业公司创始月份
	 */
	StartMonth int32 `json:"startMonth,omitempty"`

	/* 创业公司创始年份
	 */
	StartYear int32 `json:"startYear,omitempty"`

	/* 问题总数
	 */
	TopicCount int32 `json:"topicCount,omitempty"`

	/* 浏览次数
	 */
	ViewCount int64 `json:"viewCount,omitempty"`
}

表示创业公司资源

swagger:model Startup

func (*Startup) Validate

func (m *Startup) Validate(formats strfmt.Registry) error

Validate validates this startup

type StartupPageableResult

type StartupPageableResult struct {

	/* 当前页资源列表
	 */
	Content []Startup `json:"content,omitempty"`

	/* 是否最后一页
	 */
	First bool `json:"first,omitempty"`

	/* 是否第一页
	 */
	Last bool `json:"last,omitempty"`

	/* 当前页数
	 */
	Number int32 `json:"number,omitempty"`

	/* 当前页资源项数
	 */
	NumberOfElements int32 `json:"numberOfElements,omitempty"`

	/* 服务器当前时间
	 */
	ServerTime int64 `json:"serverTime,omitempty"`

	/* 每页资源项数
	 */
	Size int32 `json:"size,omitempty"`

	/* 总共资源项数
	 */
	TotalElements int32 `json:"totalElements,omitempty"`

	/* 总共页数
	 */
	TotalPages int32 `json:"totalPages,omitempty"`
}

资源列表的一页结果

swagger:model StartupPageableResult

func (*StartupPageableResult) Validate

func (m *StartupPageableResult) Validate(formats strfmt.Registry) error

Validate validates this startup pageable result

type StsResponse

type StsResponse struct {

	/* access key ID
	 */
	AccessKeyID string `json:"accessKeyId,omitempty"`

	/* access key secret
	 */
	AccessKeySecret string `json:"accessKeySecret,omitempty"`

	/* token失效时间
	 */
	ExpiresIn int64 `json:"expiresIn,omitempty"`

	/* 服务器当前时间
	 */
	ServerTime int64 `json:"serverTime,omitempty"`

	/* token
	 */
	Token string `json:"token,omitempty"`
}

表示STS临时token响应

swagger:model StsResponse

func (*StsResponse) Validate

func (m *StsResponse) Validate(formats strfmt.Registry) error

Validate validates this sts response

type Topic

type Topic struct {
	Post

	/* 主题类别
	 */
	Category int32 `json:"category,omitempty"`

	/* 评论总数
	 */
	CommentCount int32 `json:"commentCount,omitempty"`

	/* 主题悬赏分
	 */
	CtoCoins int32 `json:"ctoCoins,omitempty"`

	/* 回复总数
	 */
	ReplyCount int32 `json:"replyCount,omitempty"`

	/* 发布者采纳回复时的评论
	 */
	ResolvedComment string `json:"resolvedComment,omitempty"`

	/* 采纳的回复ID
	 */
	ResolvedReplyID int64 `json:"resolvedReplyId,omitempty"`

	/* 创业公司
	 */
	Startup Startup `json:"startup,omitempty"`

	/* 主题发布者所属创业公司
	 */
	StartupID int64 `json:"startupId,omitempty"`

	/* 摘要
	 */
	Summary string `json:"summary,omitempty"`

	/* 主题标签
	 */
	Tags []string `json:"tags,omitempty"`
}

表示主题资源

swagger:model Topic

func (*Topic) Validate

func (m *Topic) Validate(formats strfmt.Registry) error

Validate validates this topic

type TopicPageableResult

type TopicPageableResult struct {

	/* 当前页资源列表
	 */
	Content []Topic `json:"content,omitempty"`

	/* 是否最后一页
	 */
	First bool `json:"first,omitempty"`

	/* 是否第一页
	 */
	Last bool `json:"last,omitempty"`

	/* 当前页数
	 */
	Number int32 `json:"number,omitempty"`

	/* 当前页资源项数
	 */
	NumberOfElements int32 `json:"numberOfElements,omitempty"`

	/* 服务器当前时间
	 */
	ServerTime int64 `json:"serverTime,omitempty"`

	/* 每页资源项数
	 */
	Size int32 `json:"size,omitempty"`

	/* 总共资源项数
	 */
	TotalElements int32 `json:"totalElements,omitempty"`

	/* 总共页数
	 */
	TotalPages int32 `json:"totalPages,omitempty"`
}

资源列表的一页结果

swagger:model TopicPageableResult

func (*TopicPageableResult) Validate

func (m *TopicPageableResult) Validate(formats strfmt.Registry) error

Validate validates this topic pageable result

type UpdateCommentRequest

type UpdateCommentRequest struct {

	/* 发布内容

	Max Length: 65535
	*/
	Content string `json:"content,omitempty"`
}

表示更新评论请求

swagger:model UpdateCommentRequest

func (*UpdateCommentRequest) Validate

func (m *UpdateCommentRequest) Validate(formats strfmt.Registry) error

Validate validates this update comment request

type UpdateEmployeeRequest

type UpdateEmployeeRequest struct {

	/* 是否为管理员
	 */
	Admin bool `json:"admin,omitempty"`

	/* 用户头像

	Max Length: 200
	*/
	Avatar string `json:"avatar,omitempty"`

	/* 用户介绍
	 */
	Description string `json:"description,omitempty"`

	/* 用户使用的移动设备token

	Max Length: 100
	*/
	DeviceToken string `json:"deviceToken,omitempty"`

	/* 用户邮件地址

	Max Length: 45
	Pattern: ^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$
	*/
	Email string `json:"email,omitempty"`

	/* 用户姓名

	Max Length: 45
	*/
	Name string `json:"name,omitempty"`

	/* 评论有评论时邮件通知
	 */
	NotifyCommentNewCommentByEmail bool `json:"notifyCommentNewCommentByEmail,omitempty"`

	/* 评论有评论时推送通知
	 */
	NotifyCommentNewCommentByPush bool `json:"notifyCommentNewCommentByPush,omitempty"`

	/* 主题有回复时邮件通知
	 */
	NotifyNewReplyByEmail bool `json:"notifyNewReplyByEmail,omitempty"`

	/* 主题有回复时推送通知
	 */
	NotifyNewReplyByPush bool `json:"notifyNewReplyByPush,omitempty"`

	/* 只当我的主题有响应时通知
	 */
	NotifyOnlyMyTopic bool `json:"notifyOnlyMyTopic,omitempty"`

	/* 主题有评论时邮件通知
	 */
	NotifyTopicNewCommentByEmail bool `json:"notifyTopicNewCommentByEmail,omitempty"`

	/* 主题有评论时推送通知
	 */
	NotifyTopicNewCommentByPush bool `json:"notifyTopicNewCommentByPush,omitempty"`

	/* 用户当前密码, 如修改密码需要提供

	Max Length: 20
	*/
	OldPassword string `json:"oldPassword,omitempty"`

	/* 用户密码

	Max Length: 20
	*/
	Password string `json:"password,omitempty"`

	/* 用户电话号码

	Max Length: 45
	*/
	Phone string `json:"phone,omitempty"`

	/* 职位

	Max Length: 45
	*/
	Position string `json:"position,omitempty"`
}

表示更新创业公司员工请求

swagger:model UpdateEmployeeRequest

func (*UpdateEmployeeRequest) Validate

func (m *UpdateEmployeeRequest) Validate(formats strfmt.Registry) error

Validate validates this update employee request

type UpdateExpertRequest

type UpdateExpertRequest struct {

	/* 用户头像

	Max Length: 200
	*/
	Avatar string `json:"avatar,omitempty"`

	/* 城市id
	 */
	City int32 `json:"city,omitempty"`

	/* 专家任职公司

	Max Length: 45
	*/
	Company string `json:"company,omitempty"`

	/* 封面图片

	Max Length: 200
	*/
	CoverImage string `json:"coverImage,omitempty"`

	/* 封面标题

	Max Length: 100
	*/
	CoverTitle string `json:"coverTitle,omitempty"`

	/* 拥有的悬赏分
	 */
	CtoCoins int32 `json:"ctoCoins,omitempty"`

	/* 用户介绍

	Max Length: 255
	*/
	Description string `json:"description,omitempty"`

	/* 用户使用的移动设备token

	Max Length: 200
	*/
	DeviceToken string `json:"deviceToken,omitempty"`

	/* 用户邮件地址

	Max Length: 45
	Pattern: ^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$
	*/
	Email string `json:"email,omitempty"`

	/* 专家特长
	 */
	Expertise []int32 `json:"expertise,omitempty"`

	/* 是否为内部专家
	 */
	Internal bool `json:"internal,omitempty"`

	/* 专家管理技能
	 */
	ManagementSkill int32 `json:"managementSkill,omitempty"`

	/* 修改原因

	Max Length: 255
	*/
	ModifyReason string `json:"modifyReason,omitempty"`

	/* 用户姓名

	Max Length: 45
	*/
	Name string `json:"name,omitempty"`

	/* 评论被评论时邮件通知
	 */
	NotifyCommentNewCommentByEmail bool `json:"notifyCommentNewCommentByEmail,omitempty"`

	/* 评论被评论时推送通知
	 */
	NotifyCommentNewCommentByPush bool `json:"notifyCommentNewCommentByPush,omitempty"`

	/* 新主题邮件通知
	 */
	NotifyNewTopicByEmail bool `json:"notifyNewTopicByEmail,omitempty"`

	/* 新主题推送通知
	 */
	NotifyNewTopicByPush bool `json:"notifyNewTopicByPush,omitempty"`

	/* 是否只在空闲时间通知
	 */
	NotifyOnlyFreeTime bool `json:"notifyOnlyFreeTime,omitempty"`

	/* 有回复被采纳时邮件通知
	 */
	NotifyReplyAcceptedByEmail bool `json:"notifyReplyAcceptedByEmail,omitempty"`

	/* 有回复被采纳时推送通知
	 */
	NotifyReplyAcceptedByPush bool `json:"notifyReplyAcceptedByPush,omitempty"`

	/* 答案或评论被评论时邮件通知
	 */
	NotifyReplyNewCommentByEmail bool `json:"notifyReplyNewCommentByEmail,omitempty"`

	/* 答案或评论被评论时推送通知
	 */
	NotifyReplyNewCommentByPush bool `json:"notifyReplyNewCommentByPush,omitempty"`

	/* 用户当前密码, 如修改密码需要提供

	Max Length: 45
	*/
	OldPassword string `json:"oldPassword,omitempty"`

	/* 用户新密码

	Max Length: 20
	*/
	Password string `json:"password,omitempty"`

	/* 用户电话号码
	 */
	Phone string `json:"phone,omitempty"`

	/* 专家职位

	Max Length: 45
	*/
	Position string `json:"position,omitempty"`

	/* 专家威望
	 */
	Reputation int32 `json:"reputation,omitempty"`

	/* 审核状态
	 */
	ReviewStatus int32 `json:"reviewStatus,omitempty"`
}

表示更新专家请求

swagger:model UpdateExpertRequest

func (*UpdateExpertRequest) Validate

func (m *UpdateExpertRequest) Validate(formats strfmt.Registry) error

Validate validates this update expert request

type UpdateInviteCodeRequest

type UpdateInviteCodeRequest struct {

	/* 可用次数, 默认为1

	Minimum: 1
	*/
	Quota int32 `json:"quota,omitempty"`

	/* 已使用次数

	Minimum: 0
	*/
	Used int32 `json:"used,omitempty"`
}

表示更新邀请码请求

swagger:model UpdateInviteCodeRequest

func (*UpdateInviteCodeRequest) Validate

func (m *UpdateInviteCodeRequest) Validate(formats strfmt.Registry) error

Validate validates this update invite code request

type UpdateRecommendationRequest

type UpdateRecommendationRequest struct {

	/* 推荐对象名称

	Max Length: 100
	*/
	Name string `json:"name,omitempty"`

	/* Photo photo

	Max Length: 200
	*/
	Photo string `json:"photo,omitempty"`

	/* 推荐对象职位

	Max Length: 100
	*/
	Position string `json:"position,omitempty"`

	/* 推荐语

	Max Length: 1024
	*/
	Words string `json:"words,omitempty"`
}

表示更新推荐资源

swagger:model UpdateRecommendationRequest

func (*UpdateRecommendationRequest) Validate

func (m *UpdateRecommendationRequest) Validate(formats strfmt.Registry) error

Validate validates this update recommendation request

type UpdateReplyRequest

type UpdateReplyRequest struct {

	/* 是否匿名发布
	 */
	Anonymous bool `json:"anonymous,omitempty"`

	/* 发布内容

	Max Length: 65535
	*/
	Content string `json:"content,omitempty"`

	/* 摘要

	Max Length: 100
	*/
	Summary string `json:"summary,omitempty"`

	/* 发布标题

	Max Length: 255
	*/
	Title string `json:"title,omitempty"`
}

表示更新回复请求

swagger:model UpdateReplyRequest

func (*UpdateReplyRequest) Validate

func (m *UpdateReplyRequest) Validate(formats strfmt.Registry) error

Validate validates this update reply request

type UpdateStarRequest

type UpdateStarRequest struct {

	/* 明星专家
	 */
	Experts []int64 `json:"experts,omitempty"`

	/* 明星企业
	 */
	Startups []int64 `json:"startups,omitempty"`
}

表示更新明星资源

swagger:model UpdateStarRequest

func (*UpdateStarRequest) Validate

func (m *UpdateStarRequest) Validate(formats strfmt.Registry) error

Validate validates this update star request

type UpdateStartupRequest

type UpdateStartupRequest struct {

	/* 创业公司许可证

	Max Length: 200
	*/
	Certificate string `json:"certificate,omitempty"`

	/* 创业公司城市
	 */
	City int32 `json:"city,omitempty"`

	/* 封面图片

	Max Length: 200
	*/
	CoverImage string `json:"coverImage,omitempty"`

	/* 封面标题

	Max Length: 100
	*/
	CoverTitle string `json:"coverTitle,omitempty"`

	/* 创业公司ctocoins

	Minimum: 0
	*/
	CtoCoins int32 `json:"ctoCoins,omitempty"`

	/* 创业公司介绍

	Max Length: 255
	*/
	Description string `json:"description,omitempty"`

	/* 创业公司经营范围
	 */
	Domain int32 `json:"domain,omitempty"`

	/* 创始人
	 */
	Founders []*Founder `json:"founders,omitempty"`

	/* 创业公司网址

	Max Length: 100
	*/
	Homepage string `json:"homepage,omitempty"`

	/* 创业公司融资阶段
	 */
	InvestmentStatus int32 `json:"investmentStatus,omitempty"`

	/* 投资人
	 */
	Investors []string `json:"investors,omitempty"`


	Logo string `json:"logo,omitempty"`

	/* 修改原因

	Max Length: 255
	*/
	ModifyReason string `json:"modifyReason,omitempty"`

	/* 创业公司名称

	Max Length: 100
	*/
	Name string `json:"name,omitempty"`

	/* 产品
	 */
	Products []*Product `json:"products,omitempty"`

	/* 创业公司省份
	 */
	Province int32 `json:"province,omitempty"`

	/* 创业公司注册名称

	Max Length: 100
	*/
	RegistrationName string `json:"registrationName,omitempty"`

	/* 申请状态
	 */
	ReviewStatus int32 `json:"reviewStatus,omitempty"`

	/* 创业公司运营状态
	 */
	RunningStatus int32 `json:"runningStatus,omitempty"`

	/* 员工人数
	 */
	StaffNumber int32 `json:"staffNumber,omitempty"`

	/* 创业公司创始月份

	Maximum: 12
	*/
	StartMonth int32 `json:"startMonth,omitempty"`

	/* 创业公司创始年份

	Maximum: 2020
	*/
	StartYear int32 `json:"startYear,omitempty"`
}

表示更新创业公司请求

swagger:model UpdateStartupRequest

func (*UpdateStartupRequest) Validate

func (m *UpdateStartupRequest) Validate(formats strfmt.Registry) error

Validate validates this update startup request

type UpdateTopicRequest

type UpdateTopicRequest struct {

	/* 主题类别
	 */
	Category int32 `json:"category,omitempty"`

	/* 发布内容

	Max Length: 65535
	*/
	Content string `json:"content,omitempty"`

	/* 拒绝删除原因
	 */
	RejectReason string `json:"rejectReason,omitempty"`

	/* 发布者采纳回复时的评论

	Max Length: 255
	*/
	ResolvedComment string `json:"resolvedComment,omitempty"`

	/* 采纳的回复ID
	 */
	ResolvedReplyID int64 `json:"resolvedReplyId,omitempty"`

	/* 主题发布者所属创业公司
	 */
	StartupID int64 `json:"startupId,omitempty"`

	/* 状态
	 */
	Status int32 `json:"status,omitempty"`

	/* 摘要

	Max Length: 100
	*/
	Summary string `json:"summary,omitempty"`

	/* 主题标签
	 */
	Tags []string `json:"tags,omitempty"`

	/* 发布标题

	Max Length: 255
	*/
	Title string `json:"title,omitempty"`
}

表示更新主题请求

swagger:model UpdateTopicRequest

func (*UpdateTopicRequest) Validate

func (m *UpdateTopicRequest) Validate(formats strfmt.Registry) error

Validate validates this update topic request

type User

type User struct {
	Resource

	/* 用户头像
	 */
	Avatar string `json:"avatar,omitempty"`

	/* 用户介绍
	 */
	Description string `json:"description,omitempty"`

	/* 用户使用的移动设备token
	 */
	DeviceToken string `json:"deviceToken,omitempty"`

	/* 用户邮件地址
	 */
	Email string `json:"email,omitempty"`

	/* 用户姓名
	 */
	Name string `json:"name,omitempty"`

	/* 用户密码,仅在创建用户时需要提供
	 */
	Password string `json:"password,omitempty"`

	/* 用户电话号码
	 */
	Phone string `json:"phone,omitempty"`

	/* 创业公司ID
	 */
	StartupID int64 `json:"startupId,omitempty"`

	/* 浏览次数
	 */
	ViewCount int64 `json:"viewCount,omitempty"`
}

表示用户资源

swagger:model User

func (*User) Validate

func (m *User) Validate(formats strfmt.Registry) error

Validate validates this user

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL