作者 tangxuhui

更数据结构适配

... ... @@ -9,7 +9,7 @@ import (
type CooperationApplicationItem struct {
CooperationProject struct {
CooperationProjectID int `json:"cooperationProjectId"` //共创项目
CooperationProjectID int `json:"cooperationProjectId,string"` //共创项目
CooperationProjectName string `json:"cooperationProjectName"` //共创名称
CooperationProjectNumber string `json:"cooperationProjectNumber"` //共创编号
} `json:"cooperationProject"`
... ... @@ -21,7 +21,7 @@ type CooperationApplicationItem struct {
} `json:"cooperationApplicationApplicant"`
CooperationApplicationAttachment []domain.Attachment `json:"cooperationApplicationAttachment"` //附件
CooperationApplicationDescription string `json:"cooperationApplicationDescription"` //描述
CooperationApplicationID int `json:"cooperationApplicationId"` //id
CooperationApplicationID int `json:"cooperationApplicationId,string"` //id
IsCanceled bool `json:"isCanceled"` //是否取消
CooperationApplicationVerifyDescription string `json:"cooperationApplicationVerifyDescription"` //审核描述
CooperationApplicationVerifyTime time.Time `json:"cooperationApplicationVerifyTime"` //审核时间
... ... @@ -54,7 +54,7 @@ func ToCooperationApplicationItem(param *allied_creation_cooperation.Cooperation
type CooperationApplicationInfo struct {
CooperationProject struct {
CooperationProjectID int `json:"cooperationProjectId"` //共创项目
CooperationProjectID int `json:"cooperationProjectId,string"` //共创项目
CooperationProjectName string `json:"cooperationProjectName"` //共创名称
CooperationProjectNumber string `json:"cooperationProjectNumber"` //共创编号
CooperationMode struct {
... ... @@ -71,10 +71,10 @@ type CooperationApplicationInfo struct {
} `json:"cooperationApplicationApplicant"`
CooperationApplicationAttachment []domain.Attachment `json:"cooperationApplicationAttachment"` //附件
CooperationApplicationDescription string `json:"cooperationApplicationDescription"` //描述
CooperationApplicationID int `json:"cooperationApplicationId"` //id
CooperationApplicationID int `json:"cooperationApplicationId,string"` //id
IsCanceled bool `json:"isCanceled"` //是否取消
CooperationApplicationVerifyDescription string `json:"cooperationApplicationVerifyDescription"` //审核描述
CooperationApplicationVerifyTime time.Time `json:"cooperationApplicationVerifyTime"` //审核时间
CooperationApplicationVerifyTime int64 `json:"cooperationApplicationVerifyTime"` //审核时间
CooperationApplicationStatus int `json:"cooperationApplicationStatus"` //申请状态
Org struct {
OrgID int `json:"orgId"`
... ... @@ -91,6 +91,7 @@ func ToCooperationApplicationInfo(applicationParam *allied_creation_cooperation.
IsCanceled: applicationParam.IsCanceled,
CooperationApplicationVerifyDescription: applicationParam.CooperationApplicationVerifyDescription,
CooperationApplicationStatus: applicationParam.CooperationApplicationStatus,
CooperationApplicationVerifyTime: applicationParam.CooperationApplicationVerifyTime.Unix(),
Org: applicationParam.Org,
}
data.CooperationProject.CooperationProjectID = objectParam.CooperationProjectId
... ...
... ... @@ -11,7 +11,7 @@ type ListCooperationApplicationQuery struct {
//操作人
Operator domain.Operator `json:"-"`
// 查询偏离量
PageNumber int `json:"pageNumber" valid:"Required"`
PageNumber int `json:"pageNumber" `
// 查询限制
PageSize int `json:"pageSize" valid:"Required"`
//共创项目名称
... ...