作者 陈志颖

feat:调整controller层参数解析

正在显示 24 个修改的文件 包含 506 行增加58 行删除
... ... @@ -13,10 +13,6 @@ type ListCreditAccountQuery struct {
PageNumber int32 `cname:"页面大小" json:"pageNumber,omitempty"`
// 页面大小
PageSize int32 `cname:"页面大小" json:"pageSize,omitempty"`
// 查询偏离量
Offset int `cname:"查询偏离量" json:"offset" valid:"Required"`
// 查询限制
Limit int `cname:"查询限制" json:"limit" valid:"Required"`
// 公司ID,通过集成REST上下文获取
CompanyId int64 `cname:"公司ID,通过集成REST上下文获取" json:"companyId,string" valid:"Required"`
// 组织机构ID
... ...
... ... @@ -51,10 +51,12 @@ type CreateDividendsOrderCommand struct {
OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
// 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
// 用户基础信息id
UserBaseId int64 `cname:"用户基础数据id" json:"userBaseId" valid:"Required"`
}
func (createDividendsOrderCommand *CreateDividendsOrderCommand) Valid(validation *validation.Validation) {
validation.SetError("CustomValid", "未实现的自定义认证")
//validation.SetError("CustomValid", "未实现的自定义认证")
}
func (createDividendsOrderCommand *CreateDividendsOrderCommand) ValidateCommand() error {
... ...
... ... @@ -17,10 +17,12 @@ type RemoveDividendsOrderCommand struct {
OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
// 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
// 用户基础数据id
UserBaseId int64 `cname:"用户基础数据id" json:"userBaseId,string" valid:"Required"`
}
func (removeDividendsOrderCommand *RemoveDividendsOrderCommand) Valid(validation *validation.Validation) {
validation.SetError("CustomValid", "未实现的自定义认证")
//validation.SetError("CustomValid", "未实现的自定义认证")
}
func (removeDividendsOrderCommand *RemoveDividendsOrderCommand) ValidateCommand() error {
... ...
... ... @@ -34,6 +34,8 @@ type UpdateDividendsOrderCommand struct {
OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
// 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
// 用户基础数据id
UserBaseId int64 `cname:"用户基础数据id" json:"userBaseId,string" valid:"Required"`
}
func (updateDividendsOrderCommand *UpdateDividendsOrderCommand) Valid(validation *validation.Validation) {
... ...
... ... @@ -17,6 +17,8 @@ type GetDividendsOrderQuery struct {
OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
// 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
// 用户基础数据id
UserBaseId int64 `canme:"用户基础数据id" json:"userBaseId,string" valid:"Required"`
}
func (getDividendsOrderQuery *GetDividendsOrderQuery) Valid(validation *validation.Validation) {
... ...
... ... @@ -23,6 +23,8 @@ type ListDividendsOrdersQuery struct {
OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
// 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
// 用户基础数据id
UserBaseId int64 `cname:"用户基础数据id" json:"userBaseId,string" valid:"Required"`
}
func (listDividendsOrdersQuery *ListDividendsOrdersQuery) Valid(validation *validation.Validation) {
... ...
... ... @@ -23,6 +23,8 @@ type SearchDividendsOrderQuery struct {
OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
// 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
// 用户基础数据id
UserBaseId int64 `cname:"用户基础数据id" json:"userBaseId,string" valid:"Required"`
}
func (searchDividendsOrderQuery *SearchDividendsOrderQuery) Valid(validation *validation.Validation) {
... ...
... ... @@ -17,6 +17,8 @@ type SearchDividendsOrderNumberQuery struct {
OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
// 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
// 用户基础数据id
UserBaseId int64 `cname:"用户基础数据id" json:"userBaseId,string" valid:"Required"`
}
func (searchDividendsOrderNumberQuery *SearchDividendsOrderNumberQuery) Valid(validation *validation.Validation) {
... ...
... ... @@ -47,10 +47,12 @@ type CreateDividendsReturnedOrderCommand struct {
OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
// 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
// 用户基础数据id
UserBaseId int64 `cname:"用户基础数据id" json:"userBaseId,string" valid:"Required"`
}
func (createDividendsReturnedOrderCommand *CreateDividendsReturnedOrderCommand) Valid(validation *validation.Validation) {
validation.SetError("CustomValid", "未实现的自定义认证")
//validation.SetError("CustomValid", "未实现的自定义认证")
}
func (createDividendsReturnedOrderCommand *CreateDividendsReturnedOrderCommand) ValidateCommand() error {
... ...
... ... @@ -19,10 +19,12 @@ type ImportDividendsReturnedOrderCommand struct {
OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
// 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
// 用户基础数据id
UserBaseId int64 `cname:"用户基础数据id" json:"userBaseId,string" valid:"Required"`
}
func (importDividendsReturnedOrderCommand *ImportDividendsReturnedOrderCommand) Valid(validation *validation.Validation) {
validation.SetError("CustomValid", "未实现的自定义认证")
//validation.SetError("CustomValid", "未实现的自定义认证")
}
func (importDividendsReturnedOrderCommand *ImportDividendsReturnedOrderCommand) ValidateCommand() error {
... ...
... ... @@ -17,6 +17,8 @@ type RemoveDividendsReturnedOrderCommand struct {
OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
// 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
// 用户基础数据id
UserBaseId int64 `cname:"用户基础数据id" json:"userBaseId,string" valid:"Required"`
}
func (removeDividendsReturnedOrderCommand *RemoveDividendsReturnedOrderCommand) Valid(validation *validation.Validation) {
... ...
... ... @@ -32,6 +32,8 @@ type UpdateDividendsReturnedOrderCommand struct {
OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
// 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
// 用户基础数据id
UserBaseId int64 `cname:"用户基础数据id" json:"userBaseId,string" valid:"Required"`
}
func (updateDividendsReturnedOrderCommand *UpdateDividendsReturnedOrderCommand) Valid(validation *validation.Validation) {
... ...
... ... @@ -17,10 +17,12 @@ type GetDividendsReturnedOrderQuery struct {
OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
// 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
// 用户基础数据id
UserBaseId int64 `cname:"用户基础数据id" json:"userBaseId,string" valid:"Required"`
}
func (getDividendsReturnedOrderQuery *GetDividendsReturnedOrderQuery) Valid(validation *validation.Validation) {
validation.SetError("CustomValid", "未实现的自定义认证")
//validation.SetError("CustomValid", "未实现的自定义认证")
}
func (getDividendsReturnedOrderQuery *GetDividendsReturnedOrderQuery) ValidateQuery() error {
... ...
... ... @@ -23,6 +23,8 @@ type ListDividendsReturnedOrderQuery struct {
OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
// 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
// 用户基础数据id
UserBaseId int64 `cname:"用户基础数据id" json:"userBaseId,string" valid:"Required"`
}
func (listDividendsReturnedOrderQuery *ListDividendsReturnedOrderQuery) Valid(validation *validation.Validation) {
... ...
... ... @@ -23,6 +23,8 @@ type SearchDividendsReturnedOrderQuery struct {
OrgId int64 `cname:"组织机构ID" json:"orgId,string" valid:"Required"`
// 用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员
UserId int64 `cname:"用户ID,通过集成REST上下文获取,可翻译成发起人、承接人、推荐人、业务员" json:"userId,string" valid:"Required"`
// 用户基础数据id
UserBaseId int64 `cname:"用户基础数据id" json:"userBaseId,string" valid:"Required"`
}
func (searchDividendsReturnedOrderQuery *SearchDividendsReturnedOrderQuery) Valid(validation *validation.Validation) {
... ...
... ... @@ -13,7 +13,13 @@ type ContractUndertakerFeedbackController struct {
func (controller *ContractUndertakerFeedbackController) CreateContractUndertakerFeedback() {
contractUndertakerFeedbackService := service.NewContractUndertakerFeedbackService(nil)
createContractUndertakerFeedbackCommand := &command.CreateContractUndertakerFeedbackCommand{}
controller.Unmarshal(createContractUndertakerFeedbackCommand)
_ = controller.Unmarshal(createContractUndertakerFeedbackCommand)
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
createContractUndertakerFeedbackCommand.CompanyId = header.CompanyId
createContractUndertakerFeedbackCommand.OrgId = header.OrgId
createContractUndertakerFeedbackCommand.UserId = header.UserId
createContractUndertakerFeedbackCommand.UserBaseId = header.UserBaseId
data, err := contractUndertakerFeedbackService.CreateContractUndertakerFeedback(createContractUndertakerFeedbackCommand)
controller.Response(data, err)
}
... ... @@ -21,7 +27,14 @@ func (controller *ContractUndertakerFeedbackController) CreateContractUndertaker
func (controller *ContractUndertakerFeedbackController) UpdateContractUndertakerFeedback() {
contractUndertakerFeedbackService := service.NewContractUndertakerFeedbackService(nil)
updateContractUndertakerFeedbackCommand := &command.UpdateContractUndertakerFeedbackCommand{}
controller.Unmarshal(updateContractUndertakerFeedbackCommand)
_ = controller.Unmarshal(updateContractUndertakerFeedbackCommand)
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
updateContractUndertakerFeedbackCommand.CompanyId = header.CompanyId
updateContractUndertakerFeedbackCommand.OrgId = header.OrgId
updateContractUndertakerFeedbackCommand.UserId = header.UserId
updateContractUndertakerFeedbackCommand.UserBaseId = header.UserBaseId
// 解析路径参数
contractUndertakerFeedbackId := controller.GetString(":contractUndertakerFeedbackId")
updateContractUndertakerFeedbackCommand.FeedbackId = contractUndertakerFeedbackId
data, err := contractUndertakerFeedbackService.UpdateContractUndertakerFeedback(updateContractUndertakerFeedbackCommand)
... ... @@ -47,7 +60,7 @@ func (controller *ContractUndertakerFeedbackController) GetContractUndertakerFee
func (controller *ContractUndertakerFeedbackController) RemoveContractUndertakerFeedback() {
contractUndertakerFeedbackService := service.NewContractUndertakerFeedbackService(nil)
removeContractUndertakerFeedbackCommand := &command.RemoveContractUndertakerFeedbackCommand{}
controller.Unmarshal(removeContractUndertakerFeedbackCommand)
_ = controller.Unmarshal(removeContractUndertakerFeedbackCommand)
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
removeContractUndertakerFeedbackCommand.CompanyId = header.CompanyId
... ...
... ... @@ -13,7 +13,13 @@ type CooperationApplicationController struct {
func (controller *CooperationApplicationController) ApplyForCooperation() {
cooperationApplicationService := service.NewCooperationApplicationService(nil)
applyForCooperationCommand := &command.ApplyForCooperationCommand{}
controller.Unmarshal(applyForCooperationCommand)
_ = controller.Unmarshal(applyForCooperationCommand)
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
applyForCooperationCommand.CompanyId = header.CompanyId
applyForCooperationCommand.OrgId = header.OrgId
applyForCooperationCommand.UserId = header.UserId
applyForCooperationCommand.UserBaseId = header.UserBaseId
data, err := cooperationApplicationService.ApplyForCooperation(applyForCooperationCommand)
controller.Response(data, err)
}
... ... @@ -21,7 +27,13 @@ func (controller *CooperationApplicationController) ApplyForCooperation() {
func (controller *CooperationApplicationController) AgreeCooperationApplication() {
cooperationApplicationService := service.NewCooperationApplicationService(nil)
agreeCooperationApplicationCommand := &command.AgreeCooperationApplicationCommand{}
controller.Unmarshal(agreeCooperationApplicationCommand)
_ = controller.Unmarshal(agreeCooperationApplicationCommand)
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
agreeCooperationApplicationCommand.CompanyId = header.CompanyId
agreeCooperationApplicationCommand.OrgId = header.OrgId
agreeCooperationApplicationCommand.UserId = header.UserId
agreeCooperationApplicationCommand.UserBaseId = header.UserBaseId
data, err := cooperationApplicationService.AgreeCooperationApplication(agreeCooperationApplicationCommand)
controller.Response(data, err)
}
... ... @@ -29,19 +41,41 @@ func (controller *CooperationApplicationController) AgreeCooperationApplication(
func (controller *CooperationApplicationController) RejectCooperationApplication() {
cooperationApplicationService := service.NewCooperationApplicationService(nil)
rejectCooperationApplicationCommand := &command.RejectCooperationApplicationCommand{}
controller.Unmarshal(rejectCooperationApplicationCommand)
_ = controller.Unmarshal(rejectCooperationApplicationCommand)
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
rejectCooperationApplicationCommand.CompanyId = header.CompanyId
rejectCooperationApplicationCommand.OrgId = header.OrgId
rejectCooperationApplicationCommand.UserId = header.UserId
rejectCooperationApplicationCommand.UserBaseId = header.UserBaseId
data, err := cooperationApplicationService.RejectCooperationApplication(rejectCooperationApplicationCommand)
controller.Response(data, err)
}
func (controller *CooperationContractController) BatchApprovalCooperationApplication() {
cooperationApplicationService := service.NewCooperationApplicationService(nil)
batchApprovalCooperationApplicationCommand := &command.BatchApprovalCooperationApplicationCommand{}
_ = controller.Unmarshal(batchApprovalCooperationApplicationCommand)
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
batchApprovalCooperationApplicationCommand.CompanyId = header.CompanyId
batchApprovalCooperationApplicationCommand.OrgId = header.OrgId
batchApprovalCooperationApplicationCommand.UserId = header.UserId
batchApprovalCooperationApplicationCommand.UserBaseId = header.UserBaseId
data, err := cooperationApplicationService.BatchApprovalCooperationApplication(batchApprovalCooperationApplicationCommand)
controller.Response(data, err)
}
func (controller *CooperationApplicationController) CreateCooperationApplication() {
cooperationApplicationService := service.NewCooperationApplicationService(nil)
createCooperationApplicationCommand := &command.CreateCooperationApplicationCommand{}
controller.Unmarshal(createCooperationApplicationCommand)
_ = controller.Unmarshal(createCooperationApplicationCommand)
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
createCooperationApplicationCommand.CompanyId = header.CompanyId
createCooperationApplicationCommand.OrgId = header.OrgId
createCooperationApplicationCommand.UserId = header.UserId
createCooperationApplicationCommand.UserBaseId = header.UserBaseId
data, err := cooperationApplicationService.CreateCooperationApplication(createCooperationApplicationCommand)
controller.Response(data, err)
}
... ... @@ -49,7 +83,14 @@ func (controller *CooperationApplicationController) CreateCooperationApplication
func (controller *CooperationApplicationController) UpdateCooperationApplication() {
cooperationApplicationService := service.NewCooperationApplicationService(nil)
updateCooperationApplicationCommand := &command.UpdateCooperationApplicationCommand{}
controller.Unmarshal(updateCooperationApplicationCommand)
_ = controller.Unmarshal(updateCooperationApplicationCommand)
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
updateCooperationApplicationCommand.CompanyId = header.CompanyId
updateCooperationApplicationCommand.OrgId = header.OrgId
updateCooperationApplicationCommand.UserId = header.UserId
updateCooperationApplicationCommand.UserBaseId = header.UserBaseId
// 解析路径参数
cooperationApplicationId := controller.GetString(":cooperationApplicationId")
updateCooperationApplicationCommand.CooperationApplicationId = cooperationApplicationId
data, err := cooperationApplicationService.UpdateCooperationApplication(updateCooperationApplicationCommand)
... ... @@ -59,6 +100,13 @@ func (controller *CooperationApplicationController) UpdateCooperationApplication
func (controller *CooperationApplicationController) GetCooperationApplication() {
cooperationApplicationService := service.NewCooperationApplicationService(nil)
getCooperationApplicationQuery := &query.GetCooperationApplicationQuery{}
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
getCooperationApplicationQuery.CompanyId = header.CompanyId
getCooperationApplicationQuery.OrgId = header.OrgId
getCooperationApplicationQuery.UserId = header.UserId
getCooperationApplicationQuery.UserBaseId = header.UserBaseId
// 解析路劲参数
cooperationApplicationId, _ := controller.GetInt64(":cooperationApplicationId")
getCooperationApplicationQuery.CooperationApplicationId = cooperationApplicationId
data, err := cooperationApplicationService.GetCooperationApplication(getCooperationApplicationQuery)
... ... @@ -68,7 +116,14 @@ func (controller *CooperationApplicationController) GetCooperationApplication()
func (controller *CooperationApplicationController) RemoveCooperationApplication() {
cooperationApplicationService := service.NewCooperationApplicationService(nil)
removeCooperationApplicationCommand := &command.RemoveCooperationApplicationCommand{}
controller.Unmarshal(removeCooperationApplicationCommand)
_ = controller.Unmarshal(removeCooperationApplicationCommand)
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
removeCooperationApplicationCommand.CompanyId = header.CompanyId
removeCooperationApplicationCommand.OrgId = header.OrgId
removeCooperationApplicationCommand.UserId = header.UserId
removeCooperationApplicationCommand.UserBaseId = header.UserBaseId
// 解析路径参数
cooperationApplicationId, _ := controller.GetInt64(":cooperationApplicationId")
removeCooperationApplicationCommand.CooperationApplicationId = cooperationApplicationId
data, err := cooperationApplicationService.RemoveCooperationApplication(removeCooperationApplicationCommand)
... ... @@ -78,6 +133,17 @@ func (controller *CooperationApplicationController) RemoveCooperationApplication
func (controller *CooperationApplicationController) SearchCooperationApplication() {
cooperationApplicationService := service.NewCooperationApplicationService(nil)
searchCooperationApplicationQuery := &query.SearchCooperationApplicationQuery{}
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
searchCooperationApplicationQuery.CompanyId = header.CompanyId
searchCooperationApplicationQuery.OrgId = header.OrgId
searchCooperationApplicationQuery.UserId = header.UserId
searchCooperationApplicationQuery.UserBaseId = header.UserBaseId
// 解析其他参数
pageSize, _ := controller.GetInt32("pageSize")
searchCooperationApplicationQuery.PageSize = pageSize
pageNumber, _ := controller.GetInt32("pageNumber")
searchCooperationApplicationQuery.PageNumber = pageNumber
data, err := cooperationApplicationService.SearchCooperationApplication(searchCooperationApplicationQuery)
controller.Response(data, err)
}
... ... @@ -85,10 +151,17 @@ func (controller *CooperationApplicationController) SearchCooperationApplication
func (controller *CooperationApplicationController) ListCooperationApplication() {
cooperationApplicationService := service.NewCooperationApplicationService(nil)
listCooperationApplicationQuery := &query.ListCooperationApplicationQuery{}
offset, _ := controller.GetInt("offset")
listCooperationApplicationQuery.Offset = offset
limit, _ := controller.GetInt("limit")
listCooperationApplicationQuery.Limit = limit
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
listCooperationApplicationQuery.CompanyId = header.CompanyId
listCooperationApplicationQuery.OrgId = header.OrgId
listCooperationApplicationQuery.UserId = header.UserId
listCooperationApplicationQuery.UserBaseId = header.UserBaseId
// 解析其他参数
pageSize, _ := controller.GetInt32("pageSize")
listCooperationApplicationQuery.PageSize = pageSize
pageNumber, _ := controller.GetInt32("pageNumber")
listCooperationApplicationQuery.PageNumber = pageNumber
data, err := cooperationApplicationService.ListCooperationApplication(listCooperationApplicationQuery)
controller.Response(data, err)
}
... ...
... ... @@ -13,7 +13,13 @@ type CooperationContractController struct {
func (controller *CooperationContractController) CreateCooperationContract() {
cooperationContractService := service.NewCooperationContractService(nil)
createCooperationContractCommand := &command.CreateCooperationContractCommand{}
controller.Unmarshal(createCooperationContractCommand)
_ = controller.Unmarshal(createCooperationContractCommand)
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
createCooperationContractCommand.CompanyId = header.CompanyId
createCooperationContractCommand.OrgId = header.OrgId
createCooperationContractCommand.UserId = header.UserId
createCooperationContractCommand.UserBaseId = header.UserBaseId
data, err := cooperationContractService.CreateCooperationContract(createCooperationContractCommand)
controller.Response(data, err)
}
... ... @@ -21,7 +27,13 @@ func (controller *CooperationContractController) CreateCooperationContract() {
func (controller *CooperationContractController) UpdateCooperationContract() {
cooperationContractService := service.NewCooperationContractService(nil)
updateCooperationContractCommand := &command.UpdateCooperationContractCommand{}
controller.Unmarshal(updateCooperationContractCommand)
_ = controller.Unmarshal(updateCooperationContractCommand)
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
updateCooperationContractCommand.CompanyId = header.CompanyId
updateCooperationContractCommand.OrgId = header.OrgId
updateCooperationContractCommand.UserId = header.UserId
updateCooperationContractCommand.UserBaseId = header.UserBaseId
cooperationContractId := controller.GetString(":cooperationContractId")
updateCooperationContractCommand.CooperationContractId = cooperationContractId
data, err := cooperationContractService.UpdateCooperationContract(updateCooperationContractCommand)
... ... @@ -31,6 +43,12 @@ func (controller *CooperationContractController) UpdateCooperationContract() {
func (controller *CooperationContractController) GetCooperationContract() {
cooperationContractService := service.NewCooperationContractService(nil)
getCooperationContractQuery := &query.GetCooperationContractQuery{}
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
getCooperationContractQuery.CompanyId = header.CompanyId
getCooperationContractQuery.OrgId = header.OrgId
getCooperationContractQuery.UserId = header.UserId
getCooperationContractQuery.UserBaseId = header.UserBaseId
cooperationContractId, _ := controller.GetInt64(":cooperationContractId")
getCooperationContractQuery.CooperationContractId = cooperationContractId
data, err := cooperationContractService.GetCooperationContract(getCooperationContractQuery)
... ... @@ -40,7 +58,13 @@ func (controller *CooperationContractController) GetCooperationContract() {
func (controller *CooperationContractController) RemoveCooperationContract() {
cooperationContractService := service.NewCooperationContractService(nil)
removeCooperationContractCommand := &command.RemoveCooperationContractCommand{}
controller.Unmarshal(removeCooperationContractCommand)
_ = controller.Unmarshal(removeCooperationContractCommand)
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
removeCooperationContractCommand.CompanyId = header.CompanyId
removeCooperationContractCommand.OrgId = header.OrgId
removeCooperationContractCommand.UserId = header.UserId
removeCooperationContractCommand.UserBaseId = header.UserBaseId
cooperationContractId, _ := controller.GetInt64(":cooperationContractId")
removeCooperationContractCommand.CooperationContractId = cooperationContractId
data, err := cooperationContractService.RemoveCooperationContract(removeCooperationContractCommand)
... ... @@ -50,6 +74,16 @@ func (controller *CooperationContractController) RemoveCooperationContract() {
func (controller *CooperationContractController) SearchCooperationContract() {
cooperationContractService := service.NewCooperationContractService(nil)
searchCooperationContractQuery := &query.SearchCooperationContractQuery{}
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
searchCooperationContractQuery.CompanyId = header.CompanyId
searchCooperationContractQuery.OrgId = header.OrgId
searchCooperationContractQuery.UserId = header.UserId
searchCooperationContractQuery.UserBaseId = header.UserBaseId
pageSize, _ := controller.GetInt32("pageSize")
searchCooperationContractQuery.PageSize = pageSize
pageNumber, _ := controller.GetInt32("pageNumber")
searchCooperationContractQuery.PageNumber = pageNumber
data, err := cooperationContractService.SearchCooperationContract(searchCooperationContractQuery)
controller.Response(data, err)
}
... ... @@ -57,6 +91,16 @@ func (controller *CooperationContractController) SearchCooperationContract() {
func (controller *CooperationContractController) SearchCooperationContractByUndertaker() {
cooperationContractService := service.NewCooperationContractService(nil)
searchCooperationContractByUndertakerQuery := &query.SearchCooperationContractByUndertakerQuery{}
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
searchCooperationContractByUndertakerQuery.CompanyId = header.CompanyId
searchCooperationContractByUndertakerQuery.OrgId = header.OrgId
searchCooperationContractByUndertakerQuery.UserId = header.UserId
searchCooperationContractByUndertakerQuery.UserBaseId = header.UserBaseId
pageSize, _ := controller.GetInt32("pageSize")
searchCooperationContractByUndertakerQuery.PageSize = pageSize
pageNumber, _ := controller.GetInt32("pageNumber")
searchCooperationContractByUndertakerQuery.PageNumber = pageNumber
data, err := cooperationContractService.SearchCooperationContractByUndertaker(searchCooperationContractByUndertakerQuery)
controller.Response(data, err)
}
... ... @@ -64,6 +108,12 @@ func (controller *CooperationContractController) SearchCooperationContractByUnde
func (controller *CooperationContractController) ListCooperationContract() {
cooperationContractService := service.NewCooperationContractService(nil)
listCooperationContractQuery := &query.ListCooperationContractQuery{}
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
listCooperationContractQuery.CompanyId = header.CompanyId
listCooperationContractQuery.OrgId = header.OrgId
listCooperationContractQuery.UserId = header.UserId
listCooperationContractQuery.UserBaseId = header.UserBaseId
pageSize, _ := controller.GetInt32("pageSize")
listCooperationContractQuery.PageSize = pageSize
pageNumber, _ := controller.GetInt32("pageNumber")
... ...
... ... @@ -13,7 +13,13 @@ type CooperationModeController struct {
func (controller *CooperationModeController) CreateCooperationMode() {
cooperationModeService := service.NewCooperationModeService(nil)
createCooperationModeCommand := &command.CreateCooperationModeCommand{}
controller.Unmarshal(createCooperationModeCommand)
_ = controller.Unmarshal(createCooperationModeCommand)
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
createCooperationModeCommand.CompanyId = header.CompanyId
createCooperationModeCommand.OrgId = header.OrgId
createCooperationModeCommand.UserId = header.UserId
createCooperationModeCommand.UserBaseId = header.UserBaseId
data, err := cooperationModeService.CreateCooperationMode(createCooperationModeCommand)
controller.Response(data, err)
}
... ... @@ -21,7 +27,13 @@ func (controller *CooperationModeController) CreateCooperationMode() {
func (controller *CooperationModeController) UpdateCooperationMode() {
cooperationModeService := service.NewCooperationModeService(nil)
updateCooperationModeCommand := &command.UpdateCooperationModeCommand{}
controller.Unmarshal(updateCooperationModeCommand)
_ = controller.Unmarshal(updateCooperationModeCommand)
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
updateCooperationModeCommand.CompanyId = header.CompanyId
updateCooperationModeCommand.OrgId = header.OrgId
updateCooperationModeCommand.UserId = header.UserId
updateCooperationModeCommand.UserBaseId = header.UserBaseId
cooperationModeId := controller.GetString(":cooperationModeId")
updateCooperationModeCommand.CooperationModeId = cooperationModeId
data, err := cooperationModeService.UpdateCooperationMode(updateCooperationModeCommand)
... ... @@ -31,6 +43,12 @@ func (controller *CooperationModeController) UpdateCooperationMode() {
func (controller *CooperationModeController) GetCooperationMode() {
cooperationModeService := service.NewCooperationModeService(nil)
getCooperationModeQuery := &query.GetCooperationModeQuery{}
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
getCooperationModeQuery.CompanyId = header.CompanyId
getCooperationModeQuery.OrgId = header.OrgId
getCooperationModeQuery.UserId = header.UserId
getCooperationModeQuery.UserBaseId = header.UserBaseId
cooperationModeId, _ := controller.GetInt64(":cooperationModeId")
getCooperationModeQuery.CooperationModeId = cooperationModeId
data, err := cooperationModeService.GetCooperationMode(getCooperationModeQuery)
... ... @@ -40,7 +58,13 @@ func (controller *CooperationModeController) GetCooperationMode() {
func (controller *CooperationModeController) RemoveCooperationMode() {
cooperationModeService := service.NewCooperationModeService(nil)
removeCooperationModeCommand := &command.RemoveCooperationModeCommand{}
controller.Unmarshal(removeCooperationModeCommand)
_ = controller.Unmarshal(removeCooperationModeCommand)
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
removeCooperationModeCommand.CompanyId = header.CompanyId
removeCooperationModeCommand.OrgId = header.OrgId
removeCooperationModeCommand.UserId = header.UserId
removeCooperationModeCommand.UserBaseId = header.UserBaseId
cooperationModeId, _ := controller.GetInt64(":cooperationModeId")
removeCooperationModeCommand.CooperationModeId = cooperationModeId
data, err := cooperationModeService.RemoveCooperationMode(removeCooperationModeCommand)
... ... @@ -50,6 +74,12 @@ func (controller *CooperationModeController) RemoveCooperationMode() {
func (controller *CooperationModeController) SearchCooperationMode() {
cooperationModeService := service.NewCooperationModeService(nil)
searchCooperationModeQuery := &query.SearchCooperationModeQuery{}
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
searchCooperationModeQuery.CompanyId = header.CompanyId
searchCooperationModeQuery.OrgId = header.OrgId
searchCooperationModeQuery.UserId = header.UserId
searchCooperationModeQuery.UserBaseId = header.UserBaseId
data, err := cooperationModeService.SearchCooperationMode(searchCooperationModeQuery)
controller.Response(data, err)
}
... ... @@ -57,10 +87,16 @@ func (controller *CooperationModeController) SearchCooperationMode() {
func (controller *CooperationModeController) ListCooperationMode() {
cooperationModeService := service.NewCooperationModeService(nil)
listCooperationModeQuery := &query.ListCooperationModeQuery{}
offset, _ := controller.GetInt("offset")
listCooperationModeQuery.Offset = offset
limit, _ := controller.GetInt("limit")
listCooperationModeQuery.Limit = limit
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
listCooperationModeQuery.CompanyId = header.CompanyId
listCooperationModeQuery.OrgId = header.OrgId
listCooperationModeQuery.UserId = header.UserId
listCooperationModeQuery.UserBaseId = header.UserBaseId
pageSize, _ := controller.GetInt32("pageSize")
listCooperationModeQuery.PageSize = pageSize
pageNumber, _ := controller.GetInt32("pageNumber")
listCooperationModeQuery.PageNumber = pageNumber
data, err := cooperationModeService.ListCooperationMode(listCooperationModeQuery)
controller.Response(data, err)
}
... ...
... ... @@ -13,7 +13,13 @@ type CooperationProjectController struct {
func (controller *CooperationProjectController) ReleaseCooperationProject() {
cooperationProjectService := service.NewCooperationProjectService(nil)
releaseCooperationProjectCommand := &command.ReleaseCooperationProjectCommand{}
controller.Unmarshal(releaseCooperationProjectCommand)
_ = controller.Unmarshal(releaseCooperationProjectCommand)
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
releaseCooperationProjectCommand.CompanyId = header.CompanyId
releaseCooperationProjectCommand.OrgId = header.OrgId
releaseCooperationProjectCommand.UserId = header.UserId
releaseCooperationProjectCommand.UserBaseId = header.UserBaseId
data, err := cooperationProjectService.ReleaseCooperationProject(releaseCooperationProjectCommand)
controller.Response(data, err)
}
... ... @@ -21,7 +27,13 @@ func (controller *CooperationProjectController) ReleaseCooperationProject() {
func (controller *CooperationProjectController) CreateCooperationProject() {
cooperationProjectService := service.NewCooperationProjectService(nil)
createCooperationProjectCommand := &command.CreateCooperationProjectCommand{}
controller.Unmarshal(createCooperationProjectCommand)
_ = controller.Unmarshal(createCooperationProjectCommand)
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
createCooperationProjectCommand.CompanyId = header.CompanyId
createCooperationProjectCommand.OrgId = header.OrgId
createCooperationProjectCommand.UserId = header.UserId
createCooperationProjectCommand.UserBaseId = header.UserBaseId
data, err := cooperationProjectService.CreateCooperationProject(createCooperationProjectCommand)
controller.Response(data, err)
}
... ... @@ -29,7 +41,13 @@ func (controller *CooperationProjectController) CreateCooperationProject() {
func (controller *CooperationProjectController) UpdateCooperationProject() {
cooperationProjectService := service.NewCooperationProjectService(nil)
updateCooperationProjectCommand := &command.UpdateCooperationProjectCommand{}
controller.Unmarshal(updateCooperationProjectCommand)
_ = controller.Unmarshal(updateCooperationProjectCommand)
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
updateCooperationProjectCommand.CompanyId = header.CompanyId
updateCooperationProjectCommand.OrgId = header.OrgId
updateCooperationProjectCommand.UserId = header.UserId
updateCooperationProjectCommand.UserBaseId = header.UserBaseId
cooperationProjectId := controller.GetString(":cooperationProjectId")
updateCooperationProjectCommand.CooperationProjectId = cooperationProjectId
data, err := cooperationProjectService.UpdateCooperationProject(updateCooperationProjectCommand)
... ... @@ -39,6 +57,12 @@ func (controller *CooperationProjectController) UpdateCooperationProject() {
func (controller *CooperationProjectController) GetCooperationProject() {
cooperationProjectService := service.NewCooperationProjectService(nil)
getCooperationProjectQuery := &query.GetCooperationProjectQuery{}
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
getCooperationProjectQuery.CompanyId = header.CompanyId
getCooperationProjectQuery.OrgId = header.OrgId
getCooperationProjectQuery.UserId = header.UserId
getCooperationProjectQuery.UserBaseId = header.UserBaseId
cooperationProjectId, _ := controller.GetInt64(":cooperationProjectId")
getCooperationProjectQuery.CooperationProjectId = cooperationProjectId
data, err := cooperationProjectService.GetCooperationProject(getCooperationProjectQuery)
... ... @@ -48,7 +72,13 @@ func (controller *CooperationProjectController) GetCooperationProject() {
func (controller *CooperationProjectController) RemoveCooperationProject() {
cooperationProjectService := service.NewCooperationProjectService(nil)
removeCooperationProjectCommand := &command.RemoveCooperationProjectCommand{}
controller.Unmarshal(removeCooperationProjectCommand)
_ = controller.Unmarshal(removeCooperationProjectCommand)
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
removeCooperationProjectCommand.CompanyId = header.CompanyId
removeCooperationProjectCommand.OrgId = header.OrgId
removeCooperationProjectCommand.UserId = header.UserId
removeCooperationProjectCommand.UserBaseId = header.UserBaseId
cooperationProjectId, _ := controller.GetInt64(":cooperationProjectId")
removeCooperationProjectCommand.CooperationProjectId = cooperationProjectId
data, err := cooperationProjectService.RemoveCooperationProject(removeCooperationProjectCommand)
... ... @@ -58,6 +88,12 @@ func (controller *CooperationProjectController) RemoveCooperationProject() {
func (controller *CooperationProjectController) SearchCooperationProject() {
cooperationProjectService := service.NewCooperationProjectService(nil)
searchCooperationProjectQuery := &query.SearchCooperationProjectQuery{}
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
searchCooperationProjectQuery.CompanyId = header.CompanyId
searchCooperationProjectQuery.OrgId = header.OrgId
searchCooperationProjectQuery.UserId = header.UserId
searchCooperationProjectQuery.UserBaseId = header.UserBaseId
data, err := cooperationProjectService.SearchCooperationProject(searchCooperationProjectQuery)
controller.Response(data, err)
}
... ... @@ -65,6 +101,12 @@ func (controller *CooperationProjectController) SearchCooperationProject() {
func (controller *CooperationProjectController) CheckUndertaker() {
cooperationProjectService := service.NewCooperationProjectService(nil)
checkUndertakerQuery := &query.CheckUndertakerQuery{}
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
checkUndertakerQuery.CompanyId = header.CompanyId
checkUndertakerQuery.OrgId = header.OrgId
checkUndertakerQuery.UserId = header.UserId
checkUndertakerQuery.UserBaseId = header.UserBaseId
data, err := cooperationProjectService.CheckUndertaker(checkUndertakerQuery)
controller.Response(data, err)
}
... ... @@ -72,6 +114,12 @@ func (controller *CooperationProjectController) CheckUndertaker() {
func (controller *CooperationProjectController) ListCooperationProject() {
cooperationProjectService := service.NewCooperationProjectService(nil)
listCooperationProjectQuery := &query.ListCooperationProjectQuery{}
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
listCooperationProjectQuery.CompanyId = header.CompanyId
listCooperationProjectQuery.OrgId = header.OrgId
listCooperationProjectQuery.UserId = header.UserId
listCooperationProjectQuery.UserBaseId = header.UserBaseId
pageSize, _ := controller.GetInt32("pageSize")
listCooperationProjectQuery.PageSize = pageSize
pageNumber, _ := controller.GetInt32("pageNumber")
... ...
... ... @@ -13,7 +13,13 @@ type CreditAccountController struct {
func (controller *CreditAccountController) CreateCreditAccount() {
creditAccountService := service.NewCreditAccountService(nil)
createCreditAccountCommand := &command.CreateCreditAccountCommand{}
controller.Unmarshal(createCreditAccountCommand)
_ = controller.Unmarshal(createCreditAccountCommand)
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
createCreditAccountCommand.CompanyId = header.CompanyId
createCreditAccountCommand.OrgId = header.OrgId
createCreditAccountCommand.UserId = header.UserId
createCreditAccountCommand.UserBaseId = header.UserBaseId
data, err := creditAccountService.CreateCreditAccount(createCreditAccountCommand)
controller.Response(data, err)
}
... ... @@ -21,7 +27,13 @@ func (controller *CreditAccountController) CreateCreditAccount() {
func (controller *CreditAccountController) UpdateCreditAccount() {
creditAccountService := service.NewCreditAccountService(nil)
updateCreditAccountCommand := &command.UpdateCreditAccountCommand{}
controller.Unmarshal(updateCreditAccountCommand)
_ = controller.Unmarshal(updateCreditAccountCommand)
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
updateCreditAccountCommand.CompanyId = header.CompanyId
updateCreditAccountCommand.OrgId = header.OrgId
updateCreditAccountCommand.UserId = header.UserId
updateCreditAccountCommand.UserBaseId = header.UserBaseId
creditAccountId, _ := controller.GetInt64(":creditAccountId")
updateCreditAccountCommand.CreditAccountId = creditAccountId
data, err := creditAccountService.UpdateCreditAccount(updateCreditAccountCommand)
... ... @@ -31,6 +43,12 @@ func (controller *CreditAccountController) UpdateCreditAccount() {
func (controller *CreditAccountController) GetCreditAccount() {
creditAccountService := service.NewCreditAccountService(nil)
getCreditAccountQuery := &query.GetCreditAccountQuery{}
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
getCreditAccountQuery.CompanyId = header.CompanyId
getCreditAccountQuery.OrgId = header.OrgId
getCreditAccountQuery.UserId = header.UserId
getCreditAccountQuery.UserBaseId = header.UserBaseId
creditAccountId, _ := controller.GetInt64(":creditAccountId")
getCreditAccountQuery.CreditAccountId = creditAccountId
data, err := creditAccountService.GetCreditAccount(getCreditAccountQuery)
... ... @@ -40,7 +58,13 @@ func (controller *CreditAccountController) GetCreditAccount() {
func (controller *CreditAccountController) RemoveCreditAccount() {
creditAccountService := service.NewCreditAccountService(nil)
removeCreditAccountCommand := &command.RemoveCreditAccountCommand{}
controller.Unmarshal(removeCreditAccountCommand)
_ = controller.Unmarshal(removeCreditAccountCommand)
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
removeCreditAccountCommand.CompanyId = header.CompanyId
removeCreditAccountCommand.OrgId = header.OrgId
removeCreditAccountCommand.UserId = header.UserId
removeCreditAccountCommand.UserBaseId = header.UserBaseId
creditAccountId, _ := controller.GetInt64(":creditAccountId")
removeCreditAccountCommand.CreditAccountId = creditAccountId
data, err := creditAccountService.RemoveCreditAccount(removeCreditAccountCommand)
... ... @@ -50,6 +74,12 @@ func (controller *CreditAccountController) RemoveCreditAccount() {
func (controller *CreditAccountController) SearchCreditAccount() {
creditAccountService := service.NewCreditAccountService(nil)
searchCreditAccountQuery := &query.SearchCreditAccountQuery{}
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
searchCreditAccountQuery.CompanyId = header.CompanyId
searchCreditAccountQuery.OrgId = header.OrgId
searchCreditAccountQuery.UserId = header.UserId
searchCreditAccountQuery.UserBaseId = header.UserBaseId
data, err := creditAccountService.SearchCreditAccount(searchCreditAccountQuery)
controller.Response(data, err)
}
... ... @@ -57,7 +87,13 @@ func (controller *CreditAccountController) SearchCreditAccount() {
func (controller *CreditAccountController) PayCreditAccount() {
creditAccountService := service.NewCreditAccountService(nil)
payCreditAccountCommand := &command.PayCreditAccountCommand{}
controller.Unmarshal(payCreditAccountCommand)
_ = controller.Unmarshal(payCreditAccountCommand)
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
payCreditAccountCommand.CompanyId = header.CompanyId
payCreditAccountCommand.OrgId = header.OrgId
payCreditAccountCommand.UserId = header.UserId
payCreditAccountCommand.UserBaseId = header.UserBaseId
data, err := creditAccountService.PayCreditAccount(payCreditAccountCommand)
controller.Response(data, err)
}
... ... @@ -65,10 +101,16 @@ func (controller *CreditAccountController) PayCreditAccount() {
func (controller *CreditAccountController) ListCreditAccount() {
creditAccountService := service.NewCreditAccountService(nil)
listCreditAccountQuery := &query.ListCreditAccountQuery{}
offset, _ := controller.GetInt("offset")
listCreditAccountQuery.Offset = offset
limit, _ := controller.GetInt("limit")
listCreditAccountQuery.Limit = limit
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
listCreditAccountQuery.CompanyId = header.CompanyId
listCreditAccountQuery.OrgId = header.OrgId
listCreditAccountQuery.UserId = header.UserId
listCreditAccountQuery.UserBaseId = header.UserBaseId
pageSize, _ := controller.GetInt32("pageSize")
listCreditAccountQuery.PageSize = pageSize
pageNumber, _ := controller.GetInt32("pageNumber")
listCreditAccountQuery.PageNumber = pageNumber
data, err := creditAccountService.ListCreditAccount(listCreditAccountQuery)
controller.Response(data, err)
}
... ...
... ... @@ -13,7 +13,13 @@ type DividendsEstimateController struct {
func (controller *DividendsEstimateController) CreateDividendsEstimate() {
dividendsEstimateService := service.NewDividendsEstimateService(nil)
createDividendsEstimateCommand := &command.CreateDividendsEstimateCommand{}
controller.Unmarshal(createDividendsEstimateCommand)
_ = controller.Unmarshal(createDividendsEstimateCommand)
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
createDividendsEstimateCommand.CompanyId = header.CompanyId
createDividendsEstimateCommand.OrgId = header.OrgId
createDividendsEstimateCommand.UserId = header.UserId
createDividendsEstimateCommand.UserBaseId = header.UserBaseId
data, err := dividendsEstimateService.CreateDividendsEstimate(createDividendsEstimateCommand)
controller.Response(data, err)
}
... ... @@ -21,7 +27,13 @@ func (controller *DividendsEstimateController) CreateDividendsEstimate() {
func (controller *DividendsEstimateController) UpdateDividendsEstimate() {
dividendsEstimateService := service.NewDividendsEstimateService(nil)
updateDividendsEstimateCommand := &command.UpdateDividendsEstimateCommand{}
controller.Unmarshal(updateDividendsEstimateCommand)
_ = controller.Unmarshal(updateDividendsEstimateCommand)
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
updateDividendsEstimateCommand.CompanyId = header.CompanyId
updateDividendsEstimateCommand.OrgId = header.OrgId
updateDividendsEstimateCommand.UserId = header.UserId
updateDividendsEstimateCommand.UserBaseId = header.UserBaseId
dividendsEstimateId, _ := controller.GetInt64(":dividendsEstimateId")
updateDividendsEstimateCommand.DividendsEstimateId = dividendsEstimateId
data, err := dividendsEstimateService.UpdateDividendsEstimate(updateDividendsEstimateCommand)
... ... @@ -31,6 +43,12 @@ func (controller *DividendsEstimateController) UpdateDividendsEstimate() {
func (controller *DividendsEstimateController) GetDividendsEstimate() {
dividendsEstimateService := service.NewDividendsEstimateService(nil)
getDividendsEstimateQuery := &query.GetDividendsEstimateQuery{}
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
getDividendsEstimateQuery.CompanyId = header.CompanyId
getDividendsEstimateQuery.OrgId = header.OrgId
getDividendsEstimateQuery.UserId = header.UserId
getDividendsEstimateQuery.UserBaseId = header.UserBaseId
dividendsEstimateId := controller.GetString(":dividendsEstimateId")
getDividendsEstimateQuery.DividendsEstimateId = dividendsEstimateId
data, err := dividendsEstimateService.GetDividendsEstimate(getDividendsEstimateQuery)
... ... @@ -40,7 +58,13 @@ func (controller *DividendsEstimateController) GetDividendsEstimate() {
func (controller *DividendsEstimateController) RemoveDividendsEstimate() {
dividendsEstimateService := service.NewDividendsEstimateService(nil)
removeDividendsEstimateCommand := &command.RemoveDividendsEstimateCommand{}
controller.Unmarshal(removeDividendsEstimateCommand)
_ = controller.Unmarshal(removeDividendsEstimateCommand)
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
removeDividendsEstimateCommand.CompanyId = header.CompanyId
removeDividendsEstimateCommand.OrgId = header.OrgId
removeDividendsEstimateCommand.UserId = header.UserId
removeDividendsEstimateCommand.UserBaseId = header.UserBaseId
dividendsEstimateId, _ := controller.GetInt64(":dividendsEstimateId")
removeDividendsEstimateCommand.DividendsEstimateId = dividendsEstimateId
data, err := dividendsEstimateService.RemoveDividendsEstimate(removeDividendsEstimateCommand)
... ... @@ -50,7 +74,13 @@ func (controller *DividendsEstimateController) RemoveDividendsEstimate() {
func (controller *DividendsEstimateController) CancelDividendsEstimate() {
dividendsEstimateService := service.NewDividendsEstimateService(nil)
cancelDividendsEstimateCommand := &command.CancelDividendsEstimateCommand{}
controller.Unmarshal(cancelDividendsEstimateCommand)
_ = controller.Unmarshal(cancelDividendsEstimateCommand)
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
cancelDividendsEstimateCommand.CompanyId = header.CompanyId
cancelDividendsEstimateCommand.OrgId = header.OrgId
cancelDividendsEstimateCommand.UserId = header.UserId
cancelDividendsEstimateCommand.UserBaseId = header.UserBaseId
dividendsEstimateId := controller.GetString(":dividendsEstimateId")
cancelDividendsEstimateCommand.DividendsEstimateId = dividendsEstimateId
data, err := dividendsEstimateService.CancelDividendsEstimate(cancelDividendsEstimateCommand)
... ... @@ -60,6 +90,12 @@ func (controller *DividendsEstimateController) CancelDividendsEstimate() {
func (controller *DividendsEstimateController) SearchDividendsEstimate() {
dividendsEstimateService := service.NewDividendsEstimateService(nil)
searchDividendsEstimateQuery := &query.SearchDividendsEstimateQuery{}
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
searchDividendsEstimateQuery.CompanyId = header.CompanyId
searchDividendsEstimateQuery.OrgId = header.OrgId
searchDividendsEstimateQuery.UserId = header.UserId
searchDividendsEstimateQuery.UserBaseId = header.UserBaseId
data, err := dividendsEstimateService.SearchDividendsEstimate(searchDividendsEstimateQuery)
controller.Response(data, err)
}
... ... @@ -67,7 +103,13 @@ func (controller *DividendsEstimateController) SearchDividendsEstimate() {
func (controller *DividendsEstimateController) EstimateDividendsIncentives() {
dividendsEstimateService := service.NewDividendsEstimateService(nil)
estimateDividendsIncentivesCommand := &command.EstimateDividendsIncentivesCommand{}
controller.Unmarshal(estimateDividendsIncentivesCommand)
_ = controller.Unmarshal(estimateDividendsIncentivesCommand)
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
estimateDividendsIncentivesCommand.CompanyId = header.CompanyId
estimateDividendsIncentivesCommand.OrgId = header.OrgId
estimateDividendsIncentivesCommand.UserId = header.UserId
estimateDividendsIncentivesCommand.UserBaseId = header.UserBaseId
data, err := dividendsEstimateService.EstimateDividendsIncentives(estimateDividendsIncentivesCommand)
controller.Response(data, err)
}
... ... @@ -75,7 +117,13 @@ func (controller *DividendsEstimateController) EstimateDividendsIncentives() {
func (controller *DividendsEstimateController) EstimateMoneyIncentives() {
dividendsEstimateService := service.NewDividendsEstimateService(nil)
estimateMoneyIncentivesCommand := &command.EstimateMoneyIncentivesCommand{}
controller.Unmarshal(estimateMoneyIncentivesCommand)
_ = controller.Unmarshal(estimateMoneyIncentivesCommand)
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
estimateMoneyIncentivesCommand.CompanyId = header.CompanyId
estimateMoneyIncentivesCommand.OrgId = header.OrgId
estimateMoneyIncentivesCommand.UserId = header.UserId
estimateMoneyIncentivesCommand.UserBaseId = header.UserBaseId
data, err := dividendsEstimateService.EstimateMoneyIncentives(estimateMoneyIncentivesCommand)
controller.Response(data, err)
}
... ... @@ -83,6 +131,12 @@ func (controller *DividendsEstimateController) EstimateMoneyIncentives() {
func (controller *DividendsEstimateController) ListMoneyIncentives() {
dividendsEstimateService := service.NewDividendsEstimateService(nil)
listMoneyIncentivesQuery := &query.ListMoneyIncentivesQuery{}
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
listMoneyIncentivesQuery.CompanyId = header.CompanyId
listMoneyIncentivesQuery.OrgId = header.OrgId
listMoneyIncentivesQuery.UserId = header.UserId
listMoneyIncentivesQuery.UserBaseId = header.UserBaseId
data, err := dividendsEstimateService.ListMoneyIncentives(listMoneyIncentivesQuery)
controller.Response(data, err)
}
... ... @@ -90,6 +144,12 @@ func (controller *DividendsEstimateController) ListMoneyIncentives() {
func (controller *DividendsEstimateController) SearchMoneyIncentives() {
dividendsEstimateService := service.NewDividendsEstimateService(nil)
searchMoneyIncentivesQuery := &query.SearchMoneyIncentivesQuery{}
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
searchMoneyIncentivesQuery.CompanyId = header.CompanyId
searchMoneyIncentivesQuery.OrgId = header.OrgId
searchMoneyIncentivesQuery.UserId = header.UserId
searchMoneyIncentivesQuery.UserBaseId = header.UserBaseId
data, err := dividendsEstimateService.SearchMoneyIncentives(searchMoneyIncentivesQuery)
controller.Response(data, err)
}
... ... @@ -97,6 +157,12 @@ func (controller *DividendsEstimateController) SearchMoneyIncentives() {
func (controller *DividendsEstimateController) ListDividendsIncentives() {
dividendsEstimateService := service.NewDividendsEstimateService(nil)
listDividendsIncentivesQuery := &query.ListDividendsIncentivesQuery{}
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
listDividendsIncentivesQuery.CompanyId = header.CompanyId
listDividendsIncentivesQuery.OrgId = header.OrgId
listDividendsIncentivesQuery.UserId = header.UserId
listDividendsIncentivesQuery.UserBaseId = header.UserBaseId
data, err := dividendsEstimateService.ListDividendsIncentives(listDividendsIncentivesQuery)
controller.Response(data, err)
}
... ... @@ -104,6 +170,12 @@ func (controller *DividendsEstimateController) ListDividendsIncentives() {
func (controller *DividendsEstimateController) SearchDividendsIncentives() {
dividendsEstimateService := service.NewDividendsEstimateService(nil)
searchDividendsIncentivesQuery := &query.SearchDividendsIncentivesQuery{}
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
searchDividendsIncentivesQuery.CompanyId = header.CompanyId
searchDividendsIncentivesQuery.OrgId = header.OrgId
searchDividendsIncentivesQuery.UserId = header.UserId
searchDividendsIncentivesQuery.UserBaseId = header.UserBaseId
data, err := dividendsEstimateService.SearchDividendsIncentives(searchDividendsIncentivesQuery)
controller.Response(data, err)
}
... ... @@ -111,6 +183,12 @@ func (controller *DividendsEstimateController) SearchDividendsIncentives() {
func (controller *DividendsEstimateController) ListDividendsEstimate() {
dividendsEstimateService := service.NewDividendsEstimateService(nil)
listDividendsEstimateQuery := &query.ListDividendsEstimateQuery{}
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
listDividendsEstimateQuery.CompanyId = header.CompanyId
listDividendsEstimateQuery.OrgId = header.OrgId
listDividendsEstimateQuery.UserId = header.UserId
listDividendsEstimateQuery.UserBaseId = header.UserBaseId
pageSize, _ := controller.GetInt32("pageSize")
listDividendsEstimateQuery.PageSize = pageSize
pageNumber, _ := controller.GetInt32("pageNumber")
... ...
... ... @@ -13,7 +13,13 @@ type DividendsOrderController struct {
func (controller *DividendsOrderController) CreateDividendsOrder() {
dividendsOrderService := service.NewDividendsOrderService(nil)
createDividendsOrderCommand := &command.CreateDividendsOrderCommand{}
controller.Unmarshal(createDividendsOrderCommand)
_ = controller.Unmarshal(createDividendsOrderCommand)
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
createDividendsOrderCommand.CompanyId = header.CompanyId
createDividendsOrderCommand.OrgId = header.OrgId
createDividendsOrderCommand.UserId = header.UserId
createDividendsOrderCommand.UserBaseId = header.UserBaseId
data, err := dividendsOrderService.CreateDividendsOrder(createDividendsOrderCommand)
controller.Response(data, err)
}
... ... @@ -21,7 +27,13 @@ func (controller *DividendsOrderController) CreateDividendsOrder() {
func (controller *DividendsOrderController) UpdateDividendsOrder() {
dividendsOrderService := service.NewDividendsOrderService(nil)
updateDividendsOrderCommand := &command.UpdateDividendsOrderCommand{}
controller.Unmarshal(updateDividendsOrderCommand)
_ = controller.Unmarshal(updateDividendsOrderCommand)
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
updateDividendsOrderCommand.CompanyId = header.CompanyId
updateDividendsOrderCommand.OrgId = header.OrgId
updateDividendsOrderCommand.UserId = header.UserId
updateDividendsOrderCommand.UserBaseId = header.UserBaseId
dividendsOrderId := controller.GetString(":dividendsOrderId")
updateDividendsOrderCommand.DividendsOrderId = dividendsOrderId
data, err := dividendsOrderService.UpdateDividendsOrder(updateDividendsOrderCommand)
... ... @@ -31,6 +43,12 @@ func (controller *DividendsOrderController) UpdateDividendsOrder() {
func (controller *DividendsOrderController) GetDividendsOrder() {
dividendsOrderService := service.NewDividendsOrderService(nil)
getDividendsOrderQuery := &query.GetDividendsOrderQuery{}
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
getDividendsOrderQuery.CompanyId = header.CompanyId
getDividendsOrderQuery.OrgId = header.OrgId
getDividendsOrderQuery.UserId = header.UserId
getDividendsOrderQuery.UserBaseId = header.UserBaseId
dividendsOrderId, _ := controller.GetInt64(":dividendsOrderId")
getDividendsOrderQuery.DividendsOrderId = dividendsOrderId
data, err := dividendsOrderService.GetDividendsOrder(getDividendsOrderQuery)
... ... @@ -40,7 +58,13 @@ func (controller *DividendsOrderController) GetDividendsOrder() {
func (controller *DividendsOrderController) RemoveDividendsOrder() {
dividendsOrderService := service.NewDividendsOrderService(nil)
removeDividendsOrderCommand := &command.RemoveDividendsOrderCommand{}
controller.Unmarshal(removeDividendsOrderCommand)
_ = controller.Unmarshal(removeDividendsOrderCommand)
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
removeDividendsOrderCommand.CompanyId = header.CompanyId
removeDividendsOrderCommand.OrgId = header.OrgId
removeDividendsOrderCommand.UserId = header.UserId
removeDividendsOrderCommand.UserBaseId = header.UserBaseId
dividendsOrderId := controller.GetString(":dividendsOrderId")
removeDividendsOrderCommand.DividendsOrderId = dividendsOrderId
data, err := dividendsOrderService.RemoveDividendsOrder(removeDividendsOrderCommand)
... ... @@ -50,6 +74,12 @@ func (controller *DividendsOrderController) RemoveDividendsOrder() {
func (controller *DividendsOrderController) SearchDividendsOrder() {
dividendsOrderService := service.NewDividendsOrderService(nil)
searchDividendsOrderQuery := &query.SearchDividendsOrderQuery{}
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
searchDividendsOrderQuery.CompanyId = header.CompanyId
searchDividendsOrderQuery.OrgId = header.OrgId
searchDividendsOrderQuery.UserId = header.UserId
searchDividendsOrderQuery.UserBaseId = header.UserBaseId
data, err := dividendsOrderService.SearchDividendsOrder(searchDividendsOrderQuery)
controller.Response(data, err)
}
... ... @@ -57,6 +87,12 @@ func (controller *DividendsOrderController) SearchDividendsOrder() {
func (controller *DividendsOrderController) SearchDividendsOrderNumber() {
dividendsOrderService := service.NewDividendsOrderService(nil)
searchDividendsOrderNumberQuery := &query.SearchDividendsOrderNumberQuery{}
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
searchDividendsOrderNumberQuery.CompanyId = header.CompanyId
searchDividendsOrderNumberQuery.OrgId = header.OrgId
searchDividendsOrderNumberQuery.UserId = header.UserId
searchDividendsOrderNumberQuery.UserBaseId = header.UserBaseId
data, err := dividendsOrderService.SearchDividendsOrderNumber(searchDividendsOrderNumberQuery)
controller.Response(data, err)
}
... ... @@ -64,6 +100,12 @@ func (controller *DividendsOrderController) SearchDividendsOrderNumber() {
func (controller *DividendsOrderController) ListDividendsOrders() {
dividendsOrderService := service.NewDividendsOrderService(nil)
listDividendsOrdersQuery := &query.ListDividendsOrdersQuery{}
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
listDividendsOrdersQuery.CompanyId = header.CompanyId
listDividendsOrdersQuery.OrgId = header.OrgId
listDividendsOrdersQuery.UserId = header.UserId
listDividendsOrdersQuery.UserBaseId = header.UserBaseId
pageSize, _ := controller.GetInt32("pageSize")
listDividendsOrdersQuery.PageSize = pageSize
pageNumber, _ := controller.GetInt32("pageNumber")
... ...
... ... @@ -13,7 +13,13 @@ type DividendsReturnedOrderController struct {
func (controller *DividendsReturnedOrderController) CreateDividendsReturnedOrder() {
dividendsReturnedOrderService := service.NewDividendsReturnedOrderService(nil)
createDividendsReturnedOrderCommand := &command.CreateDividendsReturnedOrderCommand{}
controller.Unmarshal(createDividendsReturnedOrderCommand)
_ = controller.Unmarshal(createDividendsReturnedOrderCommand)
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
createDividendsReturnedOrderCommand.CompanyId = header.CompanyId
createDividendsReturnedOrderCommand.OrgId = header.OrgId
createDividendsReturnedOrderCommand.UserId = header.UserId
createDividendsReturnedOrderCommand.UserBaseId = header.UserBaseId
data, err := dividendsReturnedOrderService.CreateDividendsReturnedOrder(createDividendsReturnedOrderCommand)
controller.Response(data, err)
}
... ... @@ -21,7 +27,13 @@ func (controller *DividendsReturnedOrderController) CreateDividendsReturnedOrder
func (controller *DividendsReturnedOrderController) UpdateDividendsReturnedOrder() {
dividendsReturnedOrderService := service.NewDividendsReturnedOrderService(nil)
updateDividendsReturnedOrderCommand := &command.UpdateDividendsReturnedOrderCommand{}
controller.Unmarshal(updateDividendsReturnedOrderCommand)
_ = controller.Unmarshal(updateDividendsReturnedOrderCommand)
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
updateDividendsReturnedOrderCommand.CompanyId = header.CompanyId
updateDividendsReturnedOrderCommand.OrgId = header.OrgId
updateDividendsReturnedOrderCommand.UserId = header.UserId
updateDividendsReturnedOrderCommand.UserBaseId = header.UserBaseId
dividendsReturnedOrderId := controller.GetString(":dividendsReturnedOrderId")
updateDividendsReturnedOrderCommand.DividendsReturnedOrderId = dividendsReturnedOrderId
data, err := dividendsReturnedOrderService.UpdateDividendsReturnedOrder(updateDividendsReturnedOrderCommand)
... ... @@ -31,6 +43,12 @@ func (controller *DividendsReturnedOrderController) UpdateDividendsReturnedOrder
func (controller *DividendsReturnedOrderController) GetDividendsReturnedOrder() {
dividendsReturnedOrderService := service.NewDividendsReturnedOrderService(nil)
getDividendsReturnedOrderQuery := &query.GetDividendsReturnedOrderQuery{}
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
getDividendsReturnedOrderQuery.CompanyId = header.CompanyId
getDividendsReturnedOrderQuery.OrgId = header.OrgId
getDividendsReturnedOrderQuery.UserId = header.UserId
getDividendsReturnedOrderQuery.UserBaseId = header.UserBaseId
dividendsReturnedOrderId := controller.GetString(":dividendsReturnedOrderId")
getDividendsReturnedOrderQuery.DividendsReturnedOrderId = dividendsReturnedOrderId
data, err := dividendsReturnedOrderService.GetDividendsReturnedOrder(getDividendsReturnedOrderQuery)
... ... @@ -40,7 +58,13 @@ func (controller *DividendsReturnedOrderController) GetDividendsReturnedOrder()
func (controller *DividendsReturnedOrderController) RemoveDividendsReturnedOrder() {
dividendsReturnedOrderService := service.NewDividendsReturnedOrderService(nil)
removeDividendsReturnedOrderCommand := &command.RemoveDividendsReturnedOrderCommand{}
controller.Unmarshal(removeDividendsReturnedOrderCommand)
_ = controller.Unmarshal(removeDividendsReturnedOrderCommand)
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
removeDividendsReturnedOrderCommand.CompanyId = header.CompanyId
removeDividendsReturnedOrderCommand.OrgId = header.OrgId
removeDividendsReturnedOrderCommand.UserId = header.UserId
removeDividendsReturnedOrderCommand.UserBaseId = header.UserBaseId
dividendsReturnedOrderId := controller.GetString(":dividendsReturnedOrderId")
removeDividendsReturnedOrderCommand.DividendsReturnedOrderId = dividendsReturnedOrderId
data, err := dividendsReturnedOrderService.RemoveDividendsReturnedOrder(removeDividendsReturnedOrderCommand)
... ... @@ -50,6 +74,12 @@ func (controller *DividendsReturnedOrderController) RemoveDividendsReturnedOrder
func (controller *DividendsReturnedOrderController) SearchDividendsReturnedOrder() {
dividendsReturnedOrderService := service.NewDividendsReturnedOrderService(nil)
searchDividendsReturnedOrderQuery := &query.SearchDividendsReturnedOrderQuery{}
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
searchDividendsReturnedOrderQuery.CompanyId = header.CompanyId
searchDividendsReturnedOrderQuery.OrgId = header.OrgId
searchDividendsReturnedOrderQuery.UserId = header.UserId
searchDividendsReturnedOrderQuery.UserBaseId = header.UserBaseId
data, err := dividendsReturnedOrderService.SearchDividendsReturnedOrder(searchDividendsReturnedOrderQuery)
controller.Response(data, err)
}
... ... @@ -57,7 +87,13 @@ func (controller *DividendsReturnedOrderController) SearchDividendsReturnedOrder
func (controller *DividendsReturnedOrderController) ImportDividendsReturnedOrder() {
dividendsReturnedOrderService := service.NewDividendsReturnedOrderService(nil)
importDividendsReturnedOrderCommand := &command.ImportDividendsReturnedOrderCommand{}
controller.Unmarshal(importDividendsReturnedOrderCommand)
_ = controller.Unmarshal(importDividendsReturnedOrderCommand)
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
importDividendsReturnedOrderCommand.CompanyId = header.CompanyId
importDividendsReturnedOrderCommand.OrgId = header.OrgId
importDividendsReturnedOrderCommand.UserId = header.UserId
importDividendsReturnedOrderCommand.UserBaseId = header.UserBaseId
data, err := dividendsReturnedOrderService.ImportDividendsReturnedOrder(importDividendsReturnedOrderCommand)
controller.Response(data, err)
}
... ... @@ -65,6 +101,12 @@ func (controller *DividendsReturnedOrderController) ImportDividendsReturnedOrder
func (controller *DividendsReturnedOrderController) ListDividendsReturnedOrder() {
dividendsReturnedOrderService := service.NewDividendsReturnedOrderService(nil)
listDividendsReturnedOrderQuery := &query.ListDividendsReturnedOrderQuery{}
// 解析头部信息
header := controller.GetRequestHeader(controller.Ctx)
listDividendsReturnedOrderQuery.CompanyId = header.CompanyId
listDividendsReturnedOrderQuery.OrgId = header.OrgId
listDividendsReturnedOrderQuery.UserId = header.UserId
listDividendsReturnedOrderQuery.UserBaseId = header.UserBaseId
pageSize, _ := controller.GetInt32("pageSize")
listDividendsReturnedOrderQuery.PageSize = pageSize
pageNumber, _ := controller.GetInt32("pageNumber")
... ...