su_money_router.go 4.0 KB
package routers

import (
	"github.com/astaxie/beego"
	"gitlab.fjmaimaimai.com/linmadan/mmm-worth/pkg/port/beego/controllers"
)

func init() {
	/**********************************************素币流水******************************************/
	beego.Router("/su-money/operation", &controllers.SuMoneyController{}, "Post:OperationSuMoney")  // 操作素币(增加,扣除,兑换)
	beego.Router("/su-money/su-money-transaction-records/:suMoneyTransactionRecordId", &controllers.SuMoneyController{}, "Get:GetSuMoneyTransactionRecord")  // 返回素币事务记录
	beego.Router("/su-money/exchange", &controllers.SuMoneyController{}, "Post:ExchangeSuMoney") // 兑换素币
	beego.Router("/su-money/search-su-money-transaction-record", &controllers.SuMoneyController{}, "Post:SearchSuMoneyTransactionRecord") // 搜索素币事务记录
	beego.Router("/su-money/su-money-transaction-record-statistics", &controllers.SuMoneyController{}, "Post:SuMoneyTransactionRecordStatistics") // 返回素币事务记录统计(个人素币收支)
	beego.Router("/su-money/contributions-transaction-record-statistics", &controllers.SuMoneyController{}, "Post:ContributionsTransactionRecordStatistics")  // 返回贡献值事务记录统计(个人贡献值收支)
	beego.Router("/su-money/su-money-transaction-records/export-records", &controllers.SuMoneyController{}, "Post:ExportSuMoneyTransactionRecord")  // 导出素币事务记录(流水)
	beego.Router("/su-money/su-money-transaction-records/export-su-money", &controllers.SuMoneyController{}, "Post:ExportSuMoney")   // 导出员工素币

	/**********************************************现金池*******************************************/
	beego.Router("/cash-pool/input", &controllers.SuMoneyController{}, "Post:CashInput")  // 现金池投入
	beego.Router("/cash-pool/cash-pool", &controllers.SuMoneyController{}, "Get:GetCashPool")  // 返回现金池统计

	/********************************************素币兑换活动***************************************/
	beego.Router("/cash-pool/activity/", &controllers.SuMoneyController{}, "Get:ListExchangeActivities")  // 返回兑换活动列表
	beego.Router("/cash-pool/activity/:activityId", &controllers.SuMoneyController{}, "Get:GetExchangeCashActivity")  // 返回兑换活动
	beego.Router("/cash-pool/activity/:activityId", &controllers.SuMoneyController{}, "Put:UpdateExchangeActivities") // 编辑兑换活动
	beego.Router("/cash-pool/activity", &controllers.SuMoneyController{}, "Post:CreateExchangeActivities")  // 新增兑换活动
	beego.Router("/cash-pool/activity/:activityId", &controllers.SuMoneyController{}, "Delete:RemoveExchangeActivities") // 删除兑换活动
	beego.Router("/cash-pool/activity/deadline-list", &controllers.SuMoneyController{}, "Get:ListDeadline")   // 返回兑换活动截止时间列表

	/********************************************素币兑换清单*************************************/
	beego.Router("/cash-pool/activity/exchange-list", &controllers.SuMoneyController{}, "Get:ListExchangeList")	// 返回素币兑换清单
	beego.Router("/cash-pool/activity/exchange-list/:listId", &controllers.SuMoneyController{}, "Get:GetExchangeCashPerson") // 返回素币兑换人员
	beego.Router("/cash-pool/activity/exchange-list", &controllers.SuMoneyController{}, "Post:CreateExchangeList")  // 新增素币兑换清单
	beego.Router("/cash-pool/activity/exchange-list/:listId", &controllers.SuMoneyController{}, "Put:UpdateExchangeList")  // 编辑素币兑换清单
	beego.Router("/cash-pool/activity/exchange-list/:listId", &controllers.SuMoneyController{}, "Delete:RemoveExchangeCashPerson") // 删除素币兑换清单
	beego.Router("/cash-pool/activity/exchange-list/import", &controllers.SuMoneyController{}, "Post:ImportExchangeList") // 导入素币兑换清单
	beego.Router("/cash-pool/activity/exchange-list/export", &controllers.SuMoneyController{}, "Post:ExportExchangeList")  // 导出素币兑换清单
	beego.Router("/cash-pool/activity/exchange-list/ranking", &controllers.SuMoneyController{}, "Post:ExchangeCashListRanking")  // 兑换素币清单排行榜
}