doum
2025-12-10 559f6fcd685d2144e931d2c4e56cbe38c2308d70
server/dmmall_admin/src/main/java/com/doumee/api/business/ShopController.java
@@ -3,15 +3,18 @@
import com.doumee.api.BaseController;
import com.doumee.core.annotation.excel.ExcelExporter;
import com.doumee.core.annotation.pr.PreventRepeat;
import com.doumee.core.annotation.trace.Trace;
import com.doumee.core.model.ApiResponse;
import com.doumee.core.model.PageWrap;
import com.doumee.core.model.PageData;
import com.doumee.dao.business.model.Shop;
import com.doumee.dao.web.dto.ResetSystemUserPwdDTO;
import com.doumee.service.business.ShopService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.shiro.authz.annotation.RequiresPermissions;    
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
@@ -105,4 +108,13 @@
    public ApiResponse findById(@PathVariable Integer id) {
        return ApiResponse.success(shopService.findById(id));
    }
    @PreventRepeat
    @ApiOperation("重置经销商密码")
    @PostMapping("/resetPwd")
    @RequiresPermissions("system:user:resetPwd")
    public ApiResponse resetPwd ( @RequestBody Shop dto) {
        shopService.resetPwd(dto);
        return ApiResponse.success(null);
    }
}