yinbentan
2024-08-02 3032034d254fc15f06a1d4260f35c49f0ef1e12f
router/router.go
@@ -33,10 +33,11 @@
   systemApi := r.Group(urlPrefix + "/system")
   {
      //词典管理
      systemApi.GET("dict", DictController.List)          // 获取词典列表
      systemApi.POST("dict", DictController.Add)          // 新增词典
      systemApi.PUT("dict", DictController.Update)        // 修改词典
      systemApi.DELETE("dict/:id", DictController.Delete) // 删除词典
      systemApi.GET("dict", DictController.List)               // 获取词典列表
      systemApi.POST("dict", DictController.Add)               // 新增词典
      systemApi.PUT("dict", DictController.Update)             // 修改词典
      systemApi.DELETE("dict/:id", DictController.Delete)      // 删除词典
      systemApi.GET("getAutoCode", DictController.GetAutoCode) // 获取自动编码
      // 生丝管理
      systemApi.GET("getPriceStandardList", rawSilkController.GetPriceStandardList)      //获取生丝定价标准
      systemApi.POST("savePriceStandard", rawSilkController.SavePriceStandard)           //保存生丝定价标准
@@ -64,10 +65,11 @@
      finenessApi.POST("register", FinenessController.RegisterAdd)          // 新增纤度登记
      finenessApi.GET("register/:id", FinenessController.RegisterInfo)      // 获取纤度登记详情
      finenessApi.GET("check", FinenessController.CheckList)          // 获取纤度检验列表
      finenessApi.DELETE("check/:id", FinenessController.CheckDelete) // 删除纤度检验
      finenessApi.PUT("check", FinenessController.CheckEdit)          // 修改纤度检验
      finenessApi.GET("check/:id", FinenessController.CheckInfo)      // 获取纤度检验详情
      finenessApi.GET("check", FinenessController.CheckList)                           // 获取纤度检验列表
      finenessApi.DELETE("check/:id", FinenessController.CheckDelete)                  // 删除纤度检验
      finenessApi.PUT("check", FinenessController.CheckEdit)                           // 修改纤度检验
      finenessApi.GET("check/:id", FinenessController.CheckInfo)                       // 获取纤度检验详情
      finenessApi.GET("checkFinenessID/:id", FinenessController.CheckInfoByFinenessID) // 根据纤度登记ID获取纤度检验详情
      finenessApi.POST("saveYieldRegister", yieldController.SaveYieldRegister)               // 保存产量登记表
      finenessApi.POST("getYieldRegisterList", yieldController.GetYieldRegisterList)         // 获取产量登记表
@@ -94,11 +96,16 @@
   salaryApi := r.Group(urlPrefix + "/salary")
   salaryPlanController := new(controllers.SalaryPlanController)
   {
      salaryApi.POST("saveSalaryPlan", salaryPlanController.SaveSalaryPlan)                   //保存薪酬方案
      salaryApi.POST("getSalaryPlanList", salaryPlanController.GetSalaryPlanList)             //获取薪酬方案列表
      salaryApi.DELETE("deleteSalaryPlanInfo/:id", salaryPlanController.DeleteSalaryPlanInfo) //删除薪酬方案
      salaryApi.GET("getSalaryTypeList/:type", salaryPlanController.GetSalaryTypeList)        //获取薪资类型列表
      salaryApi.POST("saveSalaryType", salaryPlanController.SaveSalaryType)                   //保存薪资类型
      salaryApi.POST("saveSalaryPlan", salaryPlanController.SaveSalaryPlan)                              //保存薪酬方案
      salaryApi.POST("getSalaryPlanList", salaryPlanController.GetSalaryPlanList)                        //获取薪酬方案列表
      salaryApi.DELETE("deleteSalaryPlanInfo/:id", salaryPlanController.DeleteSalaryPlanInfo)            //删除薪酬方案
      salaryApi.GET("getSalaryTypeList/:type", salaryPlanController.GetSalaryTypeList)                   //获取薪资类型列表
      salaryApi.POST("saveSalaryType", salaryPlanController.SaveSalaryType)                              //保存薪资类型
      salaryApi.GET("getPayrollProductionCarList", salaryPlanController.GetPayrollProductionCarList)     //获取车台每天的产量列表
      salaryApi.GET("getPayrollProductionGroupList", salaryPlanController.GetPayrollProductionGroupList) //获取小组每天的产量列表
      salaryApi.GET("getPayrollSalaryPlanList", salaryPlanController.GetPayrollSalaryPlanList)           //获取人员每月的薪资列表
      salaryApi.POST("savePayrollConstitute", salaryPlanController.SavePayrollConstitute)                //薪酬数额调整
      salaryApi.GET("getPayrollConstituteList", salaryPlanController.GetPayrollConstituteList)           //获取人员每月的薪资列表
   }
   //考勤管理