// Code generated by goctl. DO NOT EDIT.
package types

type SubscribeReq struct {
	AppId          string                 `header:"appId"`
	UserId         string                 `header:"userId"`
	EntId          string                 `header:"entId,optional"`
	EntUserId      string                 `header:"entUserId,optional"`
	DeptId         string                 `header:"deptId,optional"` //部门id
	PageNum        int64                  `json:"pageNum,optional"`
	PageSize       int64                  `json:"pageSize,optional"`
	SelectTime     string                 `json:"selectTime,optional"`
	Area           string                 `json:"area,optional"`
	City           string                 `json:"city,optional"`
	Industry       string                 `json:"industry,optional"`
	BuyerClass     string                 `json:"buyerClass,optional"`
	KeyWords       string                 `json:"keyWords,optional"`
	Subtype        string                 `json:"subtype,optional"`
	Price          string                 `json:"price,optional"`
	FileExists     string                 `json:"fileExists,optional"`
	Source         string                 `json:"source,optional"`                                        //信息来源
	IsRead         string                 `json:"isRead,optional"`                                        //是否已读
	Staffs         string                 `json:"staffs,optional"`                                        //分发的员工
	UserType       string                 `path:"userType,default=fType,options=fType|vType|mType|eType"` //fType：普通用户；vType：超级订阅用户；mType：大会员用户；eType：商机管理用户；
	NewUserId      int64                  `header:"newUserId"`
	IsEnt          bool                   `json:"isEnt,optional"`
	SelectIds      string                 `json:"selectIds,optional"`
	PositionType   int64                  `header:"positionType,optional"`
	NotReturnCount int64                  `json:"notReturnCount,optional"`
	Item           map[string]interface{} `json:"item,optional"`
	AccountId      string                 `header:"accountId,optional"`
	PositionId     string                 `header:"positionId,optional"`
	MgoUserId      string                 `header:"mgoUserId,optional"` //原userId
}

type SomeInfoReq struct {
	AppId        string `header:"appId"`
	UserType     string `path:"userType"`
	UserId       string `header:"userId,optional"`
	NewUserId    string `header:"newUserId,optional"`
	EntId        string `header:"entId,optional"`
	AccountId    string `header:"accountId,optional"`
	PositionType string `header:"positionType,optional"`
	PositionId   string `header:"positionId,optional"`
}

type CommonResp struct {
	Err_code int64       `json:"error_code"`
	Err_msg  string      `json:"error_msg"`
	Data     interface{} `json:"data"`
	TimeData interface{} `json:"timeData"`
}

type SubscribeUpdateReq struct {
	Area            map[string]interface{}   `json:"area,optional"`            //地区
	Buyerclass      []string                 `json:"buyerclass,optional"`      //采购单位类型
	Items           []map[string]interface{} `json:"items,optional"`           //关键词
	Infotype        []string                 `json:"infotype,optional"`        //信息类型
	Matchway        string                   `json:"matchway,optional"`        //匹配方式 1标题 2正文
	Projectmatch    string                   `json:"projectmatch,optional"`    //项目匹配 1开始 0关闭
	Ratemode        string                   `json:"ratemode,optional"`        // 1：实时推送，2：每天9点推送，3：每周推送，4：每月推送 5：每日推送两次
	Apppush         string                   `json:"apppush,optional"`         //app推送 1开启 0关闭
	Mailpush        string                   `json:"mailpush,optional"`        //邮箱推送 1开启 0关闭
	Mail            string                   `json:"mail,optional"`            //邮箱
	Otherbuyerclass string                   `json:"otherbuyerclass,optional"` //匹配未分类类型 1匹配 0不匹配
	AppId           string                   `header:"appId,optional"`
	UserType        string                   `path:"userType,optional"`
	UserId          string                   `header:"userId,optional"`
	PositionType    int64                    `header:"positionType,optional"`
}

type SetReadReq struct {
	AppId        string `header:"appId"`
	UserId       string `header:"userId"`
	EntId        string `header:"entId,optional"`
	EntUserId    string `header:"entUserId,optional"`
	DeptId       string `header:"deptId,optional"` //部门id
	Vsid         int64  `form:"vsid"`
	NewUserId    int64  `header:"newUserId"`
	IsEnt        bool   `form:"isEnt,optional"`
	UserType     string `path:"userType,optional"`
	PositionType int64  `header:"positionType,optional"`
}

type GetKeyReq struct {
	AppId        string `header:"appId"`
	UserId       string `header:"userId"`
	EntId        string `header:"entId,optional"`
	EntUserId    string `header:"entUserId,optional"`
	DeptId       string `header:"deptId,optional"` //部门id
	NewUserId    int64  `header:"newUserId"`
	IsEnt        bool   `form:"isEnt,optional"`
	UserType     string `path:"userType,optional"`
	VipPower     int64  `form:"ent_buy_vip ,optional"`
	MemberPower  int64  `form:"ent_buy_member ,optional"`
	PowerSource  int64  `form:"powerSource,optional"`
	UserPower    int64  `form:"userPower,optional"`
	PositionType int64  `header:"positionType,optional"`
}

type DistributorReq struct {
	AppId     string `header:"appId"`
	EntId     string `header:"entId,optional"`
	EntUserId string `header:"entUserId,optional"`
	UserType  string `path:"userType,optional"`
	Region    string `json:"region,optional"`
	SelectIds string `json:"selectIds,optional"`
	QueryType string `json:"queryType,optional"`
}

type ViewStatusReq struct {
	AppId     string `header:"appId"`
	EntId     string `header:"entId,optional"`
	EntUserId string `header:"entUserId,optional"`
	UserType  string `path:"userType,optional"`
	InfoId    string `json:"infoId,optional"`
}

type MsgDistributor struct {
	AppId     string `header:"appId"`
	EntId     string `header:"entId,optional"`
	EntUserId string `header:"entUserId,optional"`
	MessageId string `json:"messageId"`
	Staffs    string `json:"staffs"`
}

type GetUserReq struct {
	AppId        string `header:"appId"`
	EntId        int64  `header:"entId,optional"`
	EntUserId    int64  `header:"entUserId,optional"`
	PositionType int64  `header:"positionType,optional"`
	UserId       string `header:"mgoUserId,optional"`
	BaseUserId   int64  `header:"newUserId,optional"`
	ServiceType  string `json:"serviceType,optional"`
	PositionId   int64  `header:"positionId,optional"`
	AccountId    int64  `header:"accountId,optional"`
	MgoUserId    string `header:"mgoUserId,optional"` //原userId
}

type SetUserReq struct {
	AppId        string `header:"appId"`
	EntId        int64  `header:"entId,optional"`
	EntUserId    int64  `header:"entUserId,optional"`
	PositionType int64  `header:"positionType,optional"`
	UserId       string `header:"userId,optional"`
	Mail         string `json:"mail,optional"`
}

type SetPushSetReq struct {
	AppId        string   `header:"appId"`
	EntId        int64    `header:"entId,optional"`
	EntUserId    int64    `header:"entUserId,optional"`
	PositionType int64    `header:"positionType,optional"`
	UserId       string   `header:"mgoUserId,optional"`
	Item         string   `json:"item,optional"`
	SetType      string   `json:"setType"`
	Ratemode     int64    `json:"ratemode,optional"`
	Times        []string `json:"times,optional"`
	PushType     string   `json:"pushType,optional"`
	PushValue    int64    `json:"pushValue,optional"`
	Interested   int64    `json:"interested,optional"`
}

type GetStaffSubscribeListReq struct {
	AppId     string `header:"appId"`
	EntId     int64  `header:"entId,optional"`
	EntUserId int64  `header:"entUserId,optional"`
	EStatus   int64  `json:"e_status,optional"`
	PStatus   int64  `json:"p_status,optional"`
	Search    string `json:"search,optional"`
	PageNum   int64  `json:"pageNum,optional"`
	PageSize  int64  `json:"pageSize,optional"`
}

type GetStaffSubscribeDetailReq struct {
	AppId     string `header:"appId"`
	EntId     int64  `header:"entId,optional"`
	EntUserId int64  `header:"entUserId,optional"`
	Token     string `json:"token,optional"`
}

type StaffSubscribeCommonResp struct {
	Err_code int64       `json:"error_code"`
	Err_msg  string      `json:"error_msg"`
	Data     interface{} `json:"data"`
}

type BidDistributor struct {
	AppId     string   `header:"appId"`
	EntId     string   `header:"entId,optional"`
	EntUserId string   `header:"entUserId,optional"`
	Infoids   []string `json:"infoids"`
	Staffs    string   `json:"staffs"`
}
