Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
a561a61
[Feature][JsonSplit-api] api of processDefinition create/update (#5602)
brave-lee Jun 11, 2021
309deae
[Fix-5581][SQL] Specific key was too long, max key length is 767 byte…
chengshiwen Jun 4, 2021
3193837
[DS-5559][fix][Master Server] Master Server was shutdown but the proc…
choucmei Jun 4, 2021
d8f2aa3
[Fix-5468][Common] Fix obtaining IP is incorrect (#5594)
chengshiwen Jun 7, 2021
006fb67
[Fix-5583][sql] fix table name error in sql upgrade script (#5606)
leeseven1211 Jun 9, 2021
30c8803
[Feature-#3961][Registry]Registry-SPI (#5562)
CalvinKirs Jun 9, 2021
053e548
[Improvement-5539][Master] Check status of taskInstance from cache (#…
blackberrier Jun 10, 2021
47812d2
[Fix][Docker] Fix docker image build error (#5613)
chengshiwen Jun 10, 2021
6e81803
modify issues translation robot (#5614)
xingchun-chen Jun 10, 2021
43be965
[Improvement-5567][UI] Add project id in web ui url for sharing and p…
chengshiwen Jun 10, 2021
109e654
modify issues translation robot (#5624)
xingchun-chen Jun 11, 2021
3fb01e1
[Fix-5596][Python] Fix conflict between python_home and datax_home co…
chengshiwen Jun 11, 2021
71a44f8
[Fix-5483] [Bug][API] Can't view variables in the page of Process Ins…
echohlne Jun 13, 2021
728bd31
[Feature][JsonSplit-api] api of project (#5630)
brave-lee Jun 15, 2021
85f3ab4
[Feature][JsonSplit-api] define task api (#5647)
brave-lee Jun 17, 2021
fc203fb
Merge remote-tracking branch 'origin/dev' into json_split_two
CalvinKirs Jun 24, 2021
5b6c9b7
[Feature][JsonSplit-api] select-by-code of processDefinition (#5687)
brave-lee Jun 25, 2021
57414c4
[Feature][JsonSplit-api] merging from dev to json_split_two (#5712)
brave-lee Jun 29, 2021
c386b64
[Feature][JsonSplit-api] copy of processDefinition (#5740)
brave-lee Jul 3, 2021
14035c0
[Feature][JsonSplit-api]move of processDefinition, the projectCode in…
brave-lee Jul 5, 2021
654fa39
[Feature][JsonSplit-api]merge code from dev to json_split_two (#5750)
brave-lee Jul 5, 2021
d382a7b
[Fix-5509]: createSchedule interface, process definition id -> proces…
wen-hemin Jul 7, 2021
cfa22d7
[Fix-5511]: the updateSchedule interface, projectName -> projectCode …
wen-hemin Jul 7, 2021
e4f427a
[Fix-5763]: The scheduler online/offline interface, projectName -> pr…
wen-hemin Jul 8, 2021
72535a4
[Fix-5510]: the scheduler list-page interface, projectName -> project…
wen-hemin Jul 9, 2021
d2a9e05
[Fix-5778]: The scheduler list、preview、delete interface, projectName …
wen-hemin Jul 12, 2021
7da7bb0
fix processDefinitonController projectCode (#5800)
brave-lee Jul 12, 2021
006ef97
[Feature][JsonSplit-api]queryAllByProjectCode of processDefinition (#…
brave-lee Jul 12, 2021
f66a166
[Feature][JsonSplit-api]query taskNodeList of processDefinition (#5802)
brave-lee Jul 13, 2021
47de7ca
[Feature][JsonSplit-api] replace projectName with projectCode for tas…
brave-lee Jul 14, 2021
13c607e
[Feature][JsonSplit-api]merge code from dev to json_2 (#5827)
brave-lee Jul 16, 2021
741d757
[Feature][JsonSplit-api]taskDefinition save interface (#5828)
cpsky Jul 17, 2021
901bc9a
[Fix-5517]: The workflow lineage interface, projectId change to proje…
wen-hemin Jul 19, 2021
5f5aec9
[Fix-5518]: The data analysis state count interface, projectId chang…
wen-hemin Jul 19, 2021
90a9a72
[Fix-5518]: The user definition count interface, projectId change to …
wen-hemin Jul 19, 2021
f1a9c49
[Fix-5518]: The command state count interface, projectId change to pr…
wen-hemin Jul 20, 2021
8f0c400
[Fix-5518]: the command state count interface and queue state count i…
wen-hemin Jul 20, 2021
c5bc4fc
[Fix-5519] The executor api, projectName change to projectCode (#5863)
wen-hemin Jul 20, 2021
4e3bedd
[Feature][JsonSplit-api]taskDefinition update interface (#5869)
cpsky Jul 22, 2021
3a4c608
[Feature][JsonSplit-api] modify viewTree of ProcessDefiniton (#5881)
brave-lee Jul 26, 2021
93abae9
[Feature][JsonSplit-api] export/import of ProcessDefinition api (#5910)
brave-lee Jul 29, 2021
ce73868
[Feature][JsonSplit-api] remove connects of ProcessDefinition (#5920)
brave-lee Jul 30, 2021
7427dc6
[Feature][JsonSplit-api]merge code from dev to json_split_two (#5923)
brave-lee Jul 31, 2021
d1a61f1
[Fix-5778]: The t_ds_schedules table, process_definition_id change to…
wen-hemin Aug 2, 2021
92b92b5
[Fix-5519] The t_ds_command table and t_ds_error_command table, proce…
wen-hemin Aug 3, 2021
316b919
check has cycle of ProcessDefinition (#5944)
brave-lee Aug 4, 2021
8bd88d9
[Feature][JsonSplit-api] checkProcessNode of processDefinition (#5946)
brave-lee Aug 4, 2021
339d7f4
[Feature][JsonSplit-api] fix TaskInstance api (#5948)
brave-lee Aug 5, 2021
7c1f891
[Feature][JsonSplit-api] Replace projectName with projectCode in Proc…
brave-lee Aug 5, 2021
595205c
[Feature][JsonSplit-api] update ProcessInstance api (#5953)
brave-lee Aug 6, 2021
a5d9427
[Feature][JsonSplit-api]remove unuse field (#5955)
brave-lee Aug 6, 2021
80ef756
[Feature][JsonSplit-api] refactor of ProjectService.checkProjectAndAu…
brave-lee Aug 9, 2021
0344b21
[json_split_two]cherry pick [Improvement-5880][api] Optimized data st…
zhuangchong Aug 10, 2021
9ca51cf
[Feature][JsonSplit-api] fix api run error (#5989)
brave-lee Aug 15, 2021
effbad4
[Feature][JsonSplit-api] api of ProcessDefinition/TaskDefinition (#6010)
brave-lee Aug 21, 2021
ab07a31
[Feature][JsonSplit-api] taskService methon (#6017)
brave-lee Aug 22, 2021
3b495d2
[Feature][JsonSplit-api] merge code from dev to json2 (#6023)
brave-lee Aug 23, 2021
bef57bd
fix create task definition bug (#6050)
cpsky Aug 29, 2021
9201400
[Feature][JsonSplit-api] update of processInstance (#6061)
brave-lee Aug 29, 2021
ee4e64a
[Feature][JsonSplit-api] refactor method of task save (#6067)
brave-lee Aug 31, 2021
2f0a277
[Feature][JsonSplit-api] update method of ProcessDefinition (#6089)
brave-lee Sep 2, 2021
f6ba944
[Feature][JsonSplit-api] fix some bug in joint commissioning (#6096)
brave-lee Sep 3, 2021
d4f5012
[Feature-5498][JsonSplit-api] refactor of dolphin-scheduler-ui/dag (#…
wangyizhi1 Sep 6, 2021
537af05
[Feature][JsonSplit-api] fix some bug in joint commissioning (#6108)
brave-lee Sep 6, 2021
d510a13
[Feature][JsonSplit-api] modify API to Restful-02 (#6090)
marin-man Sep 6, 2021
b102629
modify Monitor (#6100)
marin-man Sep 6, 2021
e323509
[Feature][JsonSplit-api] modify API to Restful-01 (#6016)
marin-man Sep 6, 2021
aa8301a
[Feature][JsonSplit-api] modify API to Restful-04 (#6110)
marin-man Sep 7, 2021
33ea3ed
[Feature][JsonSplit-api] merge code from dev to json2 (#6115)
brave-lee Sep 7, 2021
2799203
update api path
lenboo Sep 7, 2021
5d06702
[Feature-5498][JsonSplit-api] add task status (#6119)
wangyizhi1 Sep 7, 2021
baa8f30
[Feature-5498][JsonSplit-api] fix some ut (#6121)
brave-lee Sep 7, 2021
b661ec9
Merge remote-tracking branch 'upstream/dev' into json2
lenboo Sep 7, 2021
5d27e18
Merge remote-tracking branch 'upstream/dev' into json2
lenboo Sep 8, 2021
501c936
code style
lenboo Sep 8, 2021
331a8e9
code style
lenboo Sep 8, 2021
26d578e
update
lenboo Sep 8, 2021
c4478f8
code style
lenboo Sep 8, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/actions/translate-on-issue
Submodule translate-on-issue deleted from 8c4d3b
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ config.gypi
test/coverage
/docs/zh_CN/介绍
/docs/zh_CN/贡献代码.md
dolphinscheduler-common/src/main/resources/zookeeper.properties
dolphinscheduler-dao/src/main/resources/dao/data_source.properties
dolphinscheduler-alert/logs/
dolphinscheduler-alert/src/main/resources/alert.properties_bak
Expand Down
7 changes: 3 additions & 4 deletions docker/build/conf/dolphinscheduler/logback/logback-alert.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,12 @@

<!-- Logback configuration. See http://logback.qos.ch/manual/index.html -->
<configuration scan="true" scanPeriod="120 seconds"> <!--debug="true" -->
<conversionRule conversionWord="message" converterClass="org.apache.dolphinscheduler.service.log.SensitiveDataConverter">
</conversionRule>

<property name="log.base" value="logs"/>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>
[%level] %date{yyyy-MM-dd HH:mm:ss.SSS} %logger{96}:[%line] - %message%n
[%level] %date{yyyy-MM-dd HH:mm:ss.SSS} %logger{96}:[%line] - %msg%n
</pattern>
<charset>UTF-8</charset>
</encoder>
Expand All @@ -39,7 +38,7 @@
</rollingPolicy>
<encoder>
<pattern>
[%level] %date{yyyy-MM-dd HH:mm:ss.SSS} %logger{96}:[%line] - %message%n
[%level] %date{yyyy-MM-dd HH:mm:ss.SSS} %logger{96}:[%line] - %msg%n
</pattern>
<charset>UTF-8</charset>
</encoder>
Expand Down
7 changes: 3 additions & 4 deletions docker/build/conf/dolphinscheduler/logback/logback-api.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,12 @@

<!-- Logback configuration. See http://logback.qos.ch/manual/index.html -->
<configuration scan="true" scanPeriod="120 seconds"> <!--debug="true" -->
<conversionRule conversionWord="message" converterClass="org.apache.dolphinscheduler.service.log.SensitiveDataConverter">
</conversionRule>

<property name="log.base" value="logs"/>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>
[%level] %date{yyyy-MM-dd HH:mm:ss.SSS} %logger{96}:[%line] - %message%n
[%level] %date{yyyy-MM-dd HH:mm:ss.SSS} %logger{96}:[%line] - %msg%n
</pattern>
<charset>UTF-8</charset>
</encoder>
Expand All @@ -43,7 +42,7 @@
</rollingPolicy>
<encoder>
<pattern>
[%level] %date{yyyy-MM-dd HH:mm:ss.SSS} %logger{96}:[%line] - %message%n
[%level] %date{yyyy-MM-dd HH:mm:ss.SSS} %logger{96}:[%line] - %msg%n
</pattern>
<charset>UTF-8</charset>
</encoder>
Expand Down
11 changes: 6 additions & 5 deletions docker/build/conf/dolphinscheduler/logback/logback-master.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,19 @@

<!-- Logback configuration. See http://logback.qos.ch/manual/index.html -->
<configuration scan="true" scanPeriod="120 seconds"> <!--debug="true" -->
<conversionRule conversionWord="message" converterClass="org.apache.dolphinscheduler.service.log.SensitiveDataConverter">
</conversionRule>

<property name="log.base" value="logs"/>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>
[%level] %date{yyyy-MM-dd HH:mm:ss.SSS} %logger{96}:[%line] - %message%n
[%level] %date{yyyy-MM-dd HH:mm:ss.SSS} %logger{96}:[%line] - %msg%n
</pattern>
<charset>UTF-8</charset>
</encoder>
</appender>

<conversionRule conversionWord="messsage"
converterClass="org.apache.dolphinscheduler.server.log.SensitiveDataConverter"/>
<appender name="TASKLOGFILE" class="ch.qos.logback.classic.sift.SiftingAppender">
<!-- <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
<level>INFO</level>
Expand All @@ -44,7 +45,7 @@
<file>${log.base}/${taskAppId}.log</file>
<encoder>
<pattern>
[%level] %date{yyyy-MM-dd HH:mm:ss.SSS} %logger{96}:[%line] - %message%n
[%level] %date{yyyy-MM-dd HH:mm:ss.SSS} %logger{96}:[%line] - %messsage%n
</pattern>
<charset>UTF-8</charset>
</encoder>
Expand All @@ -65,7 +66,7 @@
</rollingPolicy>
<encoder>
<pattern>
[%level] %date{yyyy-MM-dd HH:mm:ss.SSS} %logger{96}:[%line] - %message%n
[%level] %date{yyyy-MM-dd HH:mm:ss.SSS} %logger{96}:[%line] - %msg%n
</pattern>
<charset>UTF-8</charset>
</encoder>
Expand Down
11 changes: 6 additions & 5 deletions docker/build/conf/dolphinscheduler/logback/logback-worker.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,20 @@

<!-- Logback configuration. See http://logback.qos.ch/manual/index.html -->
<configuration scan="true" scanPeriod="120 seconds"> <!--debug="true" -->
<conversionRule conversionWord="message" converterClass="org.apache.dolphinscheduler.service.log.SensitiveDataConverter">
</conversionRule>

<property name="log.base" value="logs"/>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>
[%level] %date{yyyy-MM-dd HH:mm:ss.SSS} %logger{96}:[%line] - %message%n
[%level] %date{yyyy-MM-dd HH:mm:ss.SSS} %logger{96}:[%line] - %msg%n
</pattern>
<charset>UTF-8</charset>
</encoder>
</appender>

<!-- worker server logback config start -->
<conversionRule conversionWord="messsage"
converterClass="org.apache.dolphinscheduler.server.log.SensitiveDataConverter"/>
<appender name="TASKLOGFILE" class="ch.qos.logback.classic.sift.SiftingAppender">
<!-- <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
<level>INFO</level>
Expand All @@ -45,7 +46,7 @@
<file>${log.base}/${taskAppId}.log</file>
<encoder>
<pattern>
[%level] %date{yyyy-MM-dd HH:mm:ss.SSS} %logger{96}:[%line] - %message%n
[%level] %date{yyyy-MM-dd HH:mm:ss.SSS} %logger{96}:[%line] - %messsage%n
</pattern>
<charset>UTF-8</charset>
</encoder>
Expand All @@ -65,7 +66,7 @@
</rollingPolicy>
<encoder>
<pattern>
[%level] %date{yyyy-MM-dd HH:mm:ss.SSS} %logger{96}:[%line] - %message%n
[%level] %date{yyyy-MM-dd HH:mm:ss.SSS} %logger{96}:[%line] - %messsage%n
</pattern>
<charset>UTF-8</charset>
</encoder>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ spec:
- name: TZ
value: {{ .Values.timezone }}
{{- include "dolphinscheduler.database.env_vars" . | nindent 12 }}
{{- include "dolphinscheduler.registry.env_vars" . | nindent 12 }}
{{- include "dolphinscheduler.zookeeper.env_vars" . | nindent 12 }}
{{- include "dolphinscheduler.fs_s3a.env_vars" . | nindent 12 }}
envFrom:
- configMapRef:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ spec:
- name: TZ
value: {{ .Values.timezone }}
{{- include "dolphinscheduler.database.env_vars" . | nindent 12 }}
{{- include "dolphinscheduler.registry.env_vars" . | nindent 12 }}
{{- include "dolphinscheduler.zookeeper.env_vars" . | nindent 12 }}
{{- include "dolphinscheduler.fs_s3a.env_vars" . | nindent 12 }}
envFrom:
- configMapRef:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ spec:
- name: ALERT_LISTEN_HOST
value: {{ include "dolphinscheduler.fullname" . }}-alert
{{- include "dolphinscheduler.database.env_vars" . | nindent 12 }}
{{- include "dolphinscheduler.registry.env_vars" . | nindent 12 }}
{{- include "dolphinscheduler.zookeeper.env_vars" . | nindent 12 }}
{{- include "dolphinscheduler.fs_s3a.env_vars" . | nindent 12 }}
envFrom:
- configMapRef:
Expand Down
18 changes: 10 additions & 8 deletions docker/kubernetes/dolphinscheduler/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ image:
pullPolicy: "IfNotPresent"
pullSecret: ""

## If not exists external database, the postgresql database will be used by default.
## If not exists external database, by default, Dolphinscheduler's database will use it.
postgresql:
enabled: true
postgresqlUsername: "root"
Expand All @@ -38,7 +38,8 @@ postgresql:
size: "20Gi"
storageClass: "-"

## If exists external database and set postgresql.enable value to false, the external database will be used.
## If exists external database, and set postgresql.enable value to false.
## external database will be used, otherwise Dolphinscheduler's database will be used.
externalDatabase:
type: "postgresql"
driver: "org.postgresql.Driver"
Expand All @@ -49,20 +50,21 @@ externalDatabase:
database: "dolphinscheduler"
params: "characterEncoding=utf8"

## If not exists external registry, the zookeeper registry will be used by default.
## If not exists external zookeeper, by default, Dolphinscheduler's zookeeper will use it.
zookeeper:
enabled: true
fourlwCommandsWhitelist: "srvr,ruok,wchs,cons"
persistence:
enabled: false
size: "20Gi"
storageClass: "-"
zookeeperRoot: "/dolphinscheduler"

## If exists external registry and set zookeeper.enable value to false, the external registry will be used.
externalRegistry:
registryPluginDir: "lib/plugin/registry"
registryPluginName: "zookeeper"
registryServers: "127.0.0.1:2181"
## If exists external zookeeper, and set zookeeper.enable value to false.
## If zookeeper.enable is false, Dolphinscheduler's zookeeper will use it.
externalZookeeper:
zookeeperQuorum: "127.0.0.1:2181"
zookeeperRoot: "/dolphinscheduler"

common:
## Configmap
Expand Down
8 changes: 4 additions & 4 deletions dolphinscheduler-alert/src/main/resources/logback-alert.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,12 @@

<!-- Logback configuration. See http://logback.qos.ch/manual/index.html -->
<configuration scan="true" scanPeriod="120 seconds"> <!--debug="true" -->
<conversionRule conversionWord="message" converterClass="org.apache.dolphinscheduler.service.log.SensitiveDataConverter">
</conversionRule>

<property name="log.base" value="logs"/>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>
[%level] %date{yyyy-MM-dd HH:mm:ss.SSS} %logger{96}:[%line] - %message%n
[%level] %date{yyyy-MM-dd HH:mm:ss.SSS} %logger{96}:[%line] - %msg%n
</pattern>
<charset>UTF-8</charset>
</encoder>
Expand All @@ -39,13 +38,14 @@
</rollingPolicy>
<encoder>
<pattern>
[%level] %date{yyyy-MM-dd HH:mm:ss.SSS} %logger{96}:[%line] - %message%n
[%level] %date{yyyy-MM-dd HH:mm:ss.SSS} %logger{96}:[%line] - %msg%n
</pattern>
<charset>UTF-8</charset>
</encoder>
</appender>

<root level="INFO">
<appender-ref ref="STDOUT"/>
<appender-ref ref="ALERTLOGFILE"/>
</root>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,11 @@

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
Expand All @@ -49,12 +52,13 @@
import io.swagger.annotations.ApiOperation;
import springfox.documentation.annotations.ApiIgnore;


/**
* access token controller
*/
@Api(tags = "ACCESS_TOKEN_TAG")
@RestController
@RequestMapping("/access-token")
@RequestMapping("/access-tokens")
public class AccessTokenController extends BaseController {

@Autowired
Expand All @@ -63,14 +67,14 @@ public class AccessTokenController extends BaseController {
/**
* create token
*
* @param loginUser login user
* @param userId token for user id
* @param loginUser login user
* @param userId token for user id
* @param expireTime expire time for the token
* @param token token
* @param token token
* @return create result state code
*/
@ApiIgnore
@PostMapping(value = "/create")
@PostMapping()
@ResponseStatus(HttpStatus.CREATED)
@ApiException(CREATE_ACCESS_TOKEN_ERROR)
@AccessLogAnnotation(ignoreRequestArgs = "loginUser")
Expand All @@ -86,8 +90,8 @@ public Result createToken(@ApiIgnore @RequestAttribute(value = Constants.SESSION
/**
* generate token string
*
* @param loginUser login user
* @param userId token for user
* @param loginUser login user
* @param userId token for user
* @param expireTime expire time
* @return token string
*/
Expand All @@ -107,18 +111,18 @@ public Result generateToken(@RequestAttribute(value = Constants.SESSION_USER) Us
* query access token list paging
*
* @param loginUser login user
* @param pageNo page number
* @param pageNo page number
* @param searchVal search value
* @param pageSize page size
* @param pageSize page size
* @return token list of page number and page size
*/
@ApiOperation(value = "queryAccessTokenList", notes = "QUERY_ACCESS_TOKEN_LIST_NOTES")
@ApiImplicitParams({
@ApiImplicitParam(name = "searchVal", value = "SEARCH_VAL", dataType = "String"),
@ApiImplicitParam(name = "pageNo", value = "PAGE_NO", required = true, dataType = "Int", example = "1"),
@ApiImplicitParam(name = "pageSize", value = "PAGE_SIZE", required = true, dataType = "Int", example = "20")
@ApiImplicitParam(name = "searchVal", value = "SEARCH_VAL", dataType = "String"),
@ApiImplicitParam(name = "pageNo", value = "PAGE_NO", required = true, dataType = "Int", example = "1"),
@ApiImplicitParam(name = "pageSize", value = "PAGE_SIZE", required = true, dataType = "Int", example = "20")
})
@GetMapping(value = "/list-paging")
@GetMapping()
@ResponseStatus(HttpStatus.OK)
@ApiException(QUERY_ACCESSTOKEN_LIST_PAGING_ERROR)
@AccessLogAnnotation(ignoreRequestArgs = "loginUser")
Expand All @@ -140,16 +144,16 @@ public Result queryAccessTokenList(@ApiIgnore @RequestAttribute(value = Constant
* delete access token by id
*
* @param loginUser login user
* @param id token id
* @param id token id
* @return delete result code
*/
@ApiIgnore
@PostMapping(value = "/delete")
@DeleteMapping(value = "/{id}")
@ResponseStatus(HttpStatus.OK)
@ApiException(DELETE_ACCESS_TOKEN_ERROR)
@AccessLogAnnotation(ignoreRequestArgs = "loginUser")
public Result delAccessTokenById(@RequestAttribute(value = Constants.SESSION_USER) User loginUser,
@RequestParam(value = "id") int id) {
@PathVariable(value = "id") int id) {
Map<String, Object> result = accessTokenService.delAccessTokenById(loginUser, id);
return returnDataList(result);
}
Expand All @@ -158,20 +162,20 @@ public Result delAccessTokenById(@RequestAttribute(value = Constants.SESSION_USE
/**
* update token
*
* @param loginUser login user
* @param id token id
* @param userId token for user
* @param loginUser login user
* @param id token id
* @param userId token for user
* @param expireTime token expire time
* @param token token string
* @param token token string
* @return update result code
*/
@ApiIgnore
@PostMapping(value = "/update")
@PutMapping(value = "/{id}")
@ResponseStatus(HttpStatus.OK)
@ApiException(UPDATE_ACCESS_TOKEN_ERROR)
@AccessLogAnnotation(ignoreRequestArgs = "loginUser")
public Result updateToken(@RequestAttribute(value = Constants.SESSION_USER) User loginUser,
@RequestParam(value = "id") int id,
@PathVariable(value = "id") int id,
@RequestParam(value = "userId") int userId,
@RequestParam(value = "expireTime") String expireTime,
@RequestParam(value = "token") String token) {
Expand Down
Loading