mobile_cooperation_router.go 7.1 KB
package routers

import (
	"github.com/beego/beego/v2/server/web"
	"gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/port/beego/controllers/mobile_client"
	"gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/port/beego/controllers/web_client"
)

// router

func init() {

	/*****   共创申请服务 企业端 *****/
	web.Router("/v1/app/cooperation-applications/:applicationId", &mobile_client.CooperationController{}, "Get:GetCooperationApplication")
	web.Router("/v1/app/cooperation-applications/audit", &mobile_client.CooperationController{}, "Post:AuditCooperationApplication")
	web.Router("/v1/app/cooperation-applications/oneclick-approval", &mobile_client.CooperationController{}, "Post:AuditAllCooperationApplication")
	web.Router("/v1/app/cooperation-applications/search", &mobile_client.CooperationController{}, "Post:SearchCooperationApplication")

	/*****   共创申请服务 共创用户端 *****/
	web.Router("/v1/app/cooperation-applications", &mobile_client.CooperationController{}, "Post:CreateCooperationApplication")
	web.Router("/v1/app/cooperation-applications/person/:applicationId", &mobile_client.CooperationController{}, "Get:PersonGetCooperationApplication")
	web.Router("/v1/app/cooperation-applications/cancel/:applicationId", &mobile_client.CooperationController{}, "Delete:PersonCancelCooperationApplication")
	web.Router("/v1/app/cooperation-applications/person/search", &mobile_client.CooperationController{}, "Post:PersonSearchCooperationApplication")

	/*****   承接反馈 *****/
	web.Router("/v1/app/contract-undertaker-feedbacks", &mobile_client.CooperationController{}, "Post:CreateFeedback")
	web.Router("/v1/app/contract-undertaker-feedbacks/search", &mobile_client.CooperationController{}, "Post:SearchFeedback")

	/*****   CompanyDividends 共创项目 *****/
	web.Router("/v1/app/cooperation-projects", &mobile_client.CooperationController{}, "Post:CreateCooperationProject")
	web.Router("/v1/app/cooperation-projects/:projectId", &mobile_client.CooperationController{}, "Get:GetCooperationProject")
	web.Router("/v1/app/cooperation-projects/:projectId", &mobile_client.CooperationController{}, "Put:UpdateCooperationProject")
	web.Router("/v1/app/cooperation-projects/end", &mobile_client.CooperationController{}, "Post:EndCooperationProject")
	web.Router("/v1/app/cooperation-projects/search", &mobile_client.CooperationController{}, "Post:SearchCooperationProject")
	web.Router("/v1/app/cooperation-projects/contracts", &mobile_client.CooperationController{}, "Post:SearchCooperationProjectContracts")
	web.Router("/v1/app/cooperation-modes", &web_client.CooperationModeController{}, "Get:ListCooperationMode")
	web.Router("/v1/common/cooperation/mode", &web_client.CooperationModeController{}, "Get:ListCooperationMode")

	web.Router("/v1/app/cooperation-projects/person/search", &mobile_client.CooperationController{}, "Post:PersonSearchCooperationProject")
	web.Router("/v1/app/cooperation-projects/person/search-starred", &mobile_client.CooperationController{}, "Post:PersonSearchCooperationProjectStarred")
	web.Router("/v1/app/cooperation-projects/person/shared-info", &mobile_client.CooperationController{}, "Post:PersonCooperationProjectSharedInfo")
	web.Router("/v1/app/cooperation-projects/person/shared-info/attachment", &mobile_client.CooperationController{}, "Post:PersonCooperationProjectSharedInfoAttachment")

	/*****   CompanyDividends 账期结算 *****/
	web.Router("/v1/app/company/credit-accounts/search", &mobile_client.CooperationController{}, "Post:CreditAccountSearch")
	web.Router("/v1/app/company/credit-accounts/:creditAccountId", &mobile_client.CooperationController{}, "Get:CreditAccountGet")
	web.Router("/v1/app/company/credit-accounts/:creditAccountId", &mobile_client.CooperationController{}, "Delete:DeleteCreditAccountPay")
	web.Router("/v1/app/company/credit-accounts/pay", &mobile_client.CooperationController{}, "Post:CreditAccountPay")
	web.Router("/v1/app/company/credit-accounts/pay/search", &mobile_client.CooperationController{}, "Post:CreditAccountPaySearch")
	web.Router("/v1/app/company/credit-accounts/payment-history/statistics", &mobile_client.CooperationController{}, "Post:PaymentHistoryStatistics")
	web.Router("/v1/app/company/credit-accounts/payment-history/histogram-statistics", &mobile_client.CooperationController{}, "Post:PaymentHistoryHistogramStatistics")

	web.Router("/v1/app/company/credit-accounts/pay/search/person", &mobile_client.CooperationController{}, "Post:PersonCreditAccountPaySearch")
	web.Router("/v1/app/credit-accounts/payment-history/statistics", &mobile_client.CooperationController{}, "Post:PersonPaymentHistoryStatistics")
	web.Router("/v1/app/credit-accounts/payment-history/histogram-statistics", &mobile_client.CooperationController{}, "Post:PersonPaymentHistoryHistogramStatistics")
	web.Router("/v1/app/credit-accounts/:creditAccountId", &mobile_client.CooperationController{}, "Get:PersonCreditAccountGet")

	/*****   CompanyDividends 企业端合约分红 *****/
	web.Router("/v1/app/cooperation/company/dividends/contracts", &mobile_client.CooperationController{}, "Post:SearchDividendContracts")
	web.Router("/v1/app/cooperation/company/dividends/contracts/:contractId", &mobile_client.CooperationController{}, "Get:GetDividendContracts")
	web.Router("/v1/app/cooperation/company/dividends/sum", &mobile_client.CooperationController{}, "Post:DividendsStatistics")
	web.Router("/v1/app/cooperation/company/dividends-estimates/search", &mobile_client.CooperationController{}, "Post:SearchDividendsEstimates")

	/*****   PersonDividends 个人端合约分红 *****/
	web.Router("/v1/app/cooperation/dividends/contracts", &mobile_client.CooperationController{}, "Post:SearchDividendContractsPerson")
	web.Router("/v1/app/cooperation/dividends/contracts/:contractId", &mobile_client.CooperationController{}, "Get:GetDividendContractsPerson")
	web.Router("/v1/app/cooperation/dividends/sum", &mobile_client.CooperationController{}, "Post:DividendsStatisticsPerson")
	web.Router("/v1/app/cooperation/dividends-estimates/search", &mobile_client.CooperationController{}, "Post:SearchDividendsEstimatesPerson")

	/*****   CompanyStatistics 企业端统计  *****/
	web.Router("/v1/app/cooperation/index", &mobile_client.CooperationController{}, "Get:IndexStatistics")
	web.Router("/v1/app/cooperation/person/statistics", &mobile_client.CooperationController{}, "Post:CooperationPersonStatistics")
	web.Router("/v1/app/cooperation/goods/statistics", &mobile_client.CooperationController{}, "Post:GoodsStatistics")
	web.Router("/v1/app/cooperation-dividends-statistics/statistics", &mobile_client.CooperationController{}, "Post:CooperationDividendsStatistics")

	/*****   PersonStatistics 用户端统计  *****/
	web.Router("/v1/app/cooperation-user/index", &mobile_client.CooperationController{}, "Get:PersonIndexStatistics")
	web.Router("/v1/app/cooperation-user/company-statistics", &mobile_client.CooperationController{}, "Post:PersonCompanyStatistics")
	//web.Router("/v1/app/cooperation-user/company-dividend-statistics", &mobile_client.CooperationController{}, "Post:PersonCompanyDividendStatistics")
	web.Router("/v1/app/cooperation-projects/recommend", &mobile_client.CooperationController{}, "Post:PersonCooperationProjectRecommend")
}