DocService 泛微webservice接口

钮瀚
2023-12-01

本人三年积累的经验,自己通过反编译 然后重写java

package weaver.docs.webservices;

import javax.jws.WebMethod;
import javax.jws.WebService;

@WebService
public interface DocService {

  /**
   * 验证登陆
   *
   * @param loginid 用户登陆名
   * @param password 用户登陆密码
   * @param logintype 登陆方式(0 数据库验证;1 动态密码验证;2 LDAP验证)
   * @param ipaddress 用户IP地址
   * @auto tingjun
   * @return sessioncode 登陆Session码
   */
  @WebMethod(operationName = "login", action = "urn:weaver.docs.webservices.DocService.login")
  public String login(String loginid, String password, int logintype, String ipaddress)
      throws Exception;

  /**
   * @auto tingjun 新建文档
   * @param docinfo 文档信息对象
   * @param sessioncode 登陆Session码
   * @return 1 成功 0 失败
   */
  @WebMethod(
      operationName = "createDoc",
      action = "urn:weaver.docs.webservices.DocService.createDoc")
  public int createDoc(DocInfo docinfo, String sessioncode) throws Exception;

  /**
   * 修改文档
   *
   * @auto tingjun
   * @param docinfo 文档信息对象
   * @param sessioncode 登陆Session码
   * @return
   */
  @WebMethod(
      operationName = "updateDoc",
      action = "urn:weaver.docs.webservices.DocService.updateDoc")
  public int updateDoc(DocInfo docinfo, String sessioncode) throws Exception;

  /**
   * 删除文档
   *
   * @auto tingjun
   * @param id 文档ID
   * @param sessioncode 登陆Session码
   * @return
   */
  @WebMethod(
      operationName = "deleteDoc",
      action = "urn:weaver.docs.webservices.DocService.deleteDoc")
  public int deleteDoc(int id, String sessioncode) throws Exception;

  /**
   * 取得文档
   *
   * @auto tingjun
   * @param id 文档ID
   * @param sessioncode 登陆Session码
   * @return
   */
  @WebMethod(operationName = "getDoc", action = "urn:weaver.docs.webservices.DocService.getDoc")
  public DocInfo getDoc(int id, String sessioncode) throws Exception;

  /**
   * 取得文档列表
   *
   * @auto tingjun
   * @param sessioncode 登陆Session码
   * @param page 页数
   * @param size 每页记录数
   * @return 文档信息对象数组
   * @throws Exception
   */
  @WebMethod(operationName = "getList", action = "urn:weaver.docs.webservices.DocService.getList")
  public DocInfo[] getList(String sessioncode, int page, int size) throws Exception;

  /**
   * 取得文档记录数
   *
   * @auto tingjun
   * @param sessioncode 登陆Session码
   * @return 记录数
   * @throws Exception
   */
  @WebMethod(
      operationName = "getDocCount",
      action = "urn:weaver.docs.webservices.DocService.getDocCount")
  public int getDocCount(String sessioncode) throws Exception;
}

对你有帮助,请点个赞 谢谢啦

 类似资料: