-
-
Notifications
You must be signed in to change notification settings - Fork 617
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support extra global params per testsuite
- Loading branch information
Showing
5 changed files
with
148 additions
and
0 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
...troller/src/main/java/org/cloud/sonic/controller/mapper/TestSuitesGlobalParamsMapper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package org.cloud.sonic.controller.mapper; | ||
|
||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; | ||
import org.apache.ibatis.annotations.Mapper; | ||
import org.cloud.sonic.controller.models.domain.TestSuitesGlobalParams; | ||
|
||
/** | ||
* Mapper 接口 | ||
* | ||
* @author mmagi | ||
* @since 2023-03-25 | ||
*/ | ||
@Mapper | ||
public interface TestSuitesGlobalParamsMapper extends BaseMapper<TestSuitesGlobalParams> { | ||
} |
47 changes: 47 additions & 0 deletions
47
...roller/src/main/java/org/cloud/sonic/controller/models/domain/TestSuitesGlobalParams.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
package org.cloud.sonic.controller.models.domain; | ||
|
||
import com.baomidou.mybatisplus.annotation.TableField; | ||
import com.baomidou.mybatisplus.annotation.TableName; | ||
import com.gitee.sunchenbin.mybatis.actable.annotation.*; | ||
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlCharsetConstant; | ||
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlEngineConstant; | ||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
import lombok.experimental.Accessors; | ||
import org.cloud.sonic.controller.models.base.TypeConverter; | ||
import org.cloud.sonic.controller.models.dto.TestSuitesGlobalParamsDTO; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* @author mmagi | ||
* @since 2023-03-25 | ||
*/ | ||
@Schema(name ="TestSuitesGlobalParams对象", description = "") | ||
@Data | ||
@Accessors(chain = true) | ||
@Builder | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@TableName("test_suites_global_params") | ||
@TableComment("测试套件附加全局参数表") | ||
@TableCharset(MySqlCharsetConstant.DEFAULT) | ||
@TableEngine(MySqlEngineConstant.InnoDB) | ||
public class TestSuitesGlobalParams implements Serializable, TypeConverter<TestSuitesGlobalParams, TestSuitesGlobalParamsDTO> { | ||
|
||
@TableField | ||
@Column(value = "test_suites_id", isNull = false, comment = "测试套件id") | ||
@Index(value = "idx_test_suites_id_devices_id", columns = {"test_suites_id", "params_key"}) | ||
private Integer testSuitesId; | ||
|
||
@TableField | ||
@Column(value = "params_key", isNull = false, comment = "参数key") | ||
private String paramsKey; | ||
|
||
@TableField | ||
@Column(value = "params_value", isNull = false, comment = "参数value") | ||
private String paramsValue; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
...roller/src/main/java/org/cloud/sonic/controller/models/dto/TestSuitesGlobalParamsDTO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package org.cloud.sonic.controller.models.dto; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
import lombok.experimental.Accessors; | ||
import org.cloud.sonic.controller.models.base.TypeConverter; | ||
import org.cloud.sonic.controller.models.domain.TestSuitesGlobalParams; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* <p> | ||
* | ||
* </p> | ||
* | ||
* @author mmagi | ||
* @since 2023-03-25 | ||
*/ | ||
@Schema(name = "TestSuitesGlobalParamsDTO 对象", description = "") | ||
@Data | ||
@Accessors(chain = true) | ||
@Builder | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class TestSuitesGlobalParamsDTO implements Serializable, TypeConverter<TestSuitesGlobalParamsDTO, TestSuitesGlobalParams> { | ||
|
||
private Integer testSuitesId; | ||
|
||
private String paramsKey; | ||
|
||
private String paramsValue; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters