<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                ~~~ package com.zzzz.controller; import com.zzzz.dto.BranchParam; import com.zzzz.po.Branch; import com.zzzz.service.BranchService; import com.zzzz.service.BranchServiceException; import com.zzzz.vo.ListResult; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.*; import java.sql.SQLException; @RestController @RequestMapping("/api/v1") public class BranchController { @Autowired private BranchService branchService; @PostMapping(value = "/course/{id}/branch") public ResponseEntity<Long> create(@PathVariable("id") String enterpriseId, @RequestBody BranchParam branchParam) throws BranchServiceException, SQLException { // TODO authentication not implemented yet long branchId = branchService.insert(enterpriseId, branchParam.getName(), branchParam.getAddress(), branchParam.getLatitude(), branchParam.getLongitude(), branchParam.getTelephone()); return ResponseEntity.ok(branchId); } @GetMapping(value = "/branch/{id}") public ResponseEntity<Branch> getById(@PathVariable("id") String branchId) throws BranchServiceException, SQLException { // TODO authentication not implemented yet Branch branch = branchService.getById(branchId); return ResponseEntity.ok(branch); } @PutMapping(value = "/branch/{id}") public ResponseEntity update(@PathVariable("id") String targetBranchId, @RequestBody BranchParam branchParam) throws BranchServiceException, SQLException { // TODO authentication not implemented yet branchService.update(targetBranchId, branchParam.getName(), branchParam.getAddress(), branchParam.getLatitude(), branchParam.getLongitude(), branchParam.getTelephone()); return ResponseEntity.status(HttpStatus.NO_CONTENT).build(); } @GetMapping(value = "/enterprise/{id}/branch/list") public ResponseEntity<ListResult<Branch>> list(@PathVariable("id") String enterpriseId, String usePagination, String targetPage, String pageSize, String branchId, String nameContaining, String addressContaining) throws BranchServiceException, SQLException { // TODO authentication not implemented yet ListResult<Branch> result = branchService.list(usePagination, targetPage, pageSize, enterpriseId, branchId, nameContaining, addressContaining); return ResponseEntity.ok(result); } } ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看