refactor: 整理代码
This commit is contained in:
6
API文档.md
6
API文档.md
@ -558,7 +558,7 @@
|
|||||||
- **Excel 文件格式**:
|
- **Excel 文件格式**:
|
||||||
| 用户名 | 邮箱 | 密码 | 部门名称 |
|
| 用户名 | 邮箱 | 密码 | 部门名称 |
|
||||||
|--------|------|------|----------|
|
|--------|------|------|----------|
|
||||||
| 张三 | zhangsan@example.com | 123456 | 技术部 |
|
| 张三 | zhangsan@example.com | 123456 | 技术部 |
|
||||||
- **成功响应**:
|
- **成功响应**:
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
@ -587,7 +587,7 @@
|
|||||||
- **Excel 文件格式**:
|
- **Excel 文件格式**:
|
||||||
| 课程名称 | 微课名称 | 教师邮箱 |
|
| 课程名称 | 微课名称 | 教师邮箱 |
|
||||||
|----------|----------|-----------|
|
|----------|----------|-----------|
|
||||||
| 数学课程 | 第一章 | teacher@example.com |
|
| 数学课程 | 第一章 | teacher@example.com |
|
||||||
- **成功响应**:
|
- **成功响应**:
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
@ -616,7 +616,7 @@
|
|||||||
- **Excel 文件格式**:
|
- **Excel 文件格式**:
|
||||||
| 部门名称 | 部门描述 |
|
| 部门名称 | 部门描述 |
|
||||||
|----------|----------|
|
|----------|----------|
|
||||||
| 技术部 | 负责技术研发 |
|
| 技术部 | 负责技术研发 |
|
||||||
- **成功响应**:
|
- **成功响应**:
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
package com.huertian.jinduguanli.dto;
|
package com.huertian.jinduguanli.dto;
|
||||||
|
|
||||||
import com.alibaba.excel.annotation.ExcelProperty;
|
import com.alibaba.excel.annotation.ExcelProperty;
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
|
|
||||||
public class DepartmentImportDTO {
|
public class DepartmentImportDTO {
|
||||||
@ExcelProperty("部门名称")
|
@ExcelProperty("部门名称")
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
package com.huertian.jinduguanli.dto;
|
package com.huertian.jinduguanli.dto;
|
||||||
|
|
||||||
import com.alibaba.excel.annotation.ExcelProperty;
|
import com.alibaba.excel.annotation.ExcelProperty;
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
public class LessonTaskImportDTO {
|
public class LessonTaskImportDTO {
|
||||||
@ExcelProperty("课程名称")
|
@ExcelProperty("课程名称")
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
package com.huertian.jinduguanli.dto;
|
package com.huertian.jinduguanli.dto;
|
||||||
|
|
||||||
import com.alibaba.excel.annotation.ExcelProperty;
|
import com.alibaba.excel.annotation.ExcelProperty;
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
public class UserImportDTO {
|
public class UserImportDTO {
|
||||||
@ExcelProperty(index = 0)
|
@ExcelProperty(index = 0)
|
||||||
|
@ -19,7 +19,6 @@ import org.springframework.stereotype.Service;
|
|||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
import org.springframework.beans.BeanUtils;
|
import org.springframework.beans.BeanUtils;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
|
Reference in New Issue
Block a user