Ver código fonte

node/detail.html 页面显示 createBy 字段

reghao 2 anos atrás
pai
commit
20ef8ad2bb

+ 3 - 2
oss-console/src/main/java/cn/reghao/oss/console/app/service/UploadChannelService.java

@@ -70,7 +70,7 @@ public class UploadChannelService {
         int fileType = uploadChannel.getFileType();
         boolean processFile = uploadChannel.getProcessFile();
         int scope = uploadChannel.getScope();
-        ObjectChannel channel = new ObjectChannel(channelId, name, channelPrefix, maxSize, fileType, processFile, scope, domain);
+        ObjectChannel channel = new ObjectChannel(channelId, name, channelPrefix, maxSize, fileType, processFile, scope, domain, createBy);
 
         String host = storeNode.getNodeAddr();
         int port = storeNode.getRpcPort();
@@ -154,7 +154,8 @@ public class UploadChannelService {
         boolean processFile = uploadChannel.getProcessFile();
         int scope = uploadChannel.getScope();
         String domain = storeNodeService.getById(uploadChannel.getNodeId()).getDomain();
-        return new ObjectChannel(channelId, name, channelPrefix, maxSize, fileType, processFile, scope, domain);
+        int createBy = uploadChannel.getCreateBy();
+        return new ObjectChannel(channelId, name, channelPrefix, maxSize, fileType, processFile, scope, domain, createBy);
     }
 
     public StoreNode getStoreNodeByChannelId(int channelId) throws Exception {

+ 2 - 0
oss-console/src/main/resources/templates/node/detail.html

@@ -54,12 +54,14 @@
         <table class="layui-table timo-detail-table">
             <thead>
             <tr>
+                <th class="sortable" data-field="appName">创建者</th>
                 <th class="sortable" data-field="appName">Channel ID</th>
                 <th class="sortable" data-field="appName">Prefix</th>
             </tr>
             </thead>
             <tbody>
             <tr th:each="item:${storeNode.objectChannels}">
+                <td th:text="${item.createBy}"></td>
                 <td th:text="${item.channelId}"></td>
                 <td th:text="${item.prefix}"></td>
             </tr>