id int64 0 1.07M | source stringclasses 3
values | repo stringlengths 8 66 | text stringlengths 8 2.84k | tokens int64 10 512 |
|---|---|---|---|---|
0 | method | 1024-lab/smart-admin | public void addInterceptors(InterceptorRegistry registry) { registry.addInterceptor(adminInterceptor) .excludePathPatterns(SwaggerConfig.SWAGGER_WHITELIST) .addPathPatterns("/**"); } | 44 |
1 | method | 1024-lab/smart-admin | public ResponseDTO<String> update(@RequestBody @Valid CategoryUpdateForm updateForm) { return categoryService.update(updateForm); } | 28 |
2 | method | 1024-lab/smart-admin | public ResponseDTO<String> delete(@PathVariable Long categoryId) { return categoryService.delete(categoryId); } | 24 |
3 | method | 1024-lab/smart-admin | public ResponseDTO<String> delete(@PathVariable Long goodsId) { return goodsService.delete(goodsId); } | 26 |
4 | method | 1024-lab/smart-admin | public ResponseDTO<String> batchDelete(@RequestBody @Valid ValidateList<Long> idList) { return goodsService.batchDelete(idList); } | 33 |
5 | method | 1024-lab/smart-admin | public ResponseDTO<PageResult<BankVO>> queryByPage(@RequestBody @Valid BankQueryForm queryForm) { return bankService.queryByPage(queryForm); } | 37 |
6 | method | 1024-lab/smart-admin | public ResponseDTO<List<BankVO>> queryList(@PathVariable Long enterpriseId) { return bankService.queryList(enterpriseId); } | 30 |
7 | method | 1024-lab/smart-admin | public ResponseDTO<BankVO> getDetail(@PathVariable Long bankId) { return bankService.getDetail(bankId); } | 27 |
8 | method | 1024-lab/smart-admin | public ResponseDTO<String> deleteBank(@PathVariable Long bankId) { return bankService.deleteBank(bankId); } | 26 |
9 | method | 1024-lab/smart-admin | EnterpriseTypeEnum(Integer value, String desc) { this.value = value; this.desc = desc; } | 25 |
10 | method | 1024-lab/smart-admin | public Integer getValue() { return value; } | 10 |
11 | method | 1024-lab/smart-admin | public String getDesc() { return desc; } | 11 |
12 | method | 1024-lab/smart-admin | public ResponseDTO<String> updateEnterprise(@RequestBody @Valid EnterpriseUpdateForm updateVO) { return enterpriseService.updateEnterprise(updateVO); } | 32 |
13 | method | 1024-lab/smart-admin | public ResponseDTO<List<EnterpriseListVO>> queryList(@RequestParam(value = "type", required = false) Integer type) { return enterpriseService.queryList(type); } | 39 |
14 | method | 1024-lab/smart-admin | public ResponseDTO<String> addEmployee(@RequestBody @Valid EnterpriseEmployeeForm enterpriseEmployeeForm) { return enterpriseService.addEmployee(enterpriseEmployeeForm); } | 35 |
15 | method | 1024-lab/smart-admin | public ResponseDTO<String> deleteEmployee(@RequestBody @Valid EnterpriseEmployeeForm enterpriseEmployeeForm) { return enterpriseService.deleteEmployee(enterpriseEmployeeForm); } | 35 |
16 | method | 1024-lab/smart-admin | public ResponseDTO<String> createInvoice(@RequestBody @Valid InvoiceAddForm createVO) { RequestUser requestUser = SmartRequestUtil.getRequestUser(); createVO.setCreateUserId(requestUser.getUserId()); createVO.setCreateUserName(requestUser.getUserName()); return invoiceService.createInvoice(createVO); } | 67 |
17 | method | 1024-lab/smart-admin | public ResponseDTO<String> deleteInvoice(@PathVariable Long invoiceId) { return invoiceService.deleteInvoice(invoiceId); } | 26 |
18 | method | 1024-lab/smart-admin | public ResponseDTO<List<InvoiceVO>> queryList(@PathVariable Long enterpriseId) { return invoiceService.queryList(enterpriseId); } | 30 |
19 | method | 1024-lab/smart-admin | public ResponseDTO<List<NoticeTypeVO>> getAll() { return ResponseDTO.ok(noticeTypeService.getAll()); } | 25 |
20 | method | 1024-lab/smart-admin | public ResponseDTO<String> add(@PathVariable String name) { return noticeTypeService.add(name); } | 23 |
21 | method | 1024-lab/smart-admin | public ResponseDTO<String> update(@PathVariable Long noticeTypeId, @PathVariable String name) { return noticeTypeService.update(noticeTypeId, name); } | 34 |
22 | method | 1024-lab/smart-admin | public ResponseDTO<PageResult<NoticeVO>> query(@RequestBody @Valid NoticeQueryForm queryForm) { return ResponseDTO.ok(noticeService.query(queryForm)); } | 37 |
23 | method | 1024-lab/smart-admin | public ResponseDTO<String> delete(@PathVariable Long noticeId) { return noticeService.delete(noticeId); } | 24 |
24 | method | 1024-lab/smart-admin | public ResponseDTO<PageResult<NoticeEmployeeVO>> queryEmployeeNotice(@RequestBody @Valid NoticeEmployeeQueryForm noticeEmployeeQueryForm) { return noticeEmployeeService.queryList(SmartRequestUtil.getRequestUserId(), noticeEmployeeQueryForm); } | 50 |
25 | method | 1024-lab/smart-admin | public ResponseDTO<PageResult<NoticeViewRecordVO>> queryViewRecord(@RequestBody @Valid NoticeViewRecordQueryForm noticeViewRecordQueryForm) { return ResponseDTO.ok(noticeEmployeeService.queryViewRecord(noticeViewRecordQueryForm)); } | 52 |
27 | method | 1024-lab/smart-admin | public synchronized ResponseDTO<String> delete(Long noticeTypeId) { noticeTypeDao.deleteById(noticeTypeId); return ResponseDTO.ok(); } | 31 |
28 | method | 1024-lab/smart-admin | public BoundSqlSqlSource(BoundSql boundSql) { this.boundSql = boundSql; } | 23 |
29 | method | 1024-lab/smart-admin | public BoundSql getBoundSql(Object parameterObject) { return boundSql; } | 19 |
30 | method | 1024-lab/smart-admin | DataScopeTypeEnum(Integer value, Integer sort, String name, String desc) { this.value = value; this.sort = sort; this.name = name; this.desc = desc; } | 43 |
31 | method | 1024-lab/smart-admin | private void initDataScopeMethodMap() { this.refreshDataScopeMethodMap(); } | 19 |
32 | method | 1024-lab/smart-admin | public List<Long> getDepartmentAndSubIdList(Long employeeId) { EmployeeEntity employeeEntity = employeeDao.selectById(employeeId); return departmentService.selfAndChildrenIdList(employeeEntity.getDepartmentId()); } | 51 |
33 | method | 1024-lab/smart-admin | public ResponseDTO<List<DepartmentTreeVO>> departmentTree() { return departmentService.departmentTree(); } | 24 |
34 | method | 1024-lab/smart-admin | private void logClearInfo(String cache) { log.info("clear " + cache); } | 21 |
35 | method | 1024-lab/smart-admin | public void clearCache() { logClearInfo(AdminCacheConst.Department.DEPARTMENT_LIST_CACHE); } | 26 |
37 | method | 1024-lab/smart-admin | public ResponseDTO<String> updateCenter(@Valid @RequestBody EmployeeUpdateCenterForm updateCenterForm) { updateCenterForm.setEmployeeId(SmartRequestUtil.getRequestUserId()); return employeeService.updateCenter(updateCenterForm); } | 49 |
38 | method | 1024-lab/smart-admin | public ResponseDTO<String> updateAvatar(@Valid @RequestBody EmployeeUpdateAvatarForm employeeUpdateAvatarForm) { employeeUpdateAvatarForm.setEmployeeId(SmartRequestUtil.getRequestUserId()); return employeeService.updateAvatar(employeeUpdateAvatarForm); } | 52 |
39 | method | 1024-lab/smart-admin | public ResponseDTO<String> updateDisableFlag(@PathVariable Long employeeId) { return employeeService.updateDisableFlag(employeeId); } | 28 |
40 | method | 1024-lab/smart-admin | public ResponseDTO<CaptchaVO> getCaptcha() { return loginService.getCaptcha(); } | 19 |
41 | method | 1024-lab/smart-admin | public Long getUserId() { return employeeId; } | 12 |
42 | method | 1024-lab/smart-admin | public List<String> getPermissionList(Object loginId, String loginType) { Long employeeId = this.getEmployeeIdByLoginId((String) loginId); if (employeeId == null) { return Collections.emptyList(); } UserPermission userPermission = loginManager.getUserPermission(employeeId); return userPermission.getPermissionList(); } | 74 |
43 | method | 1024-lab/smart-admin | public void clearLoginEmployeeCache(Long employeeId) { loginManager.clearUserPermission(employeeId); loginManager.clearUserLoginInfo(employeeId); } | 34 |
44 | method | 1024-lab/smart-admin | public ResponseDTO<String> addMenu(@RequestBody @Valid MenuAddForm menuAddForm) { menuAddForm.setCreateUserId(SmartRequestUtil.getRequestUserId()); return menuService.addMenu(menuAddForm); } | 47 |
45 | method | 1024-lab/smart-admin | public ResponseDTO<String> updateMenu(@RequestBody @Valid MenuUpdateForm menuUpdateForm) { menuUpdateForm.setUpdateUserId(SmartRequestUtil.getRequestUserId()); return menuService.updateMenu(menuUpdateForm); } | 47 |
46 | method | 1024-lab/smart-admin | public ResponseDTO<List<MenuVO>> queryMenuList() { return ResponseDTO.ok(menuService.queryMenuList(null)); } | 29 |
47 | method | 1024-lab/smart-admin | public ResponseDTO<List<MenuTreeVO>> queryMenuTree(@RequestParam("onlyMenu") Boolean onlyMenu) { return menuService.queryMenuTree(onlyMenu); } | 36 |
48 | method | 1024-lab/smart-admin | public ResponseDTO<PageResult<MessageVO>> query(@RequestBody @Valid MessageQueryForm queryForm) { return ResponseDTO.ok(messageService.query(queryForm)); } | 36 |
49 | method | 1024-lab/smart-admin | public ResponseDTO<String> add(@RequestBody @Valid PositionAddForm addForm) { return positionService.add(addForm); } | 28 |
50 | method | 1024-lab/smart-admin | public ResponseDTO<String> update(@RequestBody @Valid PositionUpdateForm updateForm) { return positionService.update(updateForm); } | 28 |
51 | method | 1024-lab/smart-admin | public ResponseDTO<String> addRole(@Valid @RequestBody RoleAddForm roleAddForm) { return roleService.addRole(roleAddForm); } | 32 |
52 | method | 1024-lab/smart-admin | public ResponseDTO<String> updateRole(@Valid @RequestBody RoleUpdateForm roleUpdateDTO) { return roleService.updateRole(roleUpdateDTO); } | 32 |
53 | method | 1024-lab/smart-admin | public ResponseDTO<RoleVO> getRole(@PathVariable("roleId") Long roleId) { return roleService.getRoleById(roleId); } | 28 |
54 | method | 1024-lab/smart-admin | public ResponseDTO<List<RoleVO>> getAllRole() { return roleService.getAllRole(); } | 21 |
55 | method | 1024-lab/smart-admin | public ResponseDTO<String> updateRoleDataScopeList(@RequestBody @Valid RoleDataScopeUpdateForm roleDataScopeUpdateForm) { return roleDataScopeService.updateRoleDataScopeList(roleDataScopeUpdateForm); } | 46 |
56 | method | 1024-lab/smart-admin | public ResponseDTO<PageResult<EmployeeVO>> queryEmployee(@Valid @RequestBody RoleEmployeeQueryForm roleEmployeeQueryForm) { return roleEmployeeService.queryEmployee(roleEmployeeQueryForm); } | 40 |
57 | method | 1024-lab/smart-admin | public ResponseDTO<List<EmployeeVO>> listAllEmployeeRoleId(@PathVariable Long roleId) { return ResponseDTO.ok(roleEmployeeService.getAllEmployeeByRoleId(roleId)); } | 38 |
58 | method | 1024-lab/smart-admin | public ResponseDTO<String> removeEmployee(Long employeeId, Long roleId) { return roleEmployeeService.removeRoleEmployee(employeeId, roleId); } | 32 |
59 | method | 1024-lab/smart-admin | public ResponseDTO<String> addEmployeeList(@Valid @RequestBody RoleEmployeeUpdateForm addForm) { return roleEmployeeService.batchAddRoleEmployee(addForm); } | 35 |
60 | method | 1024-lab/smart-admin | public ResponseDTO<List<RoleSelectedVO>> getRoleByEmployeeId(@PathVariable Long employeeId) { return ResponseDTO.ok(roleEmployeeService.getRoleInfoListByEmployeeId(employeeId)); } | 41 |
61 | method | 1024-lab/smart-admin | public ResponseDTO<String> updateRoleMenu(@Valid @RequestBody RoleMenuUpdateForm updateDTO) { return roleMenuService.updateRoleMenu(updateDTO); } | 34 |
62 | method | 1024-lab/smart-admin | public RoleEmployeeEntity(Long roleId, Long employeeId) { this.roleId = roleId; this.employeeId = employeeId; } | 29 |
63 | method | 1024-lab/smart-admin | public List<EmployeeVO> getAllEmployeeByRoleId(Long roleId) { return roleEmployeeDao.selectEmployeeByRoleId(roleId); } | 31 |
64 | method | 1024-lab/smart-admin | public ResponseDTO<List<JweForm>> testArray(@RequestBody @Valid ValidateList<JweForm> list) { return ResponseDTO.ok(list); } | 32 |
65 | method | 1024-lab/smart-admin | public ResponseDTO<List<String>> cacheKeys(@PathVariable String cacheName) { return ResponseDTO.ok(cacheService.cacheKey(cacheName)); } | 31 |
66 | method | 1024-lab/smart-admin | public ResponseDTO<String> addConfig(@RequestBody @Valid ConfigAddForm configAddForm) { return configService.add(configAddForm); } | 31 |
67 | method | 1024-lab/smart-admin | public ResponseDTO<List<DictDataVO>> getAll() { return ResponseDTO.ok(dictService.getAll()); } | 24 |
68 | method | 1024-lab/smart-admin | public ResponseDTO<List<DictVO>> getAllDict() { return ResponseDTO.ok(dictService.getAllDict()); } | 25 |
69 | method | 1024-lab/smart-admin | public ResponseDTO<PageResult<DictVO>> queryPage(@RequestBody @Valid DictQueryForm queryForm) { return ResponseDTO.ok(dictService.queryPage(queryForm)); } | 39 |
70 | method | 1024-lab/smart-admin | public ResponseDTO<String> batchDelete(@RequestBody ValidateList<Long> idList) { return dictService.batchDelete(idList); } | 30 |
71 | method | 1024-lab/smart-admin | public ResponseDTO<String> delete(@PathVariable Long dictId) { return dictService.delete(dictId); } | 24 |
72 | method | 1024-lab/smart-admin | public ResponseDTO<String> updateDictDataDisabled(@PathVariable Long dictDataId) { return dictService.updateDictDataDisabled(dictDataId); } | 32 |
73 | method | 1024-lab/smart-admin | public ResponseDTO<String> updateDictData(@RequestBody @Valid DictDataUpdateForm updateForm) { return dictService.updateDictData(updateForm); } | 34 |
74 | method | 1024-lab/smart-admin | public ResponseDTO<String> batchDeleteDictData(@RequestBody ValidateList<Long> idList) { return dictService.batchDeleteDictData(idList); } | 34 |
75 | method | 1024-lab/smart-admin | public ResponseDTO<PageResult<FileVO>> queryPage(@RequestBody @Valid FileQueryForm queryForm) { return ResponseDTO.ok(fileService.queryPage(queryForm)); } | 38 |
76 | method | 1024-lab/smart-admin | public ResponseDTO<String> deleteHelpDocCatalog(@PathVariable Long helpDocCatalogId) { return helpDocCatalogService.delete(helpDocCatalogId); } | 33 |
77 | method | 1024-lab/smart-admin | public ResponseDTO<PageResult<HelpDocVO>> query(@RequestBody @Valid HelpDocQueryForm queryForm) { return ResponseDTO.ok(helpDocService.query(queryForm)); } | 39 |
78 | method | 1024-lab/smart-admin | public ResponseDTO<String> delete(@PathVariable Long helpDocId) { return helpDocService.delete(helpDocId); } | 27 |
79 | method | 1024-lab/smart-admin | public ResponseDTO<PageResult<LoginLogVO>> queryByPage(@RequestBody LoginLogQueryForm queryForm) { return loginLogService.queryByPage(queryForm); } | 37 |
80 | method | 1024-lab/smart-admin | public ResponseDTO<PageResult<OperateLogVO>> queryByPage(@RequestBody OperateLogQueryForm queryForm) { return operateLogService.queryByPage(queryForm); } | 38 |
81 | method | 1024-lab/smart-admin | public ResponseDTO<OperateLogVO> detail(@PathVariable Long operateLogId) { return operateLogService.detail(operateLogId); } | 29 |
82 | method | 1024-lab/smart-admin | public ResponseDTO<PageResult<OperateLogVO>> queryByPageLogin(@RequestBody OperateLogQueryForm queryForm) { RequestUser requestUser = SmartRequestUtil.getRequestUser(); queryForm.setOperateUserId(requestUser.getUserId()); queryForm.setOperateUserType(requestUser.getUserType().getValue()); return operateLogService.query... | 79 |
83 | method | 1024-lab/smart-admin | public ResponseDTO<PageResult<LoginFailVO>> queryPage(@RequestBody @Valid LoginFailQueryForm queryForm) { return ResponseDTO.ok(securityLoginService.queryPage(queryForm)); } | 41 |
84 | method | 1024-lab/smart-admin | public ResponseDTO<String> batchDelete(@RequestBody ValidateList<Long> idList) { return securityLoginService.batchDelete(idList); } | 31 |
85 | method | 1024-lab/smart-admin | public ResponseDTO<List<ReloadResultVO>> queryReloadResult(@PathVariable("tag") String tag) { return reloadService.queryReloadItemResult(tag); } | 34 |
86 | method | 1024-lab/smart-admin | public ResponseDTO<String> updateByTag(@RequestBody @Valid ReloadForm reloadForm) { return reloadService.updateByTag(reloadForm); } | 32 |
87 | method | 1024-lab/smart-admin | public ResponseDTO<PageResult<SmartJobVO>> queryJob(@RequestBody @Valid SmartJobQueryForm queryForm) { return jobService.queryJob(queryForm); } | 36 |
88 | method | 1024-lab/smart-admin | public ResponseDTO<String> updateJob(@RequestBody @Valid SmartJobUpdateForm updateForm) { RequestUser requestUser = SmartRequestUtil.getRequestUser(); updateForm.setUpdateName(requestUser.getUserName()); return jobService.updateJob(updateForm); } | 55 |
89 | method | 1024-lab/smart-admin | public static RequestEmployee getRequestUser() { return (RequestEmployee) SmartRequestUtil.getRequestUser(); } | 22 |
90 | method | 1024-lab/smart-admin | public static int initialize() { return ErrorCodeRangeContainer.initialize(); } | 16 |
91 | method | 1024-lab/smart-admin | public static void main(String[] args) { ErrorCodeRegister.initialize(); } | 18 |
92 | method | 1024-lab/smart-admin | SystemErrorCode(int code, String msg) { this.code = code; this.msg = msg; this.level = LEVEL_SYSTEM; } | 33 |
93 | method | 1024-lab/smart-admin | UserErrorCode(int code, String msg) { this.code = code; this.msg = msg; this.level = LEVEL_USER; } | 33 |
94 | method | 1024-lab/smart-admin | public ResponseDTO(Integer code, String level, boolean ok, String msg, T data) { this.code = code; this.level = level; this.ok = ok; this.msg = msg; this.data = data; this.dataType = DataTypeEnum.NORMAL.getValue(); } | 62 |
95 | method | 1024-lab/smart-admin | public ResponseDTO(Integer code, String level, boolean ok, String msg) { this.code = code; this.level = level; this.ok = ok; this.msg = msg; this.dataType = DataTypeEnum.NORMAL.getValue(); } | 53 |
96 | method | 1024-lab/smart-admin | public ResponseDTO(ErrorCode errorCode, boolean ok, String msg, T data) { this.code = errorCode.getCode(); this.level = errorCode.getLevel(); this.ok = ok; if (StringUtils.isNotBlank(msg)) { this.msg = msg; } else { this.msg = errorCode.getMsg(); } this.data = data; this.dataType = DataTypeEnum.NORMAL.getValue(); } | 84 |
97 | method | 1024-lab/smart-admin | public static <T> ResponseDTO<T> ok() { return new ResponseDTO<>(OK_CODE, null, true, OK_MSG, null); } | 32 |
98 | method | 1024-lab/smart-admin | public static <T> ResponseDTO<T> userErrorParam() { return new ResponseDTO<>(UserErrorCode.PARAM_ERROR, false, null, null); } | 33 |
99 | method | 1024-lab/smart-admin | public static <T> ResponseDTO<T> error(ErrorCode errorCode, boolean ok) { return new ResponseDTO<>(errorCode, ok, null, null); } | 32 |
100 | method | 1024-lab/smart-admin | public static <T> ResponseDTO<T> error(ResponseDTO<?> responseDTO) { return new ResponseDTO<>(responseDTO.getCode(), responseDTO.getLevel(), responseDTO.getOk(), responseDTO.getMsg(), null); } | 47 |
101 | method | 1024-lab/smart-admin | public static <T> ResponseDTO<T> error(ErrorCode errorCode, String msg) { return new ResponseDTO<>(errorCode, false, msg, null); } | 32 |
End of preview. Expand in Data Studio
- Downloads last month
- -