Commit aac7e56c authored by Liang Ding's avatar Liang Ding

💡 #12861 更新注释

parent 9ddddeb6
...@@ -32,7 +32,7 @@ import org.json.JSONObject; ...@@ -32,7 +32,7 @@ import org.json.JSONObject;
* Link management service. * Link management service.
* *
* @author <a href="http://88250.b3log.org">Liang Ding</a> * @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.0.0.1, Nov 2, 2011 * @version 1.0.0.2, Oct 23, 2019
* @since 0.4.0 * @since 0.4.0
*/ */
@Service @Service
...@@ -55,8 +55,7 @@ public class LinkMgmtService { ...@@ -55,8 +55,7 @@ public class LinkMgmtService {
* @param linkId the given link id * @param linkId the given link id
* @throws ServiceException service exception * @throws ServiceException service exception
*/ */
public void removeLink(final String linkId) public void removeLink(final String linkId) throws ServiceException {
throws ServiceException {
final Transaction transaction = linkRepository.beginTransaction(); final Transaction transaction = linkRepository.beginTransaction();
try { try {
...@@ -80,13 +79,14 @@ public class LinkMgmtService { ...@@ -80,13 +79,14 @@ public class LinkMgmtService {
* "link": { * "link": {
* "oId": "", * "oId": "",
* "linkTitle": "", * "linkTitle": "",
* "linkAddress": "" * "linkAddress": "",
* "linkDescription": "",
* "linkIcon": ""
* } * }
* see {@link Link} for more details * see {@link Link} for more details
* @throws ServiceException service exception * @throws ServiceException service exception
*/ */
public void updateLink(final JSONObject requestJSONObject) public void updateLink(final JSONObject requestJSONObject) throws ServiceException {
throws ServiceException {
final Transaction transaction = linkRepository.beginTransaction(); final Transaction transaction = linkRepository.beginTransaction();
try { try {
...@@ -118,8 +118,7 @@ public class LinkMgmtService { ...@@ -118,8 +118,7 @@ public class LinkMgmtService {
* @param direction the specified direction, "up"/"down" * @param direction the specified direction, "up"/"down"
* @throws ServiceException service exception * @throws ServiceException service exception
*/ */
public void changeOrder(final String linkId, final String direction) public void changeOrder(final String linkId, final String direction) throws ServiceException {
throws ServiceException {
final Transaction transaction = linkRepository.beginTransaction(); final Transaction transaction = linkRepository.beginTransaction();
try { try {
...@@ -170,14 +169,14 @@ public class LinkMgmtService { ...@@ -170,14 +169,14 @@ public class LinkMgmtService {
* "link": { * "link": {
* "linkTitle": "", * "linkTitle": "",
* "linkAddress": "", * "linkAddress": "",
* "linkDescription": "" // optional * "linkDescription": "",
* "linkIcon": ""
* } * }
* }, see {@link Link} for more details * }, see {@link Link} for more details
* @return generated link id * @return generated link id
* @throws ServiceException service exception * @throws ServiceException service exception
*/ */
public String addLink(final JSONObject requestJSONObject) public String addLink(final JSONObject requestJSONObject) throws ServiceException {
throws ServiceException {
final Transaction transaction = linkRepository.beginTransaction(); final Transaction transaction = linkRepository.beginTransaction();
try { try {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment