feature: 优化排序
This commit is contained in:
@@ -40,7 +40,7 @@ public class ChannelService : ApplicationService, IChannelService
|
||||
|
||||
var entities = await _appRepository._DbQueryable
|
||||
.WhereIF(!string.IsNullOrWhiteSpace(input.SearchKey), x => x.Name.Contains(input.SearchKey))
|
||||
.OrderBy(x => x.OrderNum)
|
||||
.OrderByDescending(x => x.OrderNum)
|
||||
.OrderByDescending(x => x.CreationTime)
|
||||
.ToPageListAsync(input.SkipCount, input.MaxResultCount, total);
|
||||
|
||||
@@ -230,6 +230,7 @@ public class ChannelService : ApplicationService, IChannelService
|
||||
/// <summary>
|
||||
/// 删除AI模型(软删除)
|
||||
/// </summary>
|
||||
[HttpDelete("channel/model/{id}")]
|
||||
public async Task DeleteModelAsync(Guid id)
|
||||
{
|
||||
await _modelRepository.DeleteByIdAsync(id);
|
||||
|
||||
@@ -432,6 +432,8 @@ onMounted(() => {
|
||||
<el-select v-model="modelForm.modelApiType" placeholder="请选择API类型">
|
||||
<el-option label="OpenAI" :value="0" />
|
||||
<el-option label="Claude" :value="1" />
|
||||
<el-option label="Response" :value="2" />
|
||||
<el-option label="GenerateContent" :value="3" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="图标URL">
|
||||
|
||||
Reference in New Issue
Block a user