作者 tangxuhui
1 package service 1 package service
2 2
3 import ( 3 import (
4 - "github.com/linmadan/egglib-go/core/application"  
5 - "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/application/common/command"  
6 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/application/common/query" 4 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/application/common/query"
7 - "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/domain"  
8 - "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/infrastructure/service_gateway/allied_creation_user"  
9 ) 5 )
10 6
11 type CommonService struct { 7 type CommonService struct {
@@ -66,23 +62,23 @@ func (srv *CommonService) GetDictionaryByCode(getDictionaryQuery *query.GetDicti @@ -66,23 +62,23 @@ func (srv *CommonService) GetDictionaryByCode(getDictionaryQuery *query.GetDicti
66 return map[string]interface{}{"dictionarys": dictionaries}, nil 62 return map[string]interface{}{"dictionarys": dictionaries}, nil
67 } 63 }
68 64
69 -//CompanySignUp 公司注册  
70 -func (srv *CommonService) CompanySignUp(signUpCommand *command.CompanySignUpCommand) (interface{}, error) {  
71 - if err := signUpCommand.ValidateCommand(); err != nil {  
72 - return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())  
73 - }  
74 - //校验验证码  
75 - creationUserGateway := allied_creation_user.NewHttplibAlliedCreationUser(domain.Operator{})  
76 - _, err := creationUserGateway.AuthCompanySignUp(allied_creation_user.ReqAuthCompanySignUp{  
77 - CompanyName: signUpCommand.CompanyName,  
78 - Contacts: signUpCommand.Contacts,  
79 - IndustryCategory: signUpCommand.IndustryCategory,  
80 - Password: signUpCommand.Password,  
81 - Phone: signUpCommand.Phone,  
82 - Scale: signUpCommand.Scale,  
83 - })  
84 - if err != nil {  
85 - return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())  
86 - }  
87 - return signUpCommand, nil 65 +//LatestVersionInfo 版本升级
  66 +func (srv *CommonService) LatestVersionInfo() (interface{}, error) {
  67 + return map[string]interface{}{
  68 + "version": map[string]interface{}{
  69 + "downloadPage": "www.baidu.com",
  70 + "downloadFile": "test.iso",
  71 + "updateType": 0,
  72 + },
  73 + }, nil
  74 +}
  75 +
  76 +//AppSharing 获取分享链接地址
  77 +func (srv *CommonService) AppSharing() (interface{}, error) {
  78 + return map[string]interface{}{
  79 + "version": map[string]interface{}{
  80 + "downloadPage": "www.baidu.com",
  81 + "downloadFile": "test.iso",
  82 + },
  83 + }, nil
88 } 84 }
@@ -11,11 +11,12 @@ type GetDividendContractsCommand struct { @@ -11,11 +11,12 @@ type GetDividendContractsCommand struct {
11 //操作人 11 //操作人
12 Operator domain.Operator `json:"-"` 12 Operator domain.Operator `json:"-"`
13 // 查询偏离量 13 // 查询偏离量
14 - PageNumber int `json:"pageIndex" valid:"Required"` 14 + //PageNumber int `json:"pageIndex" valid:"Required"`
15 // 查询限制 15 // 查询限制
16 - PageSize int `json:"pageSize" valid:"Required"` 16 + //PageSize int `json:"pageSize" valid:"Required"`
17 //审核状态 17 //审核状态
18 //Status int `json:"status"` 18 //Status int `json:"status"`
  19 + ContractId int `json:"contractId" valid:"Required"`
19 } 20 }
20 21
21 func (cmd *GetDividendContractsCommand) Valid(validation *validation.Validation) { 22 func (cmd *GetDividendContractsCommand) Valid(validation *validation.Validation) {
  1 +package command
  2 +
  3 +import (
  4 + "fmt"
  5 + "github.com/beego/beego/v2/core/validation"
  6 + "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/domain"
  7 +)
  8 +
  9 +// Command
  10 +type SearchDividendContractsCommand struct {
  11 + //操作人
  12 + Operator domain.Operator `json:"-"`
  13 + // 查询偏离量
  14 + PageNumber int `json:"pageIndex" valid:"Required"`
  15 + // 查询限制
  16 + PageSize int `json:"pageSize" valid:"Required"`
  17 + //审核状态
  18 + //Status int `json:"status"`
  19 +}
  20 +
  21 +func (cmd *SearchDividendContractsCommand) Valid(validation *validation.Validation) {
  22 +
  23 +}
  24 +
  25 +func (cmd *SearchDividendContractsCommand) ValidateCommand() error {
  26 + valid := validation.Validation{}
  27 + b, err := valid.Valid(cmd)
  28 + if err != nil {
  29 + return err
  30 + }
  31 + if !b {
  32 + for _, validErr := range valid.Errors {
  33 + return fmt.Errorf("%s %s", validErr.Key, validErr.Message)
  34 + }
  35 + }
  36 + return nil
  37 +}
@@ -11,14 +11,17 @@ type CompanyDividendsService struct { @@ -11,14 +11,17 @@ type CompanyDividendsService struct {
11 11
12 // GetDividendContracts 企业的合约列表(分红信息按合约划分) 12 // GetDividendContracts 企业的合约列表(分红信息按合约划分)
13 func (srv CompanyStatisticsService) GetDividendContracts(userMenusCommand *command.GetDividendContractsCommand) (interface{}, error) { 13 func (srv CompanyStatisticsService) GetDividendContracts(userMenusCommand *command.GetDividendContractsCommand) (interface{}, error) {
14 - //creationUserGateway := allied_creation_user.NewHttplibAlliedCreationUser(  
15 - // userMenusCommand.Operator)  
16 - //resultMenu, err := creationUserGateway.UserAccessMenus(allied_creation_user.ReqUserAccessMenus{  
17 - // UserId: int(userMenusCommand.Operator.UserId),  
18 - //})  
19 - //if err != nil {  
20 - // return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error()) 14 + //var items []*dto.CompanyContractDividendDto
  15 + //for i := 0; i < 2; i++ {
  16 + // item := dto.NewCompanyContractDividendDto()
  17 + // item.LoadDto()
  18 + // items = append(items, item)
21 //} 19 //}
  20 + return struct{}{}, nil
  21 +}
  22 +
  23 +// GetDividendContracts 企业的合约列表(分红信息按合约划分)
  24 +func (srv CompanyStatisticsService) SearchDividendContracts(userMenusCommand *command.SearchDividendContractsCommand) (interface{}, error) {
22 var items []*dto.CompanyContractDividendDto 25 var items []*dto.CompanyContractDividendDto
23 for i := 0; i < 2; i++ { 26 for i := 0; i < 2; i++ {
24 item := dto.NewCompanyContractDividendDto() 27 item := dto.NewCompanyContractDividendDto()
@@ -32,14 +35,6 @@ func (srv CompanyStatisticsService) GetDividendContracts(userMenusCommand *comma @@ -32,14 +35,6 @@ func (srv CompanyStatisticsService) GetDividendContracts(userMenusCommand *comma
32 35
33 // DividendsStatistics TODO:企业的合约统计(分红统计) 36 // DividendsStatistics TODO:企业的合约统计(分红统计)
34 func (srv CompanyStatisticsService) DividendsStatistics(userMenusCommand *command.DividendsStatisticsCommand) (interface{}, error) { 37 func (srv CompanyStatisticsService) DividendsStatistics(userMenusCommand *command.DividendsStatisticsCommand) (interface{}, error) {
35 - //creationUserGateway := allied_creation_user.NewHttplibAlliedCreationUser(  
36 - // userMenusCommand.Operator)  
37 - //resultMenu, err := creationUserGateway.UserAccessMenus(allied_creation_user.ReqUserAccessMenus{  
38 - // UserId: int(userMenusCommand.Operator.UserId),  
39 - //})  
40 - //if err != nil {  
41 - // return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error())  
42 - //}  
43 return map[string]interface{}{ 38 return map[string]interface{}{
44 "sumTotal": 9000, 39 "sumTotal": 9000,
45 "waitSettle": 6000, 40 "waitSettle": 6000,
@@ -50,14 +45,6 @@ func (srv CompanyStatisticsService) DividendsStatistics(userMenusCommand *comman @@ -50,14 +45,6 @@ func (srv CompanyStatisticsService) DividendsStatistics(userMenusCommand *comman
50 45
51 // SearchDividendsEstimates 企业的合约明细列表(分红预算信息) 46 // SearchDividendsEstimates 企业的合约明细列表(分红预算信息)
52 func (srv CompanyStatisticsService) SearchDividendsEstimates(userMenusCommand *command.SearchDividendsEstimatesCommand) (interface{}, error) { 47 func (srv CompanyStatisticsService) SearchDividendsEstimates(userMenusCommand *command.SearchDividendsEstimatesCommand) (interface{}, error) {
53 - //creationUserGateway := allied_creation_user.NewHttplibAlliedCreationUser(  
54 - // userMenusCommand.Operator)  
55 - //resultMenu, err := creationUserGateway.UserAccessMenus(allied_creation_user.ReqUserAccessMenus{  
56 - // UserId: int(userMenusCommand.Operator.UserId),  
57 - //})  
58 - //if err != nil {  
59 - // return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error())  
60 - //}  
61 var items []*dto.DividendsEstimatesDto 48 var items []*dto.DividendsEstimatesDto
62 for i := 0; i < 2; i++ { 49 for i := 0; i < 2; i++ {
63 item := dto.NewDividendsEstimatesDto() 50 item := dto.NewDividendsEstimatesDto()
  1 +package service
  2 +
  3 +import (
  4 + "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/application/mobile/cooperation/command"
  5 + "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/application/mobile/cooperation/dto"
  6 +)
  7 +
  8 +// 企业端分红服务
  9 +type PersonDividendsService struct {
  10 +}
  11 +
  12 +// GetDividendContracts 企业的合约列表(分红信息按合约划分)
  13 +func (srv PersonDividendsService) GetDividendContracts(userMenusCommand *command.GetDividendContractsCommand) (interface{}, error) {
  14 + //var items []*dto.CompanyContractDividendDto
  15 + //for i := 0; i < 2; i++ {
  16 + // item := dto.NewCompanyContractDividendDto()
  17 + // item.LoadDto()
  18 + // items = append(items, item)
  19 + //}
  20 + return struct{}{}, nil
  21 +}
  22 +
  23 +// GetDividendContracts 企业的合约列表(分红信息按合约划分)
  24 +func (srv PersonDividendsService) SearchDividendContracts(userMenusCommand *command.SearchDividendContractsCommand) (interface{}, error) {
  25 + var items []*dto.CompanyContractDividendDto
  26 + for i := 0; i < 2; i++ {
  27 + item := dto.NewCompanyContractDividendDto()
  28 + item.LoadDto()
  29 + items = append(items, item)
  30 + }
  31 + return map[string]interface{}{
  32 + "list": items,
  33 + }, nil
  34 +}
  35 +
  36 +// DividendsStatistics TODO:企业的合约统计(分红统计)
  37 +func (srv PersonDividendsService) DividendsStatistics(userMenusCommand *command.DividendsStatisticsCommand) (interface{}, error) {
  38 + return map[string]interface{}{
  39 + "sumTotal": 9000,
  40 + "waitSettle": 6000,
  41 + "hasBeenSettle": 3000,
  42 + "hasBeenPay": 2000,
  43 + }, nil
  44 +}
  45 +
  46 +// SearchDividendsEstimates 企业的合约明细列表(分红预算信息)
  47 +func (srv PersonDividendsService) SearchDividendsEstimates(userMenusCommand *command.SearchDividendsEstimatesCommand) (interface{}, error) {
  48 + var items []*dto.DividendsEstimatesDto
  49 + for i := 0; i < 2; i++ {
  50 + item := dto.NewDividendsEstimatesDto()
  51 + item.LoadDto()
  52 + items = append(items, item)
  53 + }
  54 + return map[string]interface{}{
  55 + "list": items,
  56 + }, nil
  57 +}
1 -package common_controller 1 +package controllers
2 2
3 import ( 3 import (
4 "github.com/linmadan/egglib-go/web/beego" 4 "github.com/linmadan/egglib-go/web/beego"
5 - "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/application/common/command"  
6 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/application/common/query" 5 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/application/common/query"
7 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/application/common/service" 6 "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/application/common/service"
8 ) 7 )
@@ -19,10 +18,18 @@ func (controller *CommonController) GetDictionaryByCode() { @@ -19,10 +18,18 @@ func (controller *CommonController) GetDictionaryByCode() {
19 controller.Response(data, err) 18 controller.Response(data, err)
20 } 19 }
21 20
22 -func (controller *CommonController) CompanySignUp() { 21 +func (controller *CommonController) LatestVersionInfo() {
23 commonService := service.NewCommonService(nil) 22 commonService := service.NewCommonService(nil)
24 - queryParm := command.CompanySignUpCommand{}  
25 - _ = controller.Unmarshal(queryParm)  
26 - data, err := commonService.CompanySignUp(&queryParm) 23 + queryParam := &query.GetDictionaryByCodeQuery{}
  24 + _ = controller.Unmarshal(queryParam)
  25 + data, err := commonService.LatestVersionInfo()
  26 + controller.Response(data, err)
  27 +}
  28 +
  29 +func (controller *CommonController) AppSharing() {
  30 + commonService := service.NewCommonService(nil)
  31 + queryParam := &query.GetDictionaryByCodeQuery{}
  32 + _ = controller.Unmarshal(queryParam)
  33 + data, err := commonService.AppSharing()
27 controller.Response(data, err) 34 controller.Response(data, err)
28 } 35 }
@@ -360,10 +360,24 @@ func (controller *CooperationController) GetDividendContracts() { @@ -360,10 +360,24 @@ func (controller *CooperationController) GetDividendContracts() {
360 return 360 return
361 } 361 }
362 cmd.Operator = controller.GetOperator() 362 cmd.Operator = controller.GetOperator()
  363 + cmd.ContractId, _ = controller.GetInt("contractId")
363 data, err := svr.GetDividendContracts(cmd) 364 data, err := svr.GetDividendContracts(cmd)
364 controller.Response(data, err) 365 controller.Response(data, err)
365 } 366 }
366 367
  368 +func (controller *CooperationController) SearchDividendContracts() {
  369 + svr := service.CompanyStatisticsService{}
  370 + cmd := &command.SearchDividendContractsCommand{}
  371 + err := controller.Unmarshal(cmd)
  372 + if err != nil {
  373 + controller.Response(nil, err)
  374 + return
  375 + }
  376 + cmd.Operator = controller.GetOperator()
  377 + data, err := svr.SearchDividendContracts(cmd)
  378 + controller.Response(data, err)
  379 +}
  380 +
367 func (controller *CooperationController) DividendsStatistics() { 381 func (controller *CooperationController) DividendsStatistics() {
368 svr := service.CompanyStatisticsService{} 382 svr := service.CompanyStatisticsService{}
369 cmd := &command.DividendsStatisticsCommand{} 383 cmd := &command.DividendsStatisticsCommand{}
@@ -390,6 +404,60 @@ func (controller *CooperationController) SearchDividendsEstimates() { @@ -390,6 +404,60 @@ func (controller *CooperationController) SearchDividendsEstimates() {
390 controller.Response(data, err) 404 controller.Response(data, err)
391 } 405 }
392 406
  407 +/***** PersonDividends 个人端分红 *****/
  408 +func (controller *CooperationController) GetDividendContractsPerson() {
  409 + svr := service.PersonDividendsService{}
  410 + cmd := &command.GetDividendContractsCommand{}
  411 + err := controller.Unmarshal(cmd)
  412 + if err != nil {
  413 + controller.Response(nil, err)
  414 + return
  415 + }
  416 + cmd.Operator = controller.GetOperator()
  417 + cmd.ContractId, _ = controller.GetInt("contractId")
  418 + data, err := svr.GetDividendContracts(cmd)
  419 + controller.Response(data, err)
  420 +}
  421 +
  422 +func (controller *CooperationController) SearchDividendContractsPerson() {
  423 + svr := service.PersonDividendsService{}
  424 + cmd := &command.SearchDividendContractsCommand{}
  425 + err := controller.Unmarshal(cmd)
  426 + if err != nil {
  427 + controller.Response(nil, err)
  428 + return
  429 + }
  430 + cmd.Operator = controller.GetOperator()
  431 + data, err := svr.SearchDividendContracts(cmd)
  432 + controller.Response(data, err)
  433 +}
  434 +
  435 +func (controller *CooperationController) DividendsStatisticsPerson() {
  436 + svr := service.PersonDividendsService{}
  437 + cmd := &command.DividendsStatisticsCommand{}
  438 + err := controller.Unmarshal(cmd)
  439 + if err != nil {
  440 + controller.Response(nil, err)
  441 + return
  442 + }
  443 + cmd.Operator = controller.GetOperator()
  444 + data, err := svr.DividendsStatistics(cmd)
  445 + controller.Response(data, err)
  446 +}
  447 +
  448 +func (controller *CooperationController) SearchDividendsEstimatesPerson() {
  449 + svr := service.PersonDividendsService{}
  450 + cmd := &command.SearchDividendsEstimatesCommand{}
  451 + err := controller.Unmarshal(cmd)
  452 + if err != nil {
  453 + controller.Response(nil, err)
  454 + return
  455 + }
  456 + cmd.Operator = controller.GetOperator()
  457 + data, err := svr.SearchDividendsEstimates(cmd)
  458 + controller.Response(data, err)
  459 +}
  460 +
393 /***** CompanyStatistics 企业端统计 *****/ 461 /***** CompanyStatistics 企业端统计 *****/
394 462
395 func (controller *CooperationController) IndexStatistics() { 463 func (controller *CooperationController) IndexStatistics() {
@@ -2,10 +2,11 @@ package routers @@ -2,10 +2,11 @@ package routers
2 2
3 import ( 3 import (
4 "github.com/beego/beego/v2/server/web" 4 "github.com/beego/beego/v2/server/web"
5 - "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/port/beego/controllers/common_controller" 5 + "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/port/beego/controllers"
6 ) 6 )
7 7
8 func init() { 8 func init() {
9 - web.Router("/v1/common/dictionary/search", &common_controller.CommonController{}, "Post:GetDictionaryByCode")  
10 - //web.Router("/common/dictionary/search", &common_controller.CommonController{}, "Post:GetDictionaryByCode") 9 + web.Router("/v1/common/dictionary/search", &controllers.CommonController{}, "Post:GetDictionaryByCode")
  10 + web.Router("/v1/common/version/getLatestVersionInfo", &controllers.CommonController{}, "Post:LatestVersionInfo")
  11 + web.Router("/v1/common/app-sharing", &controllers.CommonController{}, "Post:AppSharing")
11 } 12 }
1 package routers 1 package routers
2 2
3 -import (  
4 - "github.com/beego/beego/v2/server/web"  
5 - "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/port/beego/controllers/common_controller"  
6 - "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/port/beego/controllers/mobile_client"  
7 -)  
8 -  
9 func init() { 3 func init() {
10 //登录注册 4 //登录注册
11 - web.Router("/v1/app/users/regist/company", &common_controller.CommonController{}, "Post:CompanySignUp")  
12 - web.Router("/v1/app/auth/login", &mobile_client.AuthController{}, "Post:Login")  
13 - web.Router("/v1/app/auth/access-token", &mobile_client.AuthController{}, "Post:GetAuthAccessToken")  
14 - web.Router("/v1/app/auth/refresh-token", &mobile_client.AuthController{}, "Post:RefreshAuthAccessToken") 5 + //web.Router("/v1/app/users/regist/company", &common_controller.CommonController{}, "Post:CompanySignUp")
  6 + //web.Router("/v1/app/auth/login", &mobile_client.AuthController{}, "Post:Login")
  7 + //web.Router("/v1/app/auth/access-token", &mobile_client.AuthController{}, "Post:GetAuthAccessToken")
  8 + //web.Router("/v1/app/auth/refresh-token", &mobile_client.AuthController{}, "Post:RefreshAuthAccessToken")
15 //获取用户数据 9 //获取用户数据
16 - web.Router("/v1/app/user/user-info", &mobile_client.AuthController{}, "Post:GetUserInfo")  
17 - web.Router("/v1/app/user/user-menu", &mobile_client.AuthController{}, "Post:GetUserMenus")  
18 - web.Router("/v1/app/user/user-orgs", &mobile_client.AuthController{}, "Post:GetUserOrg")  
19 - //公司用户注册  
20 - web.Router("/v1/app/auth/company-sign-up", &mobile_client.AuthController{}, "Post:CompanySignUp")  
21 - //公司重置密码  
22 - web.Router("/v1/app/auth/reset-password", &mobile_client.AuthController{}, "Post:ResetPassword")  
23 - web.Router("/v1/app/auth/org-switch", &mobile_client.AuthController{}, "Post:OrgSwitch") 10 + //web.Router("/v1/app/user/user-info", &mobile_client.AuthController{}, "Post:GetUserInfo")
  11 + //web.Router("/v1/app/user/user-menu", &mobile_client.AuthController{}, "Post:GetUserMenus")
  12 + //web.Router("/v1/app/user/user-orgs", &mobile_client.AuthController{}, "Post:GetUserOrg")
  13 + ////公司用户注册
  14 + //web.Router("/v1/app/auth/company-sign-up", &mobile_client.AuthController{}, "Post:CompanySignUp")
  15 + ////公司重置密码
  16 + //web.Router("/v1/app/auth/reset-password", &mobile_client.AuthController{}, "Post:ResetPassword")
  17 + //web.Router("/v1/app/auth/org-switch", &mobile_client.AuthController{}, "Post:OrgSwitch")
24 } 18 }
@@ -49,11 +49,18 @@ func init() { @@ -49,11 +49,18 @@ func init() {
49 web.Router("/v1/app/credit-accounts/payment-history/statistics", &mobile_client.CooperationController{}, "Post:PersonPaymentHistoryStatistics") 49 web.Router("/v1/app/credit-accounts/payment-history/statistics", &mobile_client.CooperationController{}, "Post:PersonPaymentHistoryStatistics")
50 web.Router("/v1/app/credit-accounts/payment-history/histogram-statistics", &mobile_client.CooperationController{}, "Post:PersonPaymentHistoryHistogramStatistics") 50 web.Router("/v1/app/credit-accounts/payment-history/histogram-statistics", &mobile_client.CooperationController{}, "Post:PersonPaymentHistoryHistogramStatistics")
51 51
52 - /***** CompanyDividends 企业端分红 *****/  
53 - web.Router("/v1/app/cooperation/company/dividends/contracts", &mobile_client.CooperationController{}, "Post:GetDividendContracts") 52 + /***** CompanyDividends 企业端合约分红 *****/
  53 + web.Router("/v1/app/cooperation/company/dividends/contracts", &mobile_client.CooperationController{}, "Post:SearchDividendContracts")
  54 + web.Router("/v1/app/cooperation/company/dividends/contracts/:contractId", &mobile_client.CooperationController{}, "Get:GetDividendContracts")
54 web.Router("/v1/app/cooperation/company/dividends/sum", &mobile_client.CooperationController{}, "Post:DividendsStatistics") 55 web.Router("/v1/app/cooperation/company/dividends/sum", &mobile_client.CooperationController{}, "Post:DividendsStatistics")
55 web.Router("/v1/app/cooperation/company/dividends-estimates/search", &mobile_client.CooperationController{}, "Post:SearchDividendsEstimates") 56 web.Router("/v1/app/cooperation/company/dividends-estimates/search", &mobile_client.CooperationController{}, "Post:SearchDividendsEstimates")
56 57
  58 + /***** PersonDividends 个人端合约分红 *****/
  59 + web.Router("/v1/app/cooperation/dividends/contracts", &mobile_client.CooperationController{}, "Post:SearchDividendContractsPerson")
  60 + web.Router("/v1/app/cooperation/dividends/contracts/:contractId", &mobile_client.CooperationController{}, "Get:GetDividendContractsPerson")
  61 + web.Router("/v1/app/cooperation/dividends/sum", &mobile_client.CooperationController{}, "Post:DividendsStatisticsPerson")
  62 + web.Router("/v1/app/cooperation/dividends-estimates/search", &mobile_client.CooperationController{}, "Post:SearchDividendsEstimatesPerson")
  63 +
57 /***** CompanyStatistics 企业端统计 *****/ 64 /***** CompanyStatistics 企业端统计 *****/
58 web.Router("/v1/app/cooperation/index", &mobile_client.CooperationController{}, "Get:IndexStatistics") 65 web.Router("/v1/app/cooperation/index", &mobile_client.CooperationController{}, "Get:IndexStatistics")
59 web.Router("/v1/app/cooperation/person/statistics", &mobile_client.CooperationController{}, "Post:CooperationPersonStatistics") 66 web.Router("/v1/app/cooperation/person/statistics", &mobile_client.CooperationController{}, "Post:CooperationPersonStatistics")