PayWages.php 597 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace app\api\controller\v1;
  3. use app\api\controller\Base;
  4. use app\hander\HelpHander;
  5. use think\Db;
  6. class PayWages extends Base
  7. {
  8. // 编辑
  9. public function update(){
  10. model('PayWages')->edit($this->userId);
  11. HelpHander::success([],'操作成功');
  12. }
  13. // 详情
  14. public function detail(){
  15. $companyId = input('companyId/d',0);
  16. $ret = model('PayWages')->info($companyId);
  17. HelpHander::success($ret);
  18. }
  19. // 列表
  20. public function all(){
  21. $ret = model('PayWages')->all();
  22. HelpHander::success($ret);
  23. }
  24. }